Grunt Building
Our dev and release builds are handled by Grunt.
Installation
First you need to install the grunt-cli (npm -g install grunt-cli)
After cloning you can simply do an NPM install.
npm install
This will install the tools needed locally and build the library and npm package.
Shortcuts
grunt buildRuns ayogibuild.grunt npmRuns the npm build.grunt testRuns ayogi teston the entire lib.grunt test-cliRuns only the CLI tests.grunt travisRuns a custom build/test just for Travis CI.grunt releaseRuns a release build (more below)grunt,grunt help,grunt yuiWill display build help.
Release Build
You can do a full YUI release build with grunt release.
This command uses two CLI options (--release-version and --release-build).
--release-versionThe version to stamp the files with--release-buildThe build number of this release.
If --release-build is not provided, the last Git sha (short version) will be used in it’s place.
Release builds are stored under: ./releases/[VERSION]/
The release build consists of the following artifacts:
dist release zipContaining source, tests, HISTORY, api docs and landing pages.cdn release zipContains the build dir stamped for a CDN release (CSS files processed for relative paths)ssl cdn release zipSame as above only tweaked for SSL access.npm packageThe npm package designed for a simplenpm publish
Other Builds
We no longer require a Makefile for any of our modules, they have all been converted to grunt builds.
cssnormalizeUndersrc/cssnormalize,gruntwill import the source.handlebarsUndersrc/handlebars,gruntwill import the source.testUndersrc/test,gruntwill import the source.
