|
88 | 88 | "schemas/" |
89 | 89 | ], |
90 | 90 | "scripts": { |
| 91 | + "setup": "node ./setup/setup.js", |
91 | 92 | "test": "mocha test/*.test.js test/*.unittest.js --max-old-space-size=4096 --harmony --trace-deprecation", |
92 | 93 | "test:integration": "mocha test/*.test.js --max-old-space-size=4096 --harmony --trace-deprecation", |
93 | 94 | "test:unit": "mocha test/*.unittest.js --max-old-space-size=4096 --harmony --trace-deprecation", |
94 | | - "travis:integration": "npm run cover:init && npm run cover:integration && npm run cover:report-min", |
95 | | - "travis:unit": "npm run cover:init && npm run cover:unit && npm run cover:report-min", |
96 | | - "travis:lint": "npm run lint-files", |
97 | | - "travis:benchmark": "npm run benchmark", |
98 | | - "appveyor:integration": "npm run cover:init && npm run cover:integration && npm run cover:report-min", |
99 | | - "appveyor:unit": "npm run cover:init && npm run cover:unit && npm run cover:report-min", |
100 | | - "appveyor:benchmark": "npm run benchmark", |
| 95 | + "travis:integration": "yarn cover:init && yarn cover:integration && yarn cover:report-min", |
| 96 | + "travis:unit": "yarn cover:init && yarn cover:unit && yarn cover:report-min", |
| 97 | + "travis:lint": "yarn lint", |
| 98 | + "travis:benchmark": "yarn benchmark", |
| 99 | + "appveyor:integration": "yarn cover:init && yarn cover:integration && yarn cover:report-min", |
| 100 | + "appveyor:unit": "yarn cover:init && yarn cover:unit && yarn cover:report-min", |
| 101 | + "appveyor:benchmark": "yarn benchmark", |
101 | 102 | "circleci:test": "node node_modules/mocha/bin/mocha --max-old-space-size=4096 --harmony --trace-deprecation test/*.test.js test/*.unittest.js", |
102 | | - "circleci:lint": "npm run lint-files", |
| 103 | + "circleci:lint": "yarn lint", |
103 | 104 | "build:examples": "cd examples && node buildAll.js", |
104 | | - "pretest": "npm run lint-files", |
105 | | - "lint-files": "npm run lint && npm run schema-lint", |
106 | | - "lint": "eslint lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"", |
107 | | - "fix": "npm run lint -- --fix", |
108 | | - "pretty-files": "prettier \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" --write", |
| 105 | + "pretest": "yarn lint", |
| 106 | + "prelint": "yarn setup", |
| 107 | + "lint": "yarn code-lint && yarn schema-lint", |
| 108 | + "code-lint": "eslint setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"", |
| 109 | + "fix": "yarn code-lint --fix", |
| 110 | + "pretty": "prettier \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" --write", |
109 | 111 | "schema-lint": "mocha test/*.lint.js --opts test/lint-mocha.opts", |
110 | 112 | "benchmark": "mocha --max-old-space-size=4096 --harmony --trace-deprecation test/*.benchmark.js -R spec", |
111 | | - "cover": "npm run cover:init && npm run cover:all && npm run cover:report", |
| 113 | + "cover": "yarn cover:init && yarn cover:all && yarn cover:report", |
112 | 114 | "cover:init": "rimraf coverage", |
113 | 115 | "cover:all": "node --max-old-space-size=4096 --harmony --trace-deprecation ./node_modules/istanbul/lib/cli.js cover --report none node_modules/mocha/bin/_mocha -- test/*.test.js test/*.unittest.js", |
114 | 116 | "cover:integration": "node --max-old-space-size=4096 --harmony --trace-deprecation ./node_modules/istanbul/lib/cli.js cover --report none node_modules/mocha/bin/_mocha -- test/*.test.js", |
115 | 117 | "cover:unit": "node --max-old-space-size=4096 --harmony --trace-deprecation ./node_modules/istanbul/lib/cli.js cover --report none node_modules/mocha/bin/_mocha -- test/*.unittest.js", |
116 | 118 | "cover:report": "istanbul report", |
117 | | - "cover:report-min": "istanbul report --report lcovonly", |
118 | | - "publish-patch": "npm run lint && mocha && npm version patch && git push && git push --tags && npm publish" |
| 119 | + "cover:report-min": "istanbul report --report lcovonly" |
119 | 120 | } |
120 | 121 | } |
0 commit comments