Skip to content

Commit

Permalink
Update package scripts
Browse files Browse the repository at this point in the history
The new `verify` script is designed to run in the CI pipeline,
while `precommit` has been trimmed down for speed.
  • Loading branch information
swansontec committed Jun 24, 2021
1 parent 5df4197 commit a87e143
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
language: node_js
node_js:
- "10"
- "14"
script:
- "yarn verify"
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,18 @@
"src/*"
],
"scripts": {
"build.lib": "rollup -c",
"build.types": "tsc",
"clean": "rimraf lib",
"fix": "npm run lint -- --fix",
"lint": "eslint --ext .js,.ts .",
"precommit": "npm-run-all lint -p test build.*",
"prepare": "husky install && npm-run-all clean -p build.*",
"test": "nyc mocha test/**/*.ts"
"fix": "eslint . --fix",
"lib": "rollup -c",
"lint": "eslint .",
"precommit": "lint-staged && npm-run-all types test",
"prepare": "npm-run-all clean -p lib types",
"test": "nyc mocha 'test/**/*.ts'",
"types": "tsc",
"verify": "npm-run-all lint types test"
},
"lint-staged": {
"*.{js,ts}": "eslint"
},
"devDependencies": {
"@babel/core": "^7.14.0",
Expand Down

0 comments on commit a87e143

Please sign in to comment.