runup-lean
v0.1.0
Published
> Lean Runup model
Downloads
3
Readme
Lean Runup model
Runup-lean contains a Runup model with a fairly complete set of web (app) development tools. It's rather opinionated as it contains those tools I currently prefer to work with. Use what you like, tweak what you don't (and share).
I try to find tools that do the job well and do it efficiently. Currently these are:
For JS:
- Rollup for bundling ES modules
- Babel for transpiling them to JS in prd mode
- Uglify for minifying them in prd mode
- ESLint for linting
- Thintest for testing
For CSS:
- Node-sass for compiling from Sass
- Autoprefixer (through PostCSS) to add vendor prefixes
- CSSO to minify it in prd mode
Install
$ npm install --saveDev runup runup-lean
Usage
If you haven't yet, setup Runup.
Then let your model extend runup-lean:
// file: project.js
module.exports = {
extend: 'runup-lean',
// you can override tool options:
sass: {
// usual Node-sass options...
outputStyle: 'compact'
}
// there are similar hooks for all tools, see the flow files
// ... other settings ...
}
Then start Runup in dev or prd mode as usual. For more info on Runup, see the wiki.