-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.coffee
79 lines (67 loc) · 1.74 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
configs =
coffeeFiles : 'app/**/*.coffee'
jadeFiles : 'app/**/*.jade'
scssFiles : 'app/**/*.scss'
specFiles : 'tests/specs/**/*.coffee'
tempFolder : '.tmp'
appFolder : 'app'
distFolder : 'dist'
configs.karma =
coverage : 'app/**/*.coffee'
# Dont include coverage files
coffeeFiles : [
'tests/swagger.coffee'
'tests/helper.coffee'
'tests/specs/**/*.coffee'
]
files: [
'tests/swagger.coffee'
'tests/helper.coffee'
'bower_components/sinon/index.js'
'app/**/*.coffee'
'tests/specs/**/*.coffee'
]
configs.buildFiles =
copy: [
'.tmp/scripts/**.*'
]
configs.fixtureFiles = [
'app/**/*.json'
]
configs.coverageReporter =
type: 'lcov'
dir: 'coverage'
##
## Normally, you wouldnt need to edit below this line ##
##
gulpTaskPath = './node_modules/appirio-gulp-tasks'
configs.karma.configFile = __dirname + '/' + gulpTaskPath + '/karma.conf.coffee'
configs.karma.basePath = __dirname
pluginsPath = gulpTaskPath + '/node_modules/gulp-load-plugins'
browserSyncPath = gulpTaskPath + '/node_modules/browser-sync'
karmaPath = gulpTaskPath + '/node_modules/karma'
gulpLoadPluginsOptions =
config: __dirname + '/' + gulpTaskPath + '/package.json'
gulp = require 'gulp'
plugins = require pluginsPath
$ = plugins gulpLoadPluginsOptions
$.browserSync = require browserSyncPath
$.karma = require(karmaPath).server
tasks = [
'coffee'
'jade'
'scss'
'clean'
'serve'
'build'
'test'
'ng-constant'
'coveralls'
'fixtures'
'template-cache'
]
for task in tasks
module = require(gulpTaskPath + '/tasks/' + task)
module gulp, $, configs
gulp.task 'default', ['clean'], ->
gulp.start 'build'