This commit is contained in:
42
vscode-server-linux-x64-web/extensions/npm/README.md
Normal file
42
vscode-server-linux-x64-web/extensions/npm/README.md
Normal file
@ -0,0 +1,42 @@
|
||||
# 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](https://code.visualstudio.com/docs/editor/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](https://code.visualstudio.com/Docs/editor/tasks#_task-autodetection).
|
||||
|
||||
### 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.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 the Explorer
|
||||
|
||||
The extension supports running a script as a task from a folder in the Explorer. The command `Run NPM Script in Folder...` shown in the Explorer context menu finds all scripts in `package.json` files that are contained in this folder. You can then select the script to be executed as a task from the resulting list. You enable this support with the `npm.runScriptFromFolder` which is `false` by default.
|
||||
|
||||
### 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: `auto`, `npm`, `yarn`, `pnpm` or `bun`. The default is `auto`, which detects your package manager based on files in your workspace.
|
||||
- `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.enableRunFromFolder` - 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`.
|
3
vscode-server-linux-x64-web/extensions/npm/dist/npmMain.js
vendored
Normal file
3
vscode-server-linux-x64-web/extensions/npm/dist/npmMain.js
vendored
Normal file
File diff suppressed because one or more lines are too long
20
vscode-server-linux-x64-web/extensions/npm/dist/npmMain.js.LICENSE.txt
vendored
Normal file
20
vscode-server-linux-x64-web/extensions/npm/dist/npmMain.js.LICENSE.txt
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* fill-range <https://github.com/jonschlinkert/fill-range>
|
||||
*
|
||||
* Copyright (c) 2014-present, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* is-number <https://github.com/jonschlinkert/is-number>
|
||||
*
|
||||
* Copyright (c) 2014-present, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
||||
*
|
||||
* Copyright (c) 2015-present, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.32798 5.00905L1.2384 8.09746L4.32798 11.1859L3.5016 12.0123L0 8.51065V7.68427L3.5016 4.18267L4.32798 5.00905ZM12.4984 4.18267L11.672 5.00905L14.7616 8.09746L11.672 11.1859L12.4984 12.0123L16 8.51065V7.68427L12.4984 4.18267ZM4.56142 13.672L5.6049 14.1949L11.4409 2.52291L10.3974 2L4.56142 13.672V13.672Z" fill="black"/>
|
||||
</svg>
|
After Width: | Height: | Size: 434 B |
BIN
vscode-server-linux-x64-web/extensions/npm/images/npm_icon.png
Normal file
BIN
vscode-server-linux-x64-web/extensions/npm/images/npm_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 523 B |
1
vscode-server-linux-x64-web/extensions/npm/package.json
Normal file
1
vscode-server-linux-x64-web/extensions/npm/package.json
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"description":"Extension to add task support for npm scripts.","displayName":"NPM support for VS Code","workspaceTrust":"This extension executes tasks, which require trust to run.","virtualWorkspaces":"Functionality that requires running the 'npm' command is not available in virtual workspaces.","config.npm.autoDetect":"Controls whether npm scripts should be automatically detected.","config.npm.runSilent":"Run npm commands with the `--silent` option.","config.npm.packageManager":"The package manager used to run scripts.","config.npm.packageManager.npm":"Use npm as the package manager for running scripts.","config.npm.packageManager.yarn":"Use yarn as the package manager for running scripts.","config.npm.packageManager.pnpm":"Use pnpm as the package manager for running scripts.","config.npm.packageManager.bun":"Use bun as the package manager for running scripts.","config.npm.packageManager.auto":"Auto-detect which package manager to use for running scripts based on lock files and installed package managers.","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 NPM Scripts Explorer: `open` or `run`, the default is `open`.","config.npm.scriptExplorerExclude":"An array of regular expressions that indicate which scripts should be excluded from the NPM Scripts view.","config.npm.enableRunFromFolder":"Enable running npm scripts contained in a folder from the Explorer context menu.","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.","config.npm.scriptHover":"Display hover with 'Run' and 'Debug' commands for scripts.","npm.parseError":"Npm task detection: failed to parse the file {0}","taskdef.script":"The npm script to customize.","taskdef.path":"The path to the folder of the package.json file that provides the script. Can be omitted.","view.name":"NPM Scripts","command.refresh":"Refresh","command.run":"Run","command.debug":"Debug","command.openScript":"Open","command.runInstall":"Run Install","command.runSelectedScript":"Run Script","command.runScriptFromFolder":"Run NPM Script in Folder...","command.packageManager":"Get Configured Package Manager"}
|
Reference in New Issue
Block a user