mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
.. | ||
.vscode | ||
images | ||
resources | ||
src | ||
.vscodeignore | ||
package.json | ||
package.nls.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
Node npm
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
This extension supports running npm scripts defined in the package.json
as tasks. Scripts with the name 'build', 'compile', or 'watch'
are treated as build tasks.
To run scripts as tasks, use the Tasks menu.
For more information about auto detection of Tasks, see the documentation.
Settings
npm.autoDetect
- Enable detecting scripts as tasks, the default ison
.npm.runSilent
- Run npm script with the--silent
option, the default isfalse
.npm.packageManager
- The package manager used to run the scripts:npm
oryarn
, the default isnpm
.npm.exclude
- Glob patterns for folders that should be excluded from automatic script detection. The pattern is matched against the absolute path of the package.json. For example, to exclude all test folders use '**/test/**'.npm.enableScriptExplorer
- Enable an explorer view for npm scripts.npm.scriptExplorerAction
- The default click action:open
orrun
, the default isopen
.