-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBakefile.coffee
42 lines (39 loc) · 1.13 KB
/
Bakefile.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
module.exports =
library:
join: 'backbone-modelref.js'
wrapper: 'src/module-loader.js'
compress: true
files: 'src/**/*.coffee'
_build:
commands: [
'cp backbone-modelref.js packages/npm/backbone-modelref.js'
'cp backbone-modelref.min.js packages/npm/backbone-modelref.min.js'
'cp README.md packages/npm/README.md'
'cp backbone-modelref.js packages/nuget/Content/Scripts/backbone-modelref.js'
'cp backbone-modelref.min.js packages/nuget/Content/Scripts/backbone-modelref.min.js'
]
tests:
_build:
output: 'build'
directories: [
'test/core'
]
commands: [
'mbundle test/packaging/bundle-config.coffee'
'mbundle test/lodash/bundle-config.coffee'
]
_test:
command: 'phantomjs'
runner: 'phantomjs-qunit-runner.js'
files: ['**/*.html']
directories: [
'test/core'
'test/packaging'
'test/lodash'
]
_postinstall:
commands: [
'cp -v underscore vendor/underscore.js'
'cp -v backbone vendor/backbone.js'
'cp -v lodash vendor/optional/lodash.js'
]