diff options
author | Alberto García Hierro <alberto@garciahierro.com> | 2017-09-04 17:16:52 +0300 |
---|---|---|
committer | Alberto García Hierro <alberto@garciahierro.com> | 2017-09-04 17:16:52 +0300 |
commit | 151b8f2e14324c0cf1d50e4d4691bab3dd75cef4 (patch) | |
tree | f5813272349fe055a36efc798cb8e758defb15d5 /gulpfile.js | |
parent | e0098909847fd28d8e3fcb74326d9e3b78d1cf74 (diff) |
Document the build process better
Add comments in gulpfile.js indicating how to add new files to
the build.
Add documentation for getting a development environment up and
running in the README.
Document each task defined in gulpfile.js in the README.
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js index 8f548431..2be8c366 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,6 +7,31 @@ var del = require('del'); var runSequence = require('run-sequence'); var NwBuilder = require('nw-builder'); + +// Each key in the *sources* variable must be an array of +// the source files that will be combined into a single +// file and stored in *outputDir*. Each key in *sources* +// must be also present in *output*, whose value indicates +// the filename for the output file which combines the +// contents of the source files. +// +// Keys must be camel cased and end with either 'Css' or +// 'Js' (e.g. someSourcesCss or someSourcesJs). For each +// key, a build task will be generated named by prepending +// 'build-' and converting the key to dash-separated words +// (e.g. someSourcesCss will generate build-some-sources-css). +// +// Tasks with names ending with '-js' will be executed by the +// build-all-js task, while the ones ending with '-css' will +// be done by build-all-css. There's also a build task which +// runs both build-all-css and build-all-js. +// +// The watch task will monitor any files mentioned in the *sources* +// variable and regenerate the corresponding output file when +// they change. +// +// See README.md for details on the other tasks. + var sources = {}; sources.css = [ |