vscode/extensions/npm
2018-07-18 12:58:19 +02:00
..
.vscode ${workspaceRoot} -> ${workspaceFolder} 2017-09-19 11:21:49 +02:00
images Fixing #43978 add description/readme 2018-02-21 13:16:58 +01:00
resources Add inline action for running 'debug scripts' 2018-05-23 22:56:40 +02:00
src Support to run the selected script in the editor 2018-07-18 12:58:19 +02:00
.vscodeignore use vsce to determine what to package when bundling extensions 2017-06-21 16:17:21 +02:00
package.json Support to run the selected script in the editor 2018-07-18 12:58:19 +02:00
package.nls.json Support to run the selected script in the editor 2018-07-18 12:58:19 +02:00
README.md Support to run the selected script in the editor 2018-07-18 12:58:19 +02:00
tsconfig.json remove commented out lines 2018-06-04 09:42:47 +02:00
yarn.lock Move to latest vscode-nls for corrupted cache support 2018-07-03 16:12:52 +02:00

Node npm

Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.

Features

Task Running

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.

Script Explorer

The Npm Script Explorer shows the npm scripts found in your workspace. The explorer view is enabled by the setting npm.enableScriptExplorer.

Run Scripts from the Editor

The extension provides commands to run the script containing the selection.

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.
  • 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 or run, the default is open.