-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
47 lines (37 loc) · 1.44 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
'use strict';
/**
* Imports
*/
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
plugins.guglify = require('gulp-uglify');
plugins.rsass = require('gulp-ruby-sass');
plugins.grm = require('requirejs-metagen');
plugins.path = require('path');
var config = require('./config.json');
var pkg = require('./package.json');
var requireDir = require('require-dir');
var tasks = requireDir('./gulp-tasks');
/**********************************************
* TASKS *
**********************************************/
plugins.livereload.listen();
// Utility for CSS
gulp.task('css', tasks.css(gulp, plugins, config));
// Utility for JS
gulp.task('scripts', tasks.scripts(gulp, plugins, config));
gulp.task('scripts:prod', tasks.scripts(gulp, plugins, config, true));
// Compass
gulp.task('compass', tasks.compass(gulp, plugins, config));
gulp.task('compass:prod', tasks.compass(gulp, plugins, config, true));
// Sass
gulp.task('sass', tasks.sass(gulp, plugins, config));
gulp.task('sass:prod', tasks.sass(gulp, plugins, config, true));
// Ruby Sass
gulp.task('rsass', tasks.rsass(gulp, plugins, config));
gulp.task('rsass:prod', tasks.rsass(gulp, plugins, config, true));
// Watch
gulp.task('watch', tasks.watch(gulp, plugins, config));
gulp.task('watch:prod', ['watch', 'compass:prod', 'scripts:prod']);
// Default
gulp.task('default', ['watch', 'compass', 'scripts']);