Add npm scripts for common gulp tasks, refs #7607

This commit is contained in:
Jason Fields 2023-03-01 18:46:41 -05:00
parent a4e3410d48
commit 210ad6b96d
2 changed files with 10 additions and 8 deletions

View File

@ -54,9 +54,9 @@ When submitting a PR, please fill out the template that is presented by GitHub w
code .
# Build with one of these...
npx gulp build-dev # Fast build for development
npx gulp build # Slow build for release
yarn watch # Fast build whenever a file changes
yarn build-dev # Fast build for development
yarn build # Slow build for release
yarn watch # Fast build whenever a file changes
```
4. Run extension using VS Code's "Run and Debug" menu
@ -65,13 +65,13 @@ When submitting a PR, please fill out the template that is presented by GitHub w
```bash
# If Docker is installed and running:
npx gulp test # Run tests inside Docker container
npx gulp test --grep <REGEX> # Run only tests/suites matching <REGEX> inside Docker container
npx gulp test # Run tests inside Docker container
npx gulp test --grep <REGEX> # Run only tests/suites matching <REGEX> inside Docker container
# Otherwise, build and run the tests locally:
npx gulp build # Build
npx gulp prepare-test # Build tests
yarn test # Test (must close all instances of VS Code)
yarn build # Build
yarn build-test # Build tests
yarn test # Test (must close all instances of VS Code)
```
6. Package and install extension:

View File

@ -1137,6 +1137,8 @@
"scripts": {
"vscode:prepublish": "gulp build",
"build": "gulp build",
"build-dev": "gulp build-dev",
"build-test": "gulp prepare-test",
"test": "node ./out/test/runTest.js",
"forceprettier": "gulp forceprettier",
"watch": "npx webpack -c webpack.dev.js --watch",