-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.ls
78 lines (66 loc) · 1.62 KB
/
gulpfile.ls
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
require! {
gulp
\gulp-util
\gulp-stylus
\gulp-livescript
\gulp-livereload
\tiny-lr
\gulp-bower-files
\gulp-usemin
\gulp-uglify
\gulp-minify-css
express
path
}
app = express!
server = tiny-lr!
EXPRESSPORT = 3001
LIVERELOADPORT = 35729
#dev
gulp.task \bower,->
gulp-bower-files!
.pipe gulp.dest \app/lib
gulp.task \stylus, ->
gulp.src \app/stylus/*.styl
.pipe gulp-stylus!
.pipe gulp.dest \app/css
.pipe gulp-livereload server
gulp.task \app, ->
gulp.src \app/src/*.ls
.pipe gulp-livescript!
.pipe gulp.dest \app/js
gulp.task \express, ->
app.use require('connect-livereload')!
app.use express.static path.resolve \.
app.listen EXPRESSPORT
gulp-util.log 'Listening on port: ' + EXPRESSPORT
gulp.task \watch, ->
server.listen LIVERELOADPORT, ->
return gulp-util.log it if it
gulp.watch \app.ls, <[youmeb]>
gulp.watch \api/**/*.ls, <[youmeb]>
gulp.watch \app/stylus/*.styl, <[stylus]>
gulp.watch \app/src/*.ls, <[app]>
#youmebjs framework
gulp.task \youmeb, ->
gulp.src \app.ls
.pipe gulp-livescript!
.pipe gulp.dest \.
gulp.src \api/controllers/*.ls
.pipe gulp-livescript!
.pipe gulp.dest \controllers
gulp.src \api/models/*.ls
.pipe gulp-livescript!
.pipe gulp.dest \models
gulp.src \api/migrations/*.ls
.pipe gulp-livescript!
.pipe gulp.dest \migrations
#pulish
gulp.task \usemin,->
gulp.src \app/*.html
.pipe gulp-usemin(
cssmin: gulp-minify-css!
jsmin: gulp-uglify!)
.pipe(gulp.dest \build/)
gulp.task \default, <[bower stylus app watch express youmeb]>
gulp.task \publish, <[usemin]>