Skip to content

Commit

Permalink
Merge pull request #215 from ajafff/build-enhancements
Browse files Browse the repository at this point in the history
Simplify build
  • Loading branch information
streamich authored Sep 16, 2018
2 parents b2bd19e + 078dfbe commit fc48677
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 59 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

13 changes: 0 additions & 13 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cache:
notifications:
email: false
node_js:
- '10'
- '9'
- '8'
- '7'
Expand Down
16 changes: 0 additions & 16 deletions gulpfile.js

This file was deleted.

1 change: 0 additions & 1 deletion index.js

This file was deleted.

25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "2.9.2",
"description": "In-memory file-system with Node's fs API.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib"
],
"keywords": [
"fs",
"filesystem",
Expand All @@ -28,26 +32,21 @@
"fs-monkey": "^0.3.3"
},
"devDependencies": {
"@types/jest": "23.3.1",
"@types/node": "9.6.31",
"cpy-cli": "2.0.0",
"jest": "21.2.1",
"jest-tap-reporter": "1.9.0",
"mol-conventional-changelog": "1.4.0",
"rimraf": "2.6.2",
"semantic-release": "15.9.14",
"ts-jest": "23.1.4",
"typescript": "2.9.2",
"ts-node": "7.0.1",
"babel-cli": "6.26.0",
"babel-preset-es2015": "6.24.1",
"gulp": "3.9.1",
"gulp-typescript": "4.0.2",
"semantic-release": "15.9.14",
"@types/node": "9.6.31",
"@types/jest": "23.3.1",
"rimraf": "2.6.2",
"mol-conventional-changelog": "1.4.0"
"typescript": "3.0.3"
},
"scripts": {
"clean": "rimraf lib types",
"build": "npm run build-ts && npm run build-js",
"build-ts": "gulp build-ts",
"build-js": "babel src --out-dir lib",
"build": "tsc -p . && cpy src/internal lib/internal",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
Expand Down
6 changes: 3 additions & 3 deletions src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export enum FLAGS {
}

export type TFlagsCopy =
| typeof COPYFILE_EXCL
| typeof COPYFILE_FICLONE
| typeof COPYFILE_FICLONE_FORCE;
| typeof constants.COPYFILE_EXCL
| typeof constants.COPYFILE_FICLONE
| typeof constants.COPYFILE_FICLONE_FORCE;

export function flagsToNumber(flags: TFlags): number {
if(typeof flags === 'number') return flags;
Expand Down
12 changes: 7 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"module": "commonjs",
"removeComments": false,
"noImplicitAny": false,
"sourceMap": false
"sourceMap": false,
"outDir": "lib",
"declaration": true
},
"include": [
"src"
],
"exclude": [
"demo",
"src/__tests__",
"node_modules",
"lib"
"src/__tests__"
]
}

0 comments on commit fc48677

Please sign in to comment.