|
13 | 13 | },
|
14 | 14 | "scripts": {
|
15 | 15 | "start": "npm run build -- -w",
|
| 16 | + "prebuild": "npm run clean", |
16 | 17 | "build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files",
|
17 | 18 | "clean": "del-cli dist",
|
18 | 19 | "commitlint": "commitlint",
|
19 | 20 | "commitmsg": "commitlint -e $GIT_PARAMS",
|
20 | 21 | "lint": "eslint --cache src test",
|
21 |
| - "prebuild": "npm run clean", |
22 | 22 | "prepublish": "npm run build",
|
23 | 23 | "release": "standard-version",
|
24 | 24 | "security": "npm audit",
|
25 |
| - "test": "jest", |
| 25 | + "test:only": "jest", |
26 | 26 | "test:watch": "jest --watch",
|
27 | 27 | "test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
|
| 28 | + "pretest": "npm run lint", |
| 29 | + "test": "npm run test:only", |
28 | 30 | "ci:lint": "npm run lint && npm run security",
|
29 |
| - "ci:test": "npm run test -- --runInBand", |
| 31 | + "ci:test": "npm run test:only -- --runInBand", |
30 | 32 | "ci:coverage": "npm run test:coverage -- --runInBand",
|
31 | 33 | "ci:lint:commits": "commitlint --from=origin/master --to=${CIRCLE_SHA1}",
|
32 | 34 | "defaults": "webpack-defaults"
|
|
57 | 59 | "@webpack-contrib/defaults": "^3.0.0",
|
58 | 60 | "@webpack-contrib/eslint-config-webpack": "^3.0.0",
|
59 | 61 | "babel-jest": "^24.0.0",
|
60 |
| - "conventional-github-releaser": "^3.1.2", |
61 | 62 | "cross-env": "^5.1.3",
|
62 | 63 | "del": "^3.0.0",
|
63 | 64 | "del-cli": "^1.1.0",
|
|
70 | 71 | "lint-staged": "^8.1.0",
|
71 | 72 | "memory-fs": "^0.4.1",
|
72 | 73 | "prettier": "^1.14.0",
|
73 |
| - "standard-version": "^4.3.0", |
| 74 | + "standard-version": "^5.0.0", |
74 | 75 | "uglify-js": "^3.4.3",
|
75 | 76 | "webpack": "^4.16.3"
|
76 | 77 | },
|
|
119 | 120 | "extends": [
|
120 | 121 | "@commitlint/config-conventional"
|
121 | 122 | ]
|
| 123 | + }, |
| 124 | + "prettier": { |
| 125 | + "singleQuote": true, |
| 126 | + "trailingComma": "es5", |
| 127 | + "arrowParens": "always" |
122 | 128 | }
|
123 | 129 | }
|
0 commit comments