|
14 | 14 | "build-storybook": "build-storybook -c .storybook -o dist/storybook",
|
15 | 15 | "clean": "lerna clean",
|
16 | 16 | "clean-dist": "lerna run prebuild --stream --parallel",
|
17 |
| - "lint": "lerna run lint --stream --parallel", |
| 17 | + "lint": "yarn lint-css && yarn lint-js", |
| 18 | + "lint-css": "stylelint 'packages/**/*.js'", |
| 19 | + "lint-js": "eslint ./packages", |
| 20 | + "lint-lerna": "lerna run lint --stream --parallel", |
18 | 21 | "prepublishOnly": "yarn clean && yarn && yarn build",
|
19 | 22 | "publish": "lerna publish",
|
20 |
| - "setup": "yarn clean && yarn && yarn bootstrap", |
21 |
| - "start": "start-storybook -p 9001 -c .storybook --ci", |
22 |
| - "test": "jest", |
23 |
| - "watch-test": "jest --watch" |
| 23 | + "setup": "yarn && yarn clean && yarn bootstrap", |
| 24 | + "start": "yarn clean-dist && start-storybook -p 9001 -c .storybook --ci", |
| 25 | + "pretest": "yarn build", |
| 26 | + "test": "jest --detectOpenHandles", |
| 27 | + "posttest": "yarn clean-dist" |
24 | 28 | },
|
25 | 29 | "publishConfig": {
|
26 | 30 | "access": "public",
|
|
36 | 40 | "prettier --write",
|
37 | 41 | "yarn lint",
|
38 | 42 | "git update-index --again",
|
39 |
| - "jest --findRelatedTests" |
| 43 | + "yarn test --findRelatedTests" |
40 | 44 | ]
|
41 | 45 | },
|
42 | 46 | "repository": {
|
|
70 | 74 | "babel-eslint": "^10.0.1",
|
71 | 75 | "babel-jest": "24.1.0",
|
72 | 76 | "babel-loader": "^8.0.5",
|
| 77 | + "babel-plugin-styled-components": "1.10.0", |
73 | 78 | "enzyme": "3.8.0",
|
74 | 79 | "enzyme-adapter-react-16": "1.9.1",
|
75 | 80 | "enzyme-to-json": "3.3.5",
|
|
85 | 90 | "jest": "24.1.0",
|
86 | 91 | "jest-environment-jsdom": "24.0.0",
|
87 | 92 | "jest-environment-jsdom-global": "1.1.0",
|
| 93 | + "jest-styled-components": "6.3.1", |
88 | 94 | "lerna": "^3.11.0",
|
89 | 95 | "lint-staged": "^8.1.3",
|
90 | 96 | "prettier": "^1.16.4",
|
91 | 97 | "react-scripts": "^2.1.3",
|
92 | 98 | "rimraf": "^2.6.3",
|
93 | 99 | "storybook-addon-jsx": "^6.0.0",
|
94 |
| - "storybook-readme": "^4.0.5" |
| 100 | + "storybook-readme": "^4.0.5", |
| 101 | + "stylelint": "9.10.1", |
| 102 | + "stylelint-config-recommended": "2.1.0", |
| 103 | + "stylelint-config-styled-components": "0.1.1", |
| 104 | + "stylelint-processor-styled-components": "1.5.2" |
95 | 105 | },
|
96 | 106 | "dependencies": {
|
97 | 107 | "react": "^16.8.1",
|
|
0 commit comments