Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f12a10
commit 8eb3e85
Showing
8 changed files
with
65 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
var gulp = require('gulp'); | ||
|
||
// Plugins | ||
var jshint = require('gulp-jshint'); | ||
var concat = require('gulp-concat'); | ||
var uglify = require('gulp-uglify'); | ||
var rename = require('gulp-rename'); | ||
var jsdoc = require("gulp-jsdoc"); | ||
|
||
// Lint Task | ||
gulp.task('lint', function() { | ||
return gulp.src('dispatch.js') | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')); | ||
}); | ||
|
||
// Docs Task | ||
gulp.task('docs', function() { | ||
gulp.src("dispatch.js") | ||
.pipe(jsdoc('./docs')); | ||
}); | ||
|
||
// Concatenate & Minify JS | ||
gulp.task('scripts', function() { | ||
return gulp.src('dispatch.js') | ||
.pipe(concat('dispatch.js')) | ||
.pipe(gulp.dest('src')) | ||
.pipe(rename('dispatch.min.js')) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('src')); | ||
}); | ||
|
||
// Watch Files For Changes | ||
gulp.task('watch', function() { | ||
gulp.watch('dispatch.js', ['lint', 'docs', 'scripts']); | ||
}); | ||
|
||
// Default Task | ||
gulp.task('default', ['lint', 'scripts', 'docs', 'watch']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.