forked from Encapsule-Annex/onm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
59 lines (42 loc) · 2.49 KB
/
Gruntfile.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
module.exports = (grunt) ->
configObject =
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
# onm API modules
'lib/onm-model.js': 'src/onm-model.coffee'
'lib/onm-address.js': 'src/onm-address.coffee'
'lib/onm-store.js': 'src/onm-store.coffee'
'lib/onm-namespace.js': 'src/onm-namespace.coffee'
'lib/onm-address-store.js': 'src/onm-address-store.coffee'
# onm implementation modules
'lib/impl/onm-address-token.js': 'src/impl/onm-address-token.coffee'
# v0.3 implementation
'lib/impl/onm-address-resolver.js': 'src/impl/onm-address-resolver.coffee'
'lib/impl/onm-component-resolver.js': 'src/impl/onm-component-resolver.coffee'
'lib/impl/onm-component-context.js': 'src/impl/onm-component-context.coffee'
'lib/impl/onm-named-object-resolver.js': 'src/impl/onm-named-object-resolver.coffee'
'lib/impl/onm-named-object-context.js': 'src/impl/onm-named-object-context.coffee'
'lib/impl/onm-named-object-property-visitor.js': 'src/impl/onm-named-object-property-visitor.coffee'
'lib/impl/onm-named-object-property-policy-common.js': 'src/impl/onm-named-object-property-policy-common.coffee'
'lib/impl/onm-named-object-property-policy-initialize.js': 'src/impl/onm-named-object-property-policy-initialize.coffee'
'lib/impl/onm-named-object-property-policy-update.js': 'src/impl/onm-named-object-property-policy-update.coffee'
'lib/impl/onm-store-reifier.js': 'src/impl/onm-store-reifier.coffee'
'lib/impl/onm-util-functions.js': 'src/impl/onm-util-functions.coffee'
jshint:
options: {}
files: [ '*.js', './lib/*.js', './lib/**/*.js' ]
mochaTest:
options:
reporter: 'spec'
checkLeaks: true
src: [ 'test/test-onm.js' ]
clean: [ 'lib' ]
grunt.initConfig configObject
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-mocha-test"
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.registerTask "test", [ "mochaTest" ]
grunt.registerTask "default", [ "clean", "coffee:compile", "test" ]