-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.coffee
31 lines (27 loc) · 1.01 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
gulp = require 'gulp'
nodemon = require 'gulp-nodemon'
coffeelint = require 'gulp-coffeelint'
conf =
expressPort : 3000
browserSyncPort : 7000
gulp.task 'server', ->
nodemon
ext : 'coffee'
script : 'server/index.coffee'
env :
'NODE_ENV' : 'development'
'PORT' : conf.expressPort
'MONGO_URL' : 'mongodb://localhost/cinema'
'TOKEN_SECRET' : 'A hard to guess string'
'GOOGLE_SECRET' : '99sV-h9AJxgQS-Wj5UASECgU'
'FACEBOOK_SECRET' : '4c999318d9cc99b18a404f554084e98b'
'TWITTER_KEY' : 'vKhGVGsnCRHV5qKO3g0b8jTSa'
'TWITTER_SECRET' : '9L0UdrluqoHDs8RorFrlL7P6Hv751iuEeJL3ke4AsVoTw861Ym'
'TWITTER_CALLBACK' : "http://localhost:#{conf.browserSyncPort}"
'GITHUB_SECRET' : '6038e35e20e6b4fc86e7a0694329eee7f8cf9814'
gulp.watch ['gulpfile.coffee', './server/**/*.coffee'], ['coffeelint']
gulp.task 'coffeelint', ->
gulp.src './server/**/*.coffee'
.pipe coffeelint()
.pipe coffeelint.reporter()
gulp.task 'default', ['server', 'coffeelint']