Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Open a workspace with a package.json that contains scripts
  2. The NPM Scripts panel will appear in the Explorer sidebar
  3. Click any script to run it in a new terminal
  4. 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

About

NPM SC - 在 VS Code Explorer 侧边栏中显示并运行 npm scripts。

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages