tooling
Technologies
What tooling
supports (which means you don't have to install these dependencies yourself):
- Webpack
- Babel 6 + Stage-0 + Runtime
- JSX
- Vue
- Vue-loader
- PostCSS with PreCSS
- Autoprefixer
- Hot reloading
- Build or Watch
- Long-term caching
Usage
Installing tooling
via NPM is easy (node
>= 4.0.0):
npm install tooling -g
Build a project in production mode:
# default entry is ./src/index
tooling build --entry [entry]
Run dev server with hot reloading:
# default entry is ./src/index
tooling watch --entry [entry]
API
npm install tooling --save
import tooling from 'tooling'
/**
* Tooling
*
* @param {string} type - 'watch' or 'build'
* @param {object} options - options for webpack,
* - override the default settings.
*/
tooling(type, options)
License
MIT © EGOIST