|
141 | 141 | "reformat-only": "prettier --single-quote --trailing-comma es5 --print-width 80 --arrow-parens always --write", |
142 | 142 | "lint-fix": "eslint --fix Sources Examples", |
143 | 143 | "lint": "eslint Sources Examples", |
144 | | - "doc": "kw-doc -c ./Documentation/config.js", |
145 | | - "doc:www": "npm t -- --single-run && kw-doc -c ./Documentation/config.js -s", |
146 | | - "doc:minified": "kw-doc -c ./Documentation/config.js -m", |
147 | | - "doc:generate-api": "node ./Documentation/generate-api-docs.js", |
| 144 | + "doc": "npm run build:pre && kw-doc -c ./Documentation/config.js", |
| 145 | + "doc:www": "npm t -- --single-run && npm run build:pre && kw-doc -c ./Documentation/config.js -s", |
| 146 | + "doc:minified": "npm run build:pre && kw-doc -c ./Documentation/config.js -m", |
| 147 | + "doc:generate-api": "npm run build:pre && node ./Documentation/generate-api-docs.js", |
148 | 148 | "example": "node ./Utilities/ExampleRunner/example-runner-cli.js -c ./Documentation/config.js", |
149 | 149 | "example:https": "node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js", |
150 | 150 | "example:webgpu": "cross-env WEBGPU=1 NO_WEBGL=1 node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js", |
| 151 | + "build:pre": "patch-package", |
151 | 152 | "dev:esm": "npm run build:esm -- -w", |
152 | | - "dev:umd": "webpack --watch --config webpack.dev.js --progress", |
| 153 | + "dev:umd": "npm run build:pre && webpack --watch --config webpack.dev.js --progress", |
153 | 154 | "build": "npm run build:release", |
154 | | - "build:esm": "rollup -c rollup.config.js", |
155 | | - "build:umd": "webpack --config webpack.prod.js --progress", |
156 | | - "build:release": "npm run lint && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"", |
| 155 | + "build:esm": "npm run build:pre && rollup -c rollup.config.js", |
| 156 | + "build:umd": "npm run build:pre && webpack --config webpack.prod.js --progress", |
| 157 | + "build:release": "npm run lint && npm run build:pre && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"", |
157 | 158 | "release:create-packages": "node ./Utilities/ci/build-npm-package.js", |
158 | 159 | "test": "karma start ./karma.conf.js", |
159 | 160 | "test:headless": "karma start ./karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run", |
|
163 | 164 | "test:firefox-debug": "karma start ./karma.conf.js --browsers Firefox --no-single-run", |
164 | 165 | "commit": "git cz", |
165 | 166 | "semantic-release": "semantic-release", |
166 | | - "prepare": "node ./Utilities/prepare.js", |
167 | | - "postinstall": "patch-package" |
| 167 | + "prepare": "node ./Utilities/prepare.js" |
168 | 168 | }, |
169 | 169 | "config": { |
170 | 170 | "commitizen": { |
|
0 commit comments