@@ -22,6 +22,10 @@ The Npm Script Explorer shows the npm scripts found in your workspace. The explo
The extension supports to run the selected script as a task when editing the `package.json`file. You can either run a script from
the hover shown on a script or using the command `Run Selected Npm Script`.
### Run Scripts from a Folder in Explorer
The extension supports running a script as a task from the Explorer. Right-click a folder in Explorer and select the `Run npm Script in Folder...` option to bring up a command palette listing the scripts that the folder contains. You can run the script by selecting from the options listed in the command palette.
### 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.
...
...
@@ -34,5 +38,7 @@ The extension fetches data from https://registry.npmjs.org and https://registry.
-`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.enableRunFromFolderContextMenu` - Enable running npm scripts from the context menu of folders in Explorer, the default is `false`.
-`npm.scriptCodeLens.enable` - Enable/disable the code lenses to run a script, the default is `false`.
"config.npm.exclude":"Configure glob patterns for folders that should be excluded from automatic script detection.",
"config.npm.enableScriptExplorer":"Enable an explorer view for npm scripts when there is no top-level 'package.json' file.",
"config.npm.scriptExplorerAction":"The default click action used in the scripts explorer: `open` or `run`, the default is `open`.",
"config.npm.enableRunFromFolderContextMenu":"Enable running scripts from the context menu of a folder in Explorer",
"config.npm.fetchOnlinePackageInfo":"Fetch data from https://registry.npmjs.org and https://registry.bower.io to provide auto-completion and information on hover features on npm dependencies.",
"npm.parseError":"Npm task detection: failed to parse the file {0}",
"taskdef.script":"The npm script to customize.",
...
...
@@ -17,5 +18,6 @@
"command.debug":"Debug",
"command.openScript":"Open",
"command.runInstall":"Run Install",
"command.runSelectedScript":"Run Script"
"command.runSelectedScript":"Run Script",
"command.runScriptFromFolder":"Run npm Script in Folder..."