NPM Runner
A VS Code extension that lets you run npm scripts directly from the Explorer sidebar.
Features
- Displays all npm scripts defined in your
package.json in 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.json changes
- Refresh button in the panel toolbar
Usage
- Open a workspace with a
package.json that contains scripts
- 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
Commands
| 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 |
Development
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode
npm run watch
# Package for distribution
npm run package
Press F5 in VS Code to launch the extension in a new Extension Development Host window.
License
MIT
| |