vscode/extensions/npm/README.md

18 lines
1.1 KiB
Markdown
Raw Normal View History

2018-02-21 13:16:36 +01:00
# Node npm
2018-02-21 13:19:09 +01:00
**Notice** This is a an extension that is bundled with Visual Studio Code.
2018-02-21 13:16:36 +01:00
This extension supports running npm scripts defined in the `package.json` as [tasks](https://code.visualstudio.com/docs/editor/tasks). Scripts with the name 'build', 'compile', or 'watch'
are treated as build tasks.
To run scripts as tasks you use the `Tasks` menu.
2018-03-05 14:47:04 +01:00
For more information about auto detection of Tasks pls see the [documentation](https://code.visualstudio.com/Docs/editor/tasks#_task-autodetection).
2018-02-21 13:16:36 +01:00
## Settings
- `npm.autoDetect` enable detecting scripts as tasks, the default is `on`.
- `npm.runSilent` run npm script with the `--silent` option, the default is `false`.
- `npm.packageManager` the package manager used to run the scripts: `npm` or `yarn`, the default is `npm`.
2018-03-01 10:33:11 +01:00
- `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 when the workspace contains a 'package.json' file.