UNPKG

430 BJavaScriptView Raw
1var gulp = require('gulp');
2var mocha = require('gulp-mocha-phantomjs');
3var react = require('gulp-react');
4
5gulp.task('test', function() {
6 return gulp.src('./test/index.html')
7 .pipe(mocha({
8 reporter: 'dot'
9 }));
10});
11
12gulp.task('build', function () {
13 return gulp.src('./src/**')
14 .pipe(react({
15 harmony: true
16 }))
17 .pipe(gulp.dest('./lib'));
18});
19
20gulp.task('default', ['test']);