mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-04-03 09:36:04 +08:00
16 lines
450 B
JavaScript
16 lines
450 B
JavaScript
var gulp = require("gulp");
|
|
var jshint = require("gulp-jshint");
|
|
var uglify = require("gulp-uglify");
|
|
var extReplace = require("gulp-ext-replace");
|
|
|
|
gulp.task("scripts", function() {
|
|
// Load the code, and process it.
|
|
var code = gulp.src("js/ReactFireMixin.js")
|
|
.pipe(jshint())
|
|
.pipe(jshint.reporter("jshint-stylish"))
|
|
.pipe(uglify())
|
|
.pipe(extReplace(".min.js"))
|
|
.pipe(gulp.dest("js"));
|
|
});
|
|
|
|
gulp.task("default", ["scripts"]); |