Skip to content

Commit 1f1b466

Browse files
committed
remove unnecessary files from npm package, don't transpile tests, output coverage to root folder, make npm clean remove all output folders
1 parent 9a08435 commit 1f1b466

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.npmignore

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
node_modules
22
docs
3+
coverage
4+
.publish
5+
.github
6+
.codecov.yml
7+
.travis.yml
8+
gulpfile.js
9+
jest.config.js
10+
jest.es5.config.js
11+
jest.perf.config.js
12+
jsdoc.conf.json
13+
webpack.common.js
14+
webpack.dev.js
15+
webpack.prod.js

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
transform: {
1212
'\\.js$': 'babel-jest',
1313
},
14-
coverageDirectory: './coverage/',
14+
coverageDirectory: '../coverage/',
1515
collectCoverage: true,
1616
collectCoverageFrom: [
1717
'*.js',

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"test:es5": "jest --config=jest.es5.config.js",
1313
"test:perf": "jest --config=jest.perf.config.js",
1414
"prepublishOnly": "npm run build",
15-
"transpile:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib",
16-
"transpile:es": "cross-env BABEL_ENV=es babel src --out-dir es",
15+
"transpile:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib --ignore */test",
16+
"transpile:es": "cross-env BABEL_ENV=es babel src --out-dir es --ignore */test",
1717
"build:umd": "webpack --config webpack.dev.js",
1818
"build:umd:min": "webpack --config webpack.prod.js",
1919
"build:docs": "jsdoc src -d docs -c ./jsdoc.conf.json --verbose",
2020
"build": "npm run clean && npm run transpile:cjs && npm run transpile:es && npm run build:umd && npm run build:umd:min && npm run build:docs",
2121
"pub": "npm run lint && npm run test && npm run build && npm run test:es5 && npm version patch && npm publish && git push origin && gulp deploy && npm run clean",
2222
"lint": "eslint src",
2323
"deploydocs": "npm run build && gulp deploy",
24-
"clean": "rimraf lib dist docs"
24+
"clean": "rimraf lib es dist docs coverage"
2525
},
2626
"keywords": [
2727
"redux",

0 commit comments

Comments
 (0)