Skip to content

Commit

Permalink
feat(scripts): update npm scripts to use prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Jun 10, 2020
1 parent 368a542 commit 3510b80
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions template/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
"dist"
],
"scripts": {
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "cross-env TEST=unit ava --config unit-tests.config.cjs",
"test:e2e": "cross-env TEST=e2e ava --config e2e-tests.config.cjs",
"test:snapshot": "cross-env TEST=unit ava --update-snapshots",
"test": "ava",
"test:snapshot": "ava --update-snapshots",
"build": "npm run bundle && npm run bundle:min",
"bundle": "rollup -c build/rollup.config.js",
"bundle:min": "rollup -c build/rollup.min.config.js",
"lint": "eslint 'src/**/*.{js,vue}'",
"lintfix": "eslint --fix 'src/**/*.{js,vue}'",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lintfix": "npm run lint:eslint:fix && npm run lint:prettier:fix",
"lint:eslint": "eslint 'src/**/*.{js,vue}'",
"lint:eslint:fix": "eslint --fix 'src/**/*.{js,vue}'",
"lint:prettier": "prettier --check \"{,!(node_modules|dist)/**/}*.{js,vue}\"",
"lint:prettier:fix": "prettier --write \"{,!(node_modules|dist)/**/}*.{js,vue}\"",
"release:prepare": "shipjs prepare",
"release:trigger": "shipjs trigger"
},
Expand Down

0 comments on commit 3510b80

Please sign in to comment.