forked from codeforkanazawa-org/5374
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.coffee
37 lines (32 loc) · 1.05 KB
/
gulpfile.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
30
31
32
33
34
35
36
37
bower = require 'bower'
gulp = require 'gulp'
gutil = require 'gulp-util'
phantom = require 'gulp-phantom'
load_from_bower_components = ->
gulp.src [
'./bower_components/jquery/dist/jquery.min.*'
'./bower_components/bootstrap/dist/js/bootstrap.min.js'
'./bower_components/respond/dest/respond.min.js'
'./bower_components/add-to-homescreen/src/add2home.js'
]
.pipe gulp.dest './js/'
gulp.src [
'./bower_components/bootstrap/dist/css/bootstrap.min.css'
'./bower_components/add-to-homescreen/style/add2home.css'
]
.pipe gulp.dest './css/'
gulp.src [
'./bower_components/bootstrap/dist/fonts/*'
]
.pipe gulp.dest './fonts/'
gutil.log 'All bower components loaded.'
gulp.task 'init', ->
bower.commands.install()
.on 'log', (r) -> gutil.log r.message if r.level == 'action'
.on 'end', (r) -> load_from_bower_components()
gulp.task 'update', ->
bower.commands.update()
.on 'log', (r) -> gutil.log r.message if r.level == 'action'
.on 'end', (r) -> load_from_bower_components()
gulp.task 'test', ->
#TODO: write tests!