-
Notifications
You must be signed in to change notification settings - Fork 31
/
gulpfile.js
42 lines (37 loc) · 1.22 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
const browserify = require('./tasks/browserify');
const build = require('./tasks/build');
const bump = require('./tasks/bump');
const bundle = require('./tasks/bundle');
const clean = require('./tasks/clean');
const config = require('./config');
const copy = require('./tasks/copy');
const docs = require('./tasks/docs');
const gulp = require('gulp');
const metadata = require('./package');
const minify = require('./tasks/minify');
const mocha = require('./tasks/mocha');
const prependHeaders = require('./tasks/prependHeaders');
const requireDir = require('require-dir');
const runSequence = require('run-sequence');
const opts = {};
metadata.name = 'manifesto';
opts.metadata = metadata;
opts.libs = [
'node_modules/exjs/dist/ex.es3.min.js',
'node_modules/http-status-codes/dist/http-status-codes.js'
];
const c = new config(opts);
browserify(c);
build(c);
bundle(c);
clean(c);
copy(c);
docs(c);
minify(c);
mocha(c);
prependHeaders(c);
gulp.task('default', function(cb) {
//runSequence('clean:dist', 'build', 'browserify', 'minify', 'bundle', 'prependHeaders', cb);
runSequence('clean:dist', 'build', 'browserify', 'bundle', 'prependHeaders', cb);
});
gulp.task('test', ['mocha']);