/
Gruntfile.coffee
62 lines (55 loc) · 2.03 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
60
61
62
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
watch:
files: ['src/**.coffee', 'spec/coffeescripts/**.coffee']
tasks: ['test']
coffee:
options:
bare: true
bags:
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'dist'
ext: '.js'
specs:
expand: true
cwd: 'spec/coffeescripts'
src: ['**/*.coffee']
dest: 'spec/javascripts'
ext: '.js'
shell:
docs:
command: 'node_modules/.bin/docco-husky src'
options:
stdout: true
jasmine:
conversocial:
src: []
options:
specs: ["spec/javascripts/*.js"]
template : require('grunt-template-jasmine-curljs')
templateOptions:
curlConfig :
baseUrl: ''
options:
helpers : ['spec/javascripts/helpers/*.js']
vendor: [
"vendor/curl-env.js",
"vendor/mootools-core-1.4.5.js",
"vendor/mootools-more-1.4.0.1.js",
"vendor/behaviour/Element.Data.js",
"vendor/behaviour/Event.Mock.js",
"vendor/behaviour/BehaviorAPI.js",
"vendor/behaviour/Behavior.js",
"vendor/behaviour/Behavior.Startup.js",
"vendor/behaviour/Delegator.js",
"vendor/dust-full-0.3.0.min.js",
]
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-shell'
grunt.registerTask 'default', ['coffee', 'shell:docs']
grunt.registerTask 'test', ['coffee', 'jasmine', 'watch']