Skip to content

Run a command from every installed npm package under a certain scope

License

Notifications You must be signed in to change notification settings

hughsk/scoped-bulk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scoped-bulk experimental

Run a command from every installed npm package under a certain scope. Useful in combination with district.

CLI Usage

NPM

Usage:
  scoped-bulk <namespace> <command...>

Where <namespace> is the package namespace to use, and <command...> is a command to run from your shell in each scoped package.

For example, running the following in your project root might yield something like this:

scoped-bulk scoped ls -A
node_modules/@scoped/1
> ls -A

.gitkeep

node_modules/@scoped/2
> ls -A

.gitkeep

node_modules/@scoped/3
> ls -A

.gitkeep

node_modules/@scoped/4
> ls -A

.gitkeep

You can use this, for example, to install the dependencies of locally scoped modules:

scoped-bulk scoped npm install --production

License

MIT. See LICENSE.md for details.

About

Run a command from every installed npm package under a certain scope

Resources

License

Stars

Watchers

Forks

Packages

No packages published