mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-19 08:07:28 +03:00
Add npm scripts for common gulp tasks, refs #7607
This commit is contained in:
parent
a4e3410d48
commit
210ad6b96d
16
.github/CONTRIBUTING.md
vendored
16
.github/CONTRIBUTING.md
vendored
@ -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:
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user