forked from kelp404/angular-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
68 lines (62 loc) · 1.96 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
64
65
66
67
68
module.exports = (grunt) ->
# -----------------------------------
# Options
# -----------------------------------
grunt.config.init
compass:
dev:
options:
sassDir: './example'
cssDir: './example'
outputStyle: 'compressed'
coffee:
source:
files:
'./dist/angular-validator.js': ['./src/*.coffee']
rules:
files:
'./dist/angular-validator-rules.js': ['./rules/*.coffee']
demo:
files:
'./example/demo.js': './example/demo.coffee'
watch:
compass:
files: ['./example/*.scss']
tasks: ['compass']
options:
spawn: no
coffee:
files: ['./src/*.coffee', './rules/*.coffee', './example/*.coffee']
tasks: ['coffee']
options:
spawn: no
connect:
server:
options:
protocol: 'http'
hostname: '*'
port: 8000
base: '.'
karma:
ng1_2:
configFile: './test/karma-ng1.2.config.coffee'
ng1_2_min:
configFile: './test/karma-ng1.2.min.config.coffee'
# -----------------------------------
# register task
# -----------------------------------
grunt.registerTask 'dev', [
'compass'
'coffee'
'connect'
'watch'
]
grunt.registerTask 'test', ['karma']
# -----------------------------------
# Plugins
# -----------------------------------
grunt.loadNpmTasks 'grunt-contrib-compass'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-karma'