|
54 | 54 | "webpack": "^4.30.0"
|
55 | 55 | },
|
56 | 56 | "scripts": {
|
57 |
| - "build": "run-s build:dist build:esm build:bundle", |
| 57 | + "build": "run-s build:es5 build:esm build:bundle", |
58 | 58 | "build:bundle": "rollup --config",
|
59 |
| - "build:bundle:watch": "rollup --config --watch", |
60 |
| - "build:dist": "tsc -p tsconfig.build.json", |
61 |
| - "build:dist:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput", |
62 |
| - "build:es5": "run-s build:dist", |
63 |
| - "build:es5:watch": "run-s build:dist:watch", |
| 59 | + "build:dev": "run-s build:es5 build:esm", |
| 60 | + "build:es5": "tsc -p tsconfig.build.json", |
64 | 61 | "build:esm": "tsc -p tsconfig.esm.json",
|
| 62 | + "build:watch": "run-p build:es5:watch build:esm:watch build:bundle:watch", |
| 63 | + "build:bundle:watch": "rollup --config --watch", |
| 64 | + "build:dev:watch": "run-p build:es5:watch build:esm:watch", |
| 65 | + "build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput", |
65 | 66 | "build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
|
66 |
| - "build:watch": "run-p build:dist:watch build:esm:watch build:bundle:watch", |
| 67 | + "circularDepCheck": "madge --circular src/index.ts", |
67 | 68 | "clean": "rimraf dist esm build coverage .rpt2_cache",
|
| 69 | + "fix": "run-s fix:eslint fix:prettier", |
| 70 | + "fix:eslint": "eslint . --format stylish --fix", |
| 71 | + "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"", |
68 | 72 | "link:yarn": "yarn link",
|
69 | 73 | "lint": "run-s lint:prettier lint:eslint",
|
70 |
| - "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", |
71 | 74 | "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
|
72 |
| - "fix": "run-s fix:eslint fix:prettier", |
73 |
| - "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"", |
74 |
| - "fix:eslint": "eslint . --format stylish --fix", |
| 75 | + "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", |
| 76 | + "pack": "npm pack", |
| 77 | + "size:check": "run-p size:check:es5 size:check:es6", |
| 78 | + "size:check:es5": "cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'", |
| 79 | + "size:check:es6": "cat build/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'", |
75 | 80 | "test": "run-s test:unit",
|
76 | 81 | "test:unit": "jest --config test/unit/jest.config.js",
|
77 |
| - "test:unit:watch": "jest --config test/unit/jest.config.js --watch", |
78 | 82 | "test:integration": "test/integration/run.js",
|
79 |
| - "test:integration:watch": "test/integration/run.js --watch", |
80 | 83 | "test:integration:checkbrowsers": "node scripts/checkbrowsers.js",
|
81 | 84 | "test:package": "node test/package/npm-build.js && rm test/package/tmp.js",
|
82 |
| - "size:check": "run-p size:check:es5 size:check:es6", |
83 |
| - "size:check:es5": "cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'", |
84 |
| - "size:check:es6": "cat build/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'", |
85 |
| - "pack": "npm pack", |
86 |
| - "circularDepCheck": "madge --circular src/index.ts" |
| 85 | + "test:unit:watch": "jest --config test/unit/jest.config.js --watch", |
| 86 | + "test:integration:watch": "test/integration/run.js --watch" |
87 | 87 | },
|
88 | 88 | "volta": {
|
89 | 89 | "extends": "../../package.json"
|
|
0 commit comments