-
Notifications
You must be signed in to change notification settings - Fork 27
/
gulpfile.js
39 lines (34 loc) · 1003 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
38
39
'use strict';
/*
* gulpfile.js
* ===========
* Rather than manage one giant configuration file responsible
* for creating multiple tasks, each task has been broken out into
* its own file in the 'gulp' folder. Any files in that directory get
* automatically required below.
*
* To add a new task, simply add a new task file in that directory.
*/
var gulp = require('gulp');
var requireDir = require('require-dir');
// Specify paths & globbing patterns for tasks.
global.paths = {
// HTML sources.
'html': './src/*.html',
// JS sources.
'js': './src/js/**/*.js',
// SASS sources.
'sass': './src/scss/**/*.scss',
// Image sources.
'img': './src/img/*',
// Sources folder.
'src': './src',
// Compiled CSS folder.
'css': './src/css',
// Distribution folder.
'dist': './dist'
};
// Require all tasks in the 'gulp' folder.
requireDir('./gulp', { recurse: false });
// Default task; start local server & watch for changes.
gulp.task('default', ['connect', 'watch']);