Support to run the selected script in the editor

This commit is contained in:
Erich Gamma
2018-07-18 12:57:26 +02:00
parent c82766c068
commit 5c5f93cdbc
5 changed files with 95 additions and 2 deletions

View File

@@ -4,6 +4,8 @@
## 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.
@@ -11,6 +13,14 @@ 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`.
### Run Scripts from the Editor
The extension provides commands to run the script containing the selection.
## Settings
- `npm.autoDetect` - Enable detecting scripts as tasks, the default is `on`.