-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.coffee
63 lines (56 loc) · 1.36 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
gulp = require 'xgulp'
less = require 'gulp-less'
sourcemaps = require 'gulp-sourcemaps'
using = require 'gulp-using'
# concat = require 'gulp-concat'
uglify = require 'gulp-uglify'
gulp.task 'less', ->
gulp.src
'src/less/': [
'common.less'
'site.less'
'proxy.less'
'admin.less'
'ie.less'
]
.plumber()
.pipe sourcemaps.init()
.pipe less
compress: true
#.pipe sourcemaps.write './'
.pipe gulp.dest 'public/css'
gulp.task 'bower', ->
gulp.src
'bower_components/': [
'bootstrap/dist/css/bootstrap.min.css'
]
.pipe using()
.pipe gulp.dest 'public/css'
gulp.src
'bower_components/': [
'jquery-form/jquery.form.js'
]
.pipe using()
.pipe uglify()
.pipe gulp.dest 'public/js/libs'
gulp.src
'bower_components/': [
'bootstrap/dist/js/bootstrap.min.js'
'bootstrap/dist/js/bootstrap.min.js'
'highcharts/highcharts.js'
'html5shiv/dist/html5shiv.min.js'
'jquery/dist/jquery.min.js'
'jquery-easing/jquery.easing.min.js'
'respond/dest/respond.min.js'
]
.pipe using()
.pipe gulp.dest 'public/js/libs'
gulp.src
'bower_components/': [
'bootstrap/dist/fonts/*'
]
.pipe using()
.pipe gulp.dest 'public/fonts'
gulp.task 'watch', ->
gulp.watch 'src/less/**/*.less', ['less']
gulp.task 'default', ['less', 'watch']