npm-scripts-caster README
Extension to run npm scripts with NVM and custom environment variables
Installation
Install through VS Code extensions. Search for NPM Scripts Caster
Features
- Add NPM Scripts view in explorer view
- It's similar to builtin NPM Scripts view, but applies necessary node version before running
- It executes
nvm use if there is .nvmrc file in root directory
- You can hide builtin NPM Scripts view by right clicking on it
- Per-script environment variables
- Click the ⚙ gear icon next to any script to configure custom environment variables
- Configurations are saved in
.vscode/npm-scripts-env.json per workspace
- Configured env vars are automatically injected when running the script
- Currently supports NPM, Yarn, and PNPM
- For multi-repo workspaces provides tree view with set of commands for each project
中文文档
| |