forked from brainrake/legato
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
64 lines (53 loc) · 1.34 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
63
'use strict'
module.exports = (grunt) ->
coffeelint = require './coffeelint.json'
# configurable paths
yeomanConfig =
app: 'lib'
dist: 'dist'
test: 'spec'
grunt.initConfig
yeoman: yeomanConfig
jasmine_node:
specNameMatcher: "spec"
projectRoot: "."
requirejs: false
forceExit: true
useCoffee: true
extensions: 'coffee'
jUnit:
report: false
savePath: "./build/reports/jasmine/"
useDotNotation: true
consolidate: true
coffeelint:
options: coffeelint
gruntfile:
files:
src: ['Gruntfile.coffee']
lib:
files:
src: ['<%= yeoman.app %>/{,*/}*.coffee']
test:
files:
src: ['<%= yeoman.test %>/{,*/}*.coffee']
watch:
lib:
files: ['<%= yeoman.app %>/{,*/}*.coffee']
tasks: [
'coffeelint:lib'
]
'unit-watch':
files: [
'<%= yeoman.app %>/{,*/}*.coffee'
'<%= yeoman.test %>/{,*/}*.coffee'
]
tasks: [
'coffeelint:test'
'coffeelint:lib'
'jasmine_node'
]
require('load-grunt-tasks')(grunt)
grunt.registerTask('unit-watch', ['watch:unit-watch'])
grunt.registerTask('test', ['jasmine_node'])
grunt.registerTask('default', ['coffeelint', 'jasmine_node'])