Also look at https://github.com/AgronKabashi/got-rollup if you are interested in a rollup solution instead.
- Install node.js
- Run
npm install
in the project folder - Run
gulp
to host a web server with livereload
The default
task will transpile and/or copy the necessary files to the build folder. The various tasks have been split up into their own files to increase maintainability and scalability.
clean
- removes the build folderconnect
- hosts a web server with live reloadcopy
- copies the files that do not need any pre-processing directly into the build foldersass
- pre-processes sass files into cssscripts
- transpiles the es2015 code into an application bundlevendors
- concatenates static vendor files (polyfills) and browserifies angular 2 importswatch
- Sets up watches to trigger livereloadindex
- simply a facade that exports all the tasks in the folder
The file paths used in the various tasks can be configured through config.json