diff --git a/template/_package.json b/template/_package.json index 99e64b60..4f5cf457 100644 --- a/template/_package.json +++ b/template/_package.json @@ -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" },