forked from thienhung1989/angular-tree-dnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
34 lines (28 loc) · 736 Bytes
/
Copy pathgulpfile.js
File metadata and controls
34 lines (28 loc) · 736 Bytes
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
'use strict';
var gulp = require('gulp'),
requireDir = require('require-dir'),
$ = require('gulp-load-plugins')(),
pkg = require('./package.json'),
through = require('through2');
// Load application tasks
(
function () {
var dir = requireDir('./tasks');
Object.keys(dir).forEach(
function (key) {
dir[key] = dir[key](gulp, $, pkg, through);
}
);
}()
);
$.karma = require('karma');
gulp.task(
'build', ['styles', 'jshint', 'uglify'], function () {
return gulp.start('jshint-dist', 'test');
}
);
gulp.task(
'server', function () {
return gulp.start('connect', 'watch', 'open');
}
);