vscode-npm-scripts

VSCode extension for running npm-scripts and validating the package.json files.

  • 所有者: microsoft/vscode-npm-scripts
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Node npm

This extension supports running npm scripts defined in the package.json file and validating the installed modules
against the dependencies defined in the package.json.

Notice The validation is done by running npm and it is not run when the modules are managed by yarn.

The package.json validation reports warnings for modules:

  • that are defined in the package.json, but that are not installed
  • that are installed but not defined in the package.json
  • that are installed but do not satisfy the version defined in the package.json.

Quick fixes to run npm are provided for reported warnings.

package.json validation

Commands for running scripts are available the npm category.

command palette

  • Run npm install, also available in the context menu of the explorer when the package.json file
  • Run a script (npm run-script) defined in the package.json by picking a script
    defined in the scripts section of the package.json.
  • Rerun the last npm script you have executed using this extension.
  • Terminate a running script

The scripts can be run either in the integrated terminal or an output window.

Support for Macbook Pro touch bar. You can run the following commands:

  • npm install
  • npm start
  • npm test
  • npm build

touch bar support

Settings

  • npm.validate.enable validate the dependencies in the package.json file, the default is true.
  • npm.runInTerminal defines whether the command is run
    in a terminal window or whether the output form the command is shown in the Output window. The default is to show the output in the terminal.
  • npm.includeDirectories define additional directories that include a package.json.
  • npm.useRootDirectory define whether the root directory of the workspace should be ignored, the default is false.
  • npm.runSilent run npm commands with the --silent option, the default is false.
  • npm.bin custom npm bin name, the default is npm.
  • npm.enableTouchbar Enable the npm scripts on macOS touchbar.
Example
{
	"npm.runInTerminal": false,
	"npm.includeDirectories": [
		"subdir1/path",
		"subdir2/path"
	]
}

Keyboard Shortcuts

The extension defines a chording keyboard shortcut for the R key. As a consequence an existing keybinding for R is not executed immediately. If this is not desired, then please bind another key for these commands, see the customization documentation.

主要指標

概覽
名稱與所有者microsoft/vscode-npm-scripts
主編程語言TypeScript
編程語言TypeScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2015-11-17 14:35:56
推送於2024-03-18 13:50:49
最后一次提交
發布數7
最新版本名稱v0.3.29 (發布於 )
第一版名稱0.2.0 (發布於 )
用户参与
星數215
關注者數33
派生數55
提交數250
已啟用問題?
問題數118
打開的問題數4
拉請求數32
打開的拉請求數2
關閉的拉請求數27
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?