Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

build-workflow

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-workflow - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc