0.1.7 • Published 8 years ago

npm-presets v0.1.7

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

npm-presets

Installs groups of npm dependencies.

Travis Coveralls branch npm PRs Welcome

Presets

Common presets can be found on the folder presets/.
You can create presets on your package.json file and the command line will try to resolve from there before searching for default presets.

Example shallow preset (react-redux-webpack)

[
  'react',
  'react-dom',
  'react-hot-loader',
  'react-redux',
  'react-router',
  'react-router-redux',
  'redux',
  'redux-devtools',
  'redux-devtools-dock-monitor',
  'redux-devtools-log-monitor',
  'redux-saga',
  'webpack',
  'webpack-dev-server'
]

Example nested preset (babel-eslint-airbnb)

[
  'preset:babel',
  'preset:eslint-airbnb',
  'babel-eslint'
]

Installation and usage

npm install -g npm-presets

This will give you three commands to use

npm-preset-install flags <presets>

It takes npm install default flags (optional) and space seprated list of presets (optional).
This command will resolve all the presets and run an npm install with the resolved modules and the provided flags.

npm-preset-install react-redux-webpack

npm-preset-install --save react-redux-webpack

npm-preset-install --save-dev react-redux-webpack

npm-preset-uninstall flags <presets>

It will uninstall all modules listed on the presets

npm-preset-list -R|--resolve <presets>

It will list all modules to be installed on a preset or a collection of presets.
Use -R or --resolve to print the version to be resolved by npm after the install.

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago