-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathGruntfile.coffee
39 lines (37 loc) · 1.12 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
watch:
scripts:
files: '**/*.coffee'
tasks: ['coffeelint', 'coffee', 'testacular']
coffee:
compile:
files:
'dist/angular-piwik.js': ['lib/angular-piwik.coffee']
'test/ang-piwik-tests.js': ['test/servicesSpec.coffee', 'test/directivesSpec.coffee']
coffeelint:
app: ['lib/*.coffee']
tests:
files:
src: ['test/*.coffee']
options:
no_trailing_whitespaces:
level: 'error'
testacular:
unit:
options:
configFile: 'testacular.conf.js'
browsers: if process.env.TRAVIS then ['Firefox', 'PhantomJS'] else ['PhantomJS']
autoWatch: yes
keepalive: yes
singleRun: yes
testacularRun:
unit:
options:
runnerPort: 9100
grunt.loadNpmTasks 'grunt-testacular'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.registerTask('default', ['coffeelint', 'coffee', 'testacular'])