mach-react
Version:
Fast, and tiny react implementation.
28 lines (23 loc) • 846 B
JavaScript
;
var gulp = require('gulp');
var eslint = require('gulp-eslint');
gulp.task('eslint', function () {
return gulp.src(['src/**'])
// eslint() attaches the lint output to the eslint property
// of the file object so it can be used by other modules.
.pipe(eslint())
// eslint.format() outputs the lint results to the console.
// Alternatively use eslint.formatEach() (see Docs).
.pipe(eslint.format())
// To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failOnError last.
.pipe(eslint.failOnError());
});
var uglify = require('gulp-uglify'),
rename = require('gulp-rename');
gulp.task('uglify', function() {
return gulp.src('dist/mach-react.js')
.pipe(rename('dist/mach-react.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./'));
});