This project is build to provide a tool, which bundles of frontend development gulp tasks.
This tool has some default configurations and is saved in default.yml
. But it is also designed to be configurable by
using YAML file, which must be named as project.yml
. All the default configuration can be overwritten in the
project.yml
.
This tool provides a JavaScript building process, including transform the ES6 and React to ES5, linting, contacting, minify and modernizr.
The JavaScript building process accept three types code: libaries
, none module codes
, ES6/React module codes
.
The configuration is under scripts
. It has the following settings:
You can set the relative path of the es-lint configuration file in lint.configFile
, if you need a custom linting configuration.
libs
: The path of JavaScript libraries, for example jQuerynode_modules/jquery/dist/jquery.min.js
.src
: The directory path to none module JavaScript codes, like ES5 codes, e.gsrc/JavaScript
.applicationSrc
: The base directory, in which stand the module JavaScript codes. The default value is the current gulp running pathapplicationEntries
: The entry file for module JavaScript codes, the value should be the relative path to the base path of application source path, which is set inapplicationSrc
, for example for React applicationsrc/React/index.js
dest
: The destination directory, where the compiled JS file should be saved