vscode/extensions/npm
2018-10-29 14:15:55 +01:00
..
.vscode update to tasks 2.0 2018-07-24 08:30:52 +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 Add a tooltip to scripts in NPM script view (#61596) 2018-10-29 14:15:55 +01:00
.vscodeignore fixing web packing 2018-09-13 12:59:24 +02:00
extension.webpack.config.js fixing web packing 2018-09-13 12:59:24 +02:00
package.json declare proposed api usage only where actually being used 2018-10-24 12:27:59 +02:00
package.nls.json Settings description update for #54690 2018-08-01 14:46:33 -07:00
README.md Added command to Run the selected npm script 2018-07-28 22:10:29 +02:00
tsconfig.json Onboard npm to use shared tsconfig 2018-10-01 16:43:18 -07:00
yarn.lock update yarn.lock files to use integrity 2018-09-30 16:34:43 +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. A script can be opened, run, or debug from the explorer.

Run Scripts from the Editor

The extension supports to run the selected script as a task when editing the package.jsonfile. You can either run a script from the hover shown on a script or using the command Run Selected Npm Script.

Others

The extension fetches data from https://registry.npmjs/org and https://registry.bower.io to provide auto-completion and information on hover features on npm dependencies.

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.
  • npm.scriptCodeLens.enable - Enable/disable the code lenses to run a script, the default is false.