|
18 | 18 | "start": "node bin/dev-server", |
19 | 19 | "start-app": "TARGET=application node bin/dev-server", |
20 | 20 | "flow": "flow", |
21 | | - "eslint-check": |
22 | | - "eslint --print-config .eslintrc.js | eslint-config-prettier-check", |
| 21 | + "eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check", |
23 | 22 | "prettier": "node bin/prettier.js", |
24 | 23 | "license-check": "devtools-license-check", |
25 | 24 | "links": "ls -l node_modules/ | grep ^l || echo 'no linked packages'", |
26 | 25 | "lint": "run-p lint-css lint-js lint-md", |
27 | 26 | "lint-css": "stylelint \"src/components/**/*.css\"", |
28 | 27 | "lint-js": "eslint *.js \"src/**/*.js\" --fix", |
29 | | - "lint-md": |
30 | | - "remark -u devtools-linters/markdown/preset -qf *.md src configs docs", |
| 28 | + "lint-md": "remark -u devtools-linters/markdown/preset -qf *.md src configs docs", |
31 | 29 | "lint-fix": "yarn lint-js -- --fix", |
32 | | - "mochi": |
33 | | - "mochii --mc ./firefox --interactive --default-test-path devtools/client/debugger/new", |
| 30 | + "mochi": "mochii --mc ./firefox --interactive --default-test-path devtools/client/debugger/new", |
34 | 31 | "mochid": "yarn mochi -- --jsdebugger --", |
35 | 32 | "mochir": "yarn mochi -- --repeat 10 --", |
36 | 33 | "mochih": "yarn mochi -- --headless --", |
37 | | - "mochici": |
38 | | - "mochii --mc ./firefox --ci --default-test-path devtools/client/debugger/new --headless --", |
| 34 | + "mochici": "mochii --mc ./firefox --ci --default-test-path devtools/client/debugger/new --headless --", |
39 | 35 | "test": "jest", |
40 | 36 | "test:watch": "jest --watch", |
41 | 37 | "test-coverage": "yarn test -- --coverage", |
42 | 38 | "test-all": "yarn test; yarn lint; yarn flow", |
43 | | - "firefox": |
44 | | - "start-firefox --start --location https://devtools-html.github.io/debugger-examples/", |
45 | | - "chrome": |
46 | | - "start-chrome --location https://devtools-html.github.io/debugger-examples/", |
| 39 | + "firefox": "start-firefox --start --location https://devtools-html.github.io/debugger-examples/", |
| 40 | + "chrome": "start-chrome --location https://devtools-html.github.io/debugger-examples/", |
47 | 41 | "copy-assets": "node bin/copy-assets --symlink", |
48 | 42 | "copy-assets-watch": "node bin/copy-assets --watch --symlink", |
49 | | - "build-docs": |
50 | | - "documentation build --format html --sort-order alpha --shallow --document-exported --output docs/reference/ src/types.js src/utils/ src/reducers/ src/actions/ src/test/mochitest/head.js", |
51 | | - "flow-coverage": |
52 | | - "flow-coverage-report --threshold 50 -i 'src/actions/*.js' -i 'src/reducers/*.js' -i 'src/utils/*.js' -i 'src/components/*.js' -i 'src/components/**/*.js' -t html -t text", |
53 | | - "flow-utils": |
54 | | - "flow-coverage-report -i 'src/utils/*.js' -i 'src/utils/**/*.js' -t text", |
55 | | - "flow-redux": |
56 | | - "flow-coverage-report -i 'src/reducers/*.js' -i 'src/actions/*.js' -t text", |
| 43 | + "build-docs": "documentation build --format html --sort-order alpha --shallow --document-exported --output docs/reference/ src/types.js src/utils/ src/reducers/ src/actions/ src/test/mochitest/head.js", |
| 44 | + "flow-coverage": "flow-coverage-report --threshold 50 -i 'src/actions/*.js' -i 'src/reducers/*.js' -i 'src/utils/*.js' -i 'src/components/*.js' -i 'src/components/**/*.js' -t html -t text", |
| 45 | + "flow-utils": "flow-coverage-report -i 'src/utils/*.js' -i 'src/utils/**/*.js' -t text", |
| 46 | + "flow-redux": "flow-coverage-report -i 'src/reducers/*.js' -i 'src/actions/*.js' -t text", |
57 | 47 | "flow-react": "flow-coverage-report -i 'src/components/**/*.js' -t text", |
58 | 48 | "postcheckout": "node bin/post-checkout.js", |
59 | 49 | "postmerge": "node bin/post-merge.js", |
|
95 | 85 | "svg-inline-react": "^3.0.0", |
96 | 86 | "wasmparser": "^0.5.2" |
97 | 87 | }, |
98 | | - "files": ["src", "assets"], |
| 88 | + "files": [ |
| 89 | + "src", |
| 90 | + "assets" |
| 91 | + ], |
99 | 92 | "greenkeeper": { |
100 | | - "ignore": ["react", "react-dom", "react-redux", "redux", "codemirror"] |
| 93 | + "ignore": [ |
| 94 | + "react", |
| 95 | + "react-dom", |
| 96 | + "react-redux", |
| 97 | + "redux", |
| 98 | + "codemirror" |
| 99 | + ] |
101 | 100 | }, |
102 | 101 | "main": "src/main.js", |
103 | 102 | "author": "Jason Laster <[email protected]>", |
|
140 | 139 | "npm-run-all": "^4.0.2", |
141 | 140 | "prettier": "^1.10.2", |
142 | 141 | "pretty-quick": "^1.4.1", |
143 | | - "react-test-renderer": "16.3.0", |
144 | 142 | "remark-cli": "^5.0.0", |
145 | 143 | "remark-lint": "^6.0.1", |
146 | 144 | "remark-lint-list-item-bullet-indent": "^1.0.1", |
|
162 | 160 | "workerjs": "github:jasonLaster/workerjs" |
163 | 161 | }, |
164 | 162 | "lint-staged": { |
165 | | - "*.js": ["prettier", "git add"], |
166 | | - "src/*.js": ["prettier", "git add"], |
167 | | - "src/*/*.js": ["prettier", "git add"], |
168 | | - "src/*/!(mochitest)**/*.js": ["prettier", "git add"], |
169 | | - "src/*/!(mochitest)*/**/*.js": ["prettier", "git add"] |
| 163 | + "*.js": [ |
| 164 | + "prettier", |
| 165 | + "git add" |
| 166 | + ], |
| 167 | + "src/*.js": [ |
| 168 | + "prettier", |
| 169 | + "git add" |
| 170 | + ], |
| 171 | + "src/*/*.js": [ |
| 172 | + "prettier", |
| 173 | + "git add" |
| 174 | + ], |
| 175 | + "src/*/!(mochitest)**/*.js": [ |
| 176 | + "prettier", |
| 177 | + "git add" |
| 178 | + ], |
| 179 | + "src/*/!(mochitest)*/**/*.js": [ |
| 180 | + "prettier", |
| 181 | + "git add" |
| 182 | + ] |
170 | 183 | }, |
171 | 184 | "jest": { |
172 | 185 | "testPathIgnorePatterns": [ |
|
184 | 197 | "!**/*.mock.js", |
185 | 198 | "!**/*.spec.js" |
186 | 199 | ], |
187 | | - "transformIgnorePatterns": ["node_modules/(?!devtools-)"], |
| 200 | + "transformIgnorePatterns": [ |
| 201 | + "node_modules/(?!devtools-)" |
| 202 | + ], |
188 | 203 | "setupTestFrameworkScriptFile": "<rootDir>/src/test/tests-setup.js", |
189 | | - "setupFiles": ["<rootDir>/src/test/shim.js", "jest-localstorage-mock"], |
| 204 | + "setupFiles": [ |
| 205 | + "<rootDir>/src/test/shim.js", |
| 206 | + "jest-localstorage-mock" |
| 207 | + ], |
190 | 208 | "snapshotSerializers": [ |
191 | 209 | "jest-serializer-babel-ast", |
192 | 210 | "enzyme-to-json/serializer" |
|
0 commit comments