-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
50 lines (43 loc) · 1.25 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
module.exports = (grunt) ->
grunt.initConfig
browserify:
dist:
files:
'lib/main.js' : ['src/*.coffee']
options:
transform: ['coffeeify']
browserifyOptions:
standalone: 'LogmeinWebClient'
meta:
src: 'lib/main.js'
specs: 'build/tests.js'
watch:
files: '**/*.coffee'
tasks: ['test']
jasmine:
src: '<%= meta.src %>'
options:
specs: '<%= meta.specs %>'
vendor: [
'bower_components/http/http.js'
'bower_components/jasmine-given/dist/jasmine-given.js'
'bower_components/sinon/lib/sinon.js'
]
coffee:
compile:
files:
'build/tests.js': ['test/*.coffee']
docco:
debug:
src: ['src/**/*.coffee']
options:
output: 'docs/'
layout: 'linear'
grunt.loadNpmTasks 'grunt-browserify'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-docco'
grunt.registerTask 'default', ['browserify', 'coffee', 'jasmine', 'docco']
grunt.registerTask 'test', ['browserify', 'coffee', 'jasmine']
grunt.registerTask 'doc', ['docco']