/
config.coffee
62 lines (54 loc) · 2.2 KB
/
config.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
### ###############################################################################################
#
# This module contains all configuration for the build process
#
### ###############################################################################################
ANGULAR_TAG = "~1.2.17"
gulp = require("gulp")
shell = require("gulp-shell")
path = require("path")
# d3 is loaded on demand, so it is just copied in the static dir
gulp.task "copyd3", ->
gulp.src(["libs/d3/d3.min.js"])
.pipe(gulp.dest(config.dir.build))
config =
### ###########################################################################################
# Directories
### ###########################################################################################
dir:
# The build folder is where the app resides once it's completely built
build: 'buildbot_www/static'
### ###########################################################################################
# Bower dependancies configuration
### ###########################################################################################
bower:
# JavaScript libraries (order matters)
deps:
"guanlecoja-ui":
version: '~1.2.0'
files: ['vendors.js', 'scripts.js']
moment:
version: "~2.6.0"
files: 'moment.js'
restangular:
version: "~1.4.0"
files: 'dist/restangular.js'
d3: # d3 is loaded on demand via d3Service
version: "~3.4.11"
files: []
"font-awesome":
version: "~4.1.0"
files: []
"bootstrap":
version: "~3.1.1"
files: []
testdeps:
"angular-mocks":
version: ANGULAR_TAG
files: "angular-mocks.js"
buildtasks: ['scripts', 'styles', 'fonts', 'imgs',
'index', 'tests', 'generatedfixtures', 'fixtures', 'copyd3']
generatedfixtures: ->
gulp.src ""
.pipe shell("buildbot dataspec -g window.dataspec -o " + path.join(config.dir.build,"generatedfixtures.js"))
module.exports = config