-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgulpfile.coffee
45 lines (35 loc) · 1.28 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
#########################################################
# Share.js
# Author: [email protected]
#########################################################
#--------------------------------------------------------
# Requirements
#--------------------------------------------------------
gulp = require 'gulp'
plugins = require('gulp-load-plugins')()
#--------------------------------------------------------
# Main Tasks
#--------------------------------------------------------
gulp.task "default", ["dev"]
gulp.task "dev", ["compile", "server", "watch"]
gulp.task "build", ["compile"]
#--------------------------------------------------------
# Compile
#--------------------------------------------------------
gulp.task "compile", ->
gulp.src("./src/share.coffee")
.pipe(plugins.coffee(bare: false).on("error", plugins.util.log))
.pipe gulp.dest("./dist/")
#--------------------------------------------------------
# Server
#--------------------------------------------------------
gulp.task "server", ->
gulp.src "./"
.pipe plugins.webserver
port: 3000
livereload: true
#--------------------------------------------------------
# Watch
#--------------------------------------------------------
gulp.task "watch", ->
gulp.watch "./src/share.coffee", ["compile"]