Web build automation to transpile ES6, minify CSS and JS, inject into HTML, and move files from a to b. Requires Node JS 6+. Uses gulp
and many gulp
modules.
WebBuild
comes with 5 dead-simple functions to help you set up and build your front-end web application. The purpose of doing this is to minimize file requests and sizes between your server and clients. It also allows extremely easy sharing of common files without the need to include them in each HTML page. Read about each function in their wikis:
- buildFileSys - builds an object into a collection of file paths
- buildJs - transpiles, concats, minfies, and renames scripts
- buildCss - concats, minfies, and renames stylesheets
- buildInject - injects HTML into HTML
- buildMove - moves files from a to b
As a convenience, WebBuild
also exposes and exports gulp
and buildPump
, which is a tiny wrapper around pump that simply logs error messages.
npm install --save-dev gulp-webbuild
Written by Anthony Agostino
Licensed under the MIT license