You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/npm/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,10 @@ The Npm Script Explorer shows the npm scripts found in your workspace. The explo
22
22
The extension supports to run the selected script as a task when editing the `package.json`file. You can either run a script from
23
23
the hover shown on a script or using the command `Run Selected Npm Script`.
24
24
25
+
### Run Scripts from a Folder in Explorer
26
+
27
+
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.
28
+
25
29
### Others
26
30
27
31
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,7 +38,7 @@ The extension fetches data from https://registry.npmjs/org and https://registry.
34
38
-`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/**'.
35
39
-`npm.enableScriptExplorer` - Enable an explorer view for npm scripts.
36
40
-`npm.scriptExplorerAction` - The default click action: `open` or `run`, the default is `open`.
41
+
-`npm.enableRunFromFolderContextMenu` - Enable running npm scripts from the context menu of folders in Explorer, the default is `false`.
37
42
-`npm.scriptCodeLens.enable` - Enable/disable the code lenses to run a script, the default is `false`.
38
-
-`npm.enableRunFromFolderContextMenu` - Enable running npm scripts from the context menu of folders in Explorer, the default is `true`.
0 commit comments