forked from zordius/fluxex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
27 lines (21 loc) · 826 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';
var gulp = require('gulp'),
shell = require('gulp-shell'),
jscs = require('gulp-jscs'),
testCommands = ['cd <%=file.path %>;npm install ../..;npm prune;npm install;npm run disc;npm test'];
gulp.task('smoke_test', function () {
return gulp.src('examples/00hello/')
.pipe(shell(testCommands));
});
gulp.task('example_tests', function () {
return gulp.src('examples/*-*/')
.pipe(shell(testCommands));
});
gulp.task('watch_document', ['build_document'], function () {
return gulp.watch(['README.md', 'index.js', 'lib/*.js', 'extra/*.js'], ['build_document']);
});
gulp.task('build_document', shell.task('jsdoc -p README.md index.js lib/*.js extra/*.js -d documents'));
gulp.task('jscs', function () {
gulp.src(['index.js', 'gulpfile.js', 'lib/*.js'])
.pipe(jscs());
});