forked from BioPhoton/angular1-star-rating
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
37 lines (32 loc) · 962 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
28
29
30
31
32
33
34
35
36
37
/**
* gulpfile.js
*
* This file requires following npm modules:
* ``
* npm install gulp gulp-load-plugins wrench gulp-task-listing --save-dev
* ``
*
* The gulp tasks are separated into several files in the chore/gulp/tasks directory
*
* When starting gulp this file will load all files located in ./gulp/tasks.
* To use the files located in inactive just drag them into the tasks folder and install their required modules
*
*/
'use strict';
var gulp = require('gulp');
var wrench = require('wrench');
var $ = require('gulp-load-plugins')();
/**
* This will load all js or coffee files in the gulp directory
* in order to load all gulp tasks
*/
wrench.readdirSyncRecursive('./chore/gulp/tasks').filter(function(file) {
return (/\.(js|coffee)$/i).test(file);
}).map(function(file) {
require('./chore/gulp/tasks/' + file);
});
/**
* List the available gulp tasks
*/
gulp.task('help', $.taskListing);
gulp.task('default', ['help']);