-
Notifications
You must be signed in to change notification settings - Fork 6
/
gulpfile.js
63 lines (50 loc) · 1.36 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
(function(){
'use strict';
// Gulp
var gulp = require('gulp');
var gutil = require('gulp-util');
// Some basic linting
var eslint = require('gulp-eslint');
var jshint = require('gulp-jshint');
var jsreporter = require('jshint-stylish');
var esreporter = require('eslint-stylish');
var fs = require('fs');
var jsconfig = JSON.parse(fs.readFileSync('./.jshintrc'));
var esconfig = JSON.parse(fs.readFileSync('./.eslintrc'));
gulp.task('lint', function(){
gulp.src([
'gulpfile.js',
'index.js',
'lib/**/*.js'
])
.pipe(gutil.combine(
eslint(esconfig),
eslint.formatEach(esreporter),
jshint(jsconfig),
jshint.reporter(jsreporter)
)());
});
var gulco = require('./');
gulp.task('gulco-classic', function() {
gulp.src([
'./test/**/*.litcoffee'
])
.pipe(gulco({layout: 'classic'}))
.pipe(gulp.dest('./doc/docco-classic'));
});
gulp.task('gulco-linear', function() {
gulp.src([
'./test/**/*.litcoffee'
])
.pipe(gulco({layout: 'linear'}))
.pipe(gulp.dest('./doc/docco-linear'));
});
gulp.task('gulco-parallel', function() {
gulp.src([
'./test/**/*.litcoffee'
])
.pipe(gulco({layout: 'parallel'}))
.pipe(gulp.dest('./doc/docco-parallel'));
});
gulp.task('gulco', ['gulco-parallel', 'gulco-linear', 'gulco-classic']);
}());