-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.coffee
41 lines (35 loc) · 1.41 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
'use strict'
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
watch:
coffee:
files: ['Gruntfile.coffee', 'Resources/public/coffee/**/*.coffee']
tasks: ['coffee']
test:
files: ['Resources/test/spec/*.coffee', 'Resources/coffee/*.coffee']
tasks: ['test']
coffee:
compile:
options:
sourceMap: false
files:
'Resources/test/src/ng-router.js': ['Resources/coffee/ng-router.coffee']
'Resources/test/spec/ng-router.js': ['Resources/test/spec/ng-router.coffee']
dist:
options:
sourceMap: false
files:
'Resources/public/ng-router.js': ['Resources/coffee/ng-router.coffee']
jasmine:
ng_router:
src: ['node_modules/underscore/underscore.js', 'Resources/test/src/*.js']
options:
specs: 'Resources/test/spec/*.js'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-notify'
grunt.registerTask 'default', ['test']
grunt.registerTask 'test', ['coffee', 'jasmine']
grunt.registerTask 'release', ['coffee:dist']