This is a simple boiler plate to start a js library project, with gulp automation setup for minification for javascript and css files. Sass compilation. And simple copy with comments stripping.
Watcher: Update for only the changed or added files (added if is not empty (not newly created) [copy, move or rename (which is a move)]).
(current gulp version = 4)
> gulpto start the watcher
> gulp jsminifyto minify javascript files. All the ones in src.
> gulp jsCopyto only copy to destination.
> gulp cssfor css files (minfication + just copy version)
> gulp sassfor sass files (scss, sass extensions) (same)
> gulp styleto run both sass and css tasks
Clone,
then run
npm install to install the dev dependencies (needed for the task runner).
and you will get started.