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

gulp-chug

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-chug - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

9

package.json
{
"name": "gulp-chug",
"version": "0.1.9",
"version": "0.1.10",
"description": "Run external gulpfiles as part of a gulp task inside another gulpfile",

@@ -23,11 +23,12 @@ "repository": "https://github.com/robatron/gulp-chug.git",

"gulp-util": "~2.2.13",
"gulp": "~3.5",
"resolve": "~0.6.1"
},
"devDependencies": {
"gulp-replace": "~0.2.0"
"gulp-replace": "~0.2.0",
"gulp": "^3.6.1"
},
"scripts": {
"test": "cd test && node ../node_modules/gulp/bin/gulp"
"test": "cd test && node ../node_modules/gulp/bin/gulp",
"publish-0.1": "git tag -a 0.1 -f -m 'IPO' && git push origin master && git push -f origin 0.1 && npm publish"
}
}

@@ -6,42 +6,56 @@ /** Ghetto testing. Run `gulp` from this directory, and things should happen

*/
var gulp = require( 'gulp' );
var gulp = require( 'gulp' );
var replace = require( 'gulp-replace' );
var gulpCascade = require( '../index.js' );
var chug = require( '../index.js' );
// Happy path
gulp.task( 'happy', function () {
gulp.src( './subproj/gulpfile.js' )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// Custom gulpfile file name
gulp.task( 'custom-filename', function () {
gulp.src( './subproj/gulpfile-custom-name.js' )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// Nested gulpfile
gulp.task( 'deep-nest', function () {
gulp.src( './subproj/subdir/gulpfile.js' )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// Glob multiple gulpfiles
gulp.task( 'glob', function () {
gulp.src( './subproj/**/gulpfile*.js' )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// Non-existant gulpfile
gulp.task( 'non-existant', function () {
gulp.src( './subproj/non-existant-file.js' )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// No-read option
gulp.task( 'no-read', function () {
gulp.src( './subproj/gulpfile.js', { read: false } )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// Mess with the gulpfile before running
gulp.task( 'modify-before', function () {
gulp.src( './subproj/gulpfile.js' )
.pipe( replace( 'Hello', 'Goodbye' ) )
.pipe( gulpCascade() )
.pipe( chug() )
} );
// Make sure it works synchronously
gulp.task( 'sync', function () {
return gulp.src( './subproj/gulpfile.js' )
.pipe( chug() )
} );
gulp.task( 'default', [

@@ -54,3 +68,4 @@ 'happy',

'no-read',
'modify-before'
'modify-before',
'sync'
] );
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