-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp.coffee
29 lines (25 loc) · 933 Bytes
/
gulp.coffee
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
###
| ----------------------------------------------------------------
| Modularized Task Loader
| ----------------------------------------------------------------
|
| This handles modularizing all of our Gulp tasks in a very easy
| and understandable manner. To ease plugin loading, we require
| 'gulp-load-plugins' so dependencies from `package.json` get
| autoloaded. It's just called `run` for expressiveness.
|
###
gulp = require 'gulp'
run = require('gulp-load-plugins')()
bs = require('browser-sync').create()
args = require("yargs").argv
fs = require "fs"
reload = bs.reload
paths =
sass : [ "src/assets/sass/**/*.scss" ]
coffee : [ "src/assets/coffeescript/**/*.coffee" ]
hbs : [ "!./node_modules/**/*.hbs", "./*.hbs", "partials/*.hbs"]
module.exports = (tasks) ->
tasks.forEach (name) ->
gulp.task name, require("./tasks/#{name}")(gulp, run, bs, reload, paths)
return gulp