Skip to content

Commit

Permalink
Merge pull request #55 from streamich/chore/semantic-release
Browse files Browse the repository at this point in the history
Chore/semantic release
  • Loading branch information
streamich authored Nov 24, 2017
2 parents a277637 + e50722b commit 0a8444a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
22 changes: 16 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
sudo: false
language: node_js
os:
- linux
language: node_js
cache:
yarn: true
directories:
- ~/.npm
notifications:
email: false
node_js:
- '9'
- '8'
- '7'
- '6'
script:
- npm run test
- npm run build
matrix:
allow_failures: []
fast_finish: true
cache:
yarn: true
directories:
- "node_modules"
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 0a8444a

Please sign in to comment.