|
25 | 25 | "node": ">=10" |
26 | 26 | }, |
27 | 27 | "scripts": { |
28 | | - "build": "npm run clean && babel src -d lib --extensions '.js,.ts' --ignore '**/*.spec.js','**/*.spec.ts' && npm run build-types", |
29 | | - "build-demo": "npm run clean-demo && webpack --config demo/webpack.config.js", |
30 | | - "build-types": "tsc -p ./tsconfig.release-types.json", |
31 | | - "clean": "rimraf lib/*", |
32 | | - "clean-demo": "rimraf demo/lib/*", |
| 28 | + "build": "run-s clean:* build:*", |
| 29 | + "build:src": "babel src -d lib --extensions '.js,.ts' --ignore '**/*.spec.js','**/*.spec.ts'", |
| 30 | + "build:demo": "webpack --config demo/webpack.config.js", |
| 31 | + "build:types": "tsc -p ./tsconfig.release-types.json", |
| 32 | + "clean:src": "rimraf lib/*", |
| 33 | + "clean:demo": "rimraf demo/lib/*", |
33 | 34 | "format": "prettier --write '{src,demo/src}/**'", |
34 | | - "lint": "tsc -p ./tsconfig.release.json && eslint . --ext .js,.ts --report-unused-disable-directives --parser-options=project:./tsconfig.release.json", |
35 | | - "lint-demo": "tsc -p ./demo/tsconfig.json && eslint . --ext .js,.ts --report-unused-disable-directives --parser-options=project:./demo/tsconfig.json", |
36 | | - "lint-tests": "tsc -p ./tsconfig.test.json && eslint . --ext .js,.ts --report-unused-disable-directives --parser-options=project:./tsconfig.test.json", |
| 35 | + "lint": "run-s lint:*", |
| 36 | + "lint:src": "tsc -p ./tsconfig.release.json && eslint . --ext .js,.ts --report-unused-disable-directives --parser-options=project:./tsconfig.release.json", |
| 37 | + "lint:demo": "tsc -p ./demo/tsconfig.json && eslint . --ext .js,.ts --report-unused-disable-directives --parser-options=project:./demo/tsconfig.json", |
| 38 | + "lint:tests": "tsc -p ./tsconfig.test.json && eslint . --ext .js,.ts --report-unused-disable-directives --parser-options=project:./tsconfig.test.json", |
37 | 39 | "precommit": "pretty-quick --staged", |
38 | 40 | "prepublish": "npx publish-please guard", |
39 | 41 | "publish-please": "npx publish-please", |
40 | 42 | "publish-please-prereqs": "npm run lint && npm run test && npm run build", |
41 | | - "test": "jest --coverage", |
42 | | - "travisci": "npm run lint && npm run test && codecov && npx snyk test" |
| 43 | + "test": "jest --coverage" |
43 | 44 | }, |
44 | 45 | "devDependencies": { |
45 | 46 | "@babel/cli": "^7.5.5", |
|
66 | 67 | "jest": "^26.4.2", |
67 | 68 | "jest-when": "^2.7.0", |
68 | 69 | "node-sass": "^4.12.0", |
| 70 | + "npm-run-all": "^4.1.5", |
69 | 71 | "prettier": "1.18.2", |
70 | 72 | "pretty-quick": "1.7.0", |
71 | 73 | "rimraf": "^2.7.1", |
|
0 commit comments