Skip to content

Commit

Permalink
feat(mydependencies): agregando shebang line para node
Browse files Browse the repository at this point in the history
  • Loading branch information
jansanchez committed Jan 24, 2015
1 parent a5aab93 commit 7d2619e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/mydependencies.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node

/*
mydependencies
Expand Down
5 changes: 4 additions & 1 deletion gulp/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ Path.javascript = {
Path.dest.js.package + '**/*.js',
Path.dest.js.test + '**/*.js',
Path.dest.js.bin + '**/*.js'
]
],
shebang: {
src: ['./source/resources/shebang-line.js', Path.dest.js.bin + 'mydependencies.js']
}
};


Expand Down
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,14 @@ gulp.task('complexity', function(){
.pipe(plugins.complexity({breakOnErrors: false, halstead: [10, 13, 20]}));
});

gulp.task('shebang', function() {
return gulp.src(path.javascript.shebang.src)
.pipe(plugins.concat('mydependencies.js'))
.pipe(gulp.dest(path.dest.js.bin));
});

gulp.task('js', function(cb) {
plugins.runSequence('clean:js', 'coffee', 'copy:js:test', 'copy:js:bin', 'clean:js:test', 'clean:js:bin', 'lint', 'complexity', cb);
plugins.runSequence('clean:js', 'coffee', 'copy:js:test', 'copy:js:bin', 'clean:js:test', 'clean:js:bin', 'lint', 'complexity', 'shebang', cb);
});


Expand Down
1 change: 1 addition & 0 deletions source/resources/shebang-line.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/usr/bin/env node

0 comments on commit 7d2619e

Please sign in to comment.