A VS Code extension that lets you run npm scripts directly from the Explorer sidebar.
- Displays all npm scripts defined in your
package.jsonin a dedicated panel within the Explorer - Click (or double-click) any script to run it in a new terminal
- Right-click for context menu options: Run Script (current terminal) or Run in New Terminal
- Auto-refreshes when
package.jsonchanges - Refresh button in the panel toolbar
- Open a workspace with a
package.jsonthat containsscripts - The NPM Scripts panel will appear in the Explorer sidebar
- Click any script to run it in a new terminal
- Use the refresh button or right-click to access more options
| Command | Description |
|---|---|
npmScripts.refresh |
Refresh the script list |
npmScripts.runScript |
Run the script in the current terminal |
npmScripts.runScriptInNewTerminal |
Run the script in a new terminal |
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode
npm run watch
# Package for distribution
npm run packagePress F5 in VS Code to launch the extension in a new Extension Development Host window.
MIT