From 89f0046edc6f4f48cd3ed333434bc754d2b1d14f Mon Sep 17 00:00:00 2001 From: Vadim Dalecky Date: Fri, 24 Nov 2017 21:54:18 +0000 Subject: [PATCH 1/2] chore: add semantic-release --- .travis.yml | 19 +++++++++++++------ README.md | 2 +- package.json | 6 ++++-- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91009ae4d..a59ed12d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,22 @@ -sudo: false +language: node_js os: - linux -language: node_js +cache: + yarn: true + directories: + - ~/.npm +notifications: + email: false node_js: + - '9' - '8' - '7' - '6' matrix: allow_failures: [] fast_finish: true -cache: - yarn: true - directories: - - "node_modules" +after_success: + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/README.md b/README.md index 84ff50fda..eea00fa24 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ In-memory file-system with [Node's `fs` API](https://nodejs.org/api/fs.html). - - 100% of Node's `fs` API implemented, see *API Status* + - 100% of Node's `fs` API implemented, see [*API Status*](./docs/api-status.md) - Stores files in memory, in `Buffer`s - Throws same* errors as Node.js - Has concept of *i-nodes* diff --git a/package.json b/package.json index 99d2e2719..d1f079d0d 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "nyc": "11.1.0", "watch": "^1.0.0", "@types/node": "8.0.17", - "@types/jest": "^21.1.1" + "@types/jest": "^21.1.1", + "semantic-release": "^8.2.0" }, "scripts": { "build": "npm run build-ts && npm run build-js", @@ -52,7 +53,8 @@ "test": "jest", "test:coverage": "jest --coverage", "test:watch": "jest --watch", - "watch": "watch 'npm run build' ./src" + "watch": "watch 'npm run build' ./src", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "jest": { "moduleFileExtensions": [ From e50722b40811fe845d73e36d2bd24180056a5ada Mon Sep 17 00:00:00 2001 From: Vadim Dalecky Date: Fri, 24 Nov 2017 22:04:53 +0000 Subject: [PATCH 2/2] feat: first semantic release --- .travis.yml | 3 +++ src/index.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index a59ed12d9..dd97e0085 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,9 @@ node_js: - '8' - '7' - '6' +script: + - npm run test + - npm run build matrix: allow_failures: [] fast_finish: true diff --git a/src/index.ts b/src/index.ts index aff9fac2c..4867a1ee7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,3 +47,5 @@ export function createFsFromVolume(vol: _Volume): IFs { export const fs: IFs = createFsFromVolume(vol); declare let module; module.exports = {...module.exports, ...fs}; + +module.exports.semantic = true;