-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
31 lines (29 loc) · 1.12 KB
/
Gruntfile.coffee
File metadata and controls
31 lines (29 loc) · 1.12 KB
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
module.exports = (grunt) ->
grunt.initConfig
coffee:
compileBare:
options:
bare: true
files:
'lib/honegger.js': ['lib/honegger-core.coffee', 'lib/honegger-content-component.coffee',
'lib/honegger-content-template.coffee']
'lib/honegger-plugins.js': ['lib/plugins/*.coffee']
'build/honegger-spec-helpers.js': ['spec/spec_helpers.coffee']
compile:
files:
'build/honegger-spec.js': ['spec/*.coffee']
jasmine:
src: ['lib/honegger.js', 'lib/honegger-plugins.js']
options:
keepRunner: true
specs: ['build/honegger-shared-spec.js', 'build/honegger-spec.js']
helpers: 'build/honegger-spec-helpers.js'
vendor: ['vendor/jquery-2.0.3.min.js', 'vendor/jquery.hotkeys.js', 'vendor/jasmine-jquery.js']
watch:
files: '**/*.coffee'
tasks: ['test']
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'test', ['coffee', 'jasmine']
grunt.registerTask 'default', ['test']