Scaffolding for developing and deploying sites.
- Babel
- Foundation
- Browserify
- Browsersync
- Gulp
- Handlebars
- Jasmine
- Modernizr
- Node Events
- Karma
- ReactJS
- SCSS
- White Label Model
IMPORTANT: Verify you have the latest versions of each of these if you have previously installed them.
This project works with 'LTS' or 'Current'
Debian/Ubuntu Users: build-essential package
npm install;
Install the correct plugin for your text editor here:
http://editorconfig.org/#download
This will normalize settings like what tab character(s) to use and will avoid linting errors.
gulp watch;
This will create a Browsersync server and reload your browser window(s) as you make code changes.
Learn more about Browsersync here: https://www.browsersync.io
This compiles and bundles everything into a deploy ready package outputted in the '_deploy' directory.
gulp deploy --www=(www domain - required) --cdn=(cdn domain - required) --service=(service domain - required) --production=(true|false - optional) --version=(unique deploy version - optional);
The 'version' argument defaults to an epoch timestamp and the 'production' argument defaults to 'false'.
gulp deploy --www=//www.example.com --cdn=//cdn.example.com --service=//service.example.com --version=123456789 --production=true;
watch:
gulp unitWatch;
single run:
gulp unit;
These in additional to other tasks run as dependencies of the 'watch' and 'deploy' tasks.
gulp markup;
gulp style;
gulp script;
gulp accessibility;
gulp documentation;
Run this when you want to verify your changes will build properly on the CI server before pushing:
npm test;
This project uses npm shrinkwrap to freeze npm module versions for improved project stability. More information here: https://docs.npmjs.com/cli/shrinkwrap.
Install as a node module:
npm install generator-white-label -g;
Then in an empty directory:
yo white-label;
Learn more about Yeoman here: https://yeoman.io