Skip to content

Commit

Permalink
Merge pull request #14 from ezequiel/skip
Browse files Browse the repository at this point in the history
Addition of an alternative to skip building.
  • Loading branch information
ericf committed Feb 27, 2014
2 parents ea044c4 + 6df5657 commit 15da7c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/build.js
Expand Up @@ -5,7 +5,9 @@ http://yuilibrary.com/license/
*/

module.exports = function(grunt) {
if ('GRUNT_SKIP_BUILD' in process.env) {
// The `artifacts` directory will usually only ever in YUI's CI system.
// If you're in CI, and `build-npm` exists (meaning YUI's already built), skip the build.
if ((grunt.file.exists('artifacts') && grunt.file.exists('build-npm')) || 'GRUNT_SKIP_BUILD' in process.env) {
grunt.registerTask('build', 'Building YUI', function() {
grunt.log.ok('Found GRUNT_SKIP_BUILD in environment, skipping build.');
});
Expand Down

0 comments on commit 15da7c9

Please sign in to comment.