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