build-workflow
Advanced tools
Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "build-workflow", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Simple gruntfile helper to define build workflows", | ||
@@ -5,0 +5,0 @@ "main": "config-loader.js", |
@@ -17,36 +17,31 @@ #!/usr/bin/env node | ||
console.log( cfg.pathToSource ); | ||
showTitleBlock( 'Validation Hook Started' ); | ||
//console.log('arguments: ', process.argv); | ||
exec('which grunt', function (err, stdout, stderr) { | ||
if (stdout && stdout.length > 0) { // grunt exits | ||
var cp = exec( 'grunt prepush', function ( err, stdout, stderr ) { | ||
if ( err ) { | ||
showTitleBlock( 'Validation Hook Started' ); | ||
console.error( err ); | ||
var cp = exec( 'grunt prepush', function ( err, stdout, stderr ) { | ||
if ( err ) { | ||
showErrorBlock( 'Review your errors and try again', 'VALIDATION FAILED :' ); | ||
console.error( err ); | ||
process.exit( 1 ); | ||
return; | ||
showErrorBlock( 'Review your errors and try again', 'VALIDATION FAILED :' ); | ||
process.exit( 1 ); | ||
return; | ||
} | ||
showSuccessBlock( 'Validation Hook Completed!.' ); | ||
} ); | ||
cp.stdout.pipe( createStream()); | ||
} | ||
else { | ||
console.log("It seems you don't have `grunt` in your system. No checks will be done. Pray you don't break things, and the build goes green"); | ||
} | ||
}); | ||
showSuccessBlock( 'Validation Hook Completed!.' ); | ||
// var cp2 = exec( 'grunt jshint:js-check jscs:js-check jsvalidate:js-check', function ( err, stdout, stderr ) { | ||
// if ( err ) { | ||
// | ||
// showErrorBlock( 'Review your errors and try again', 'VALIDATION FAILED :' ); | ||
// process.exit( 1 ); | ||
// } | ||
// | ||
// showSuccessBlock( 'Validation Hook Completed!.' ); | ||
// | ||
// } ); | ||
// | ||
// cp2.stdout.pipe( createStream()); | ||
} ); | ||
cp.stdout.pipe( createStream()); | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1
461882
149
3467