forked from dgsmith2/angular-bootstrap-show-errors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
38 lines (35 loc) · 1.08 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
module.exports = (grunt) ->
grunt.initConfig
coffee:
options:
bare: false
compile:
files:
'src/showErrors.js': 'src/showErrors.coffee'
'test/showErrors.spec.js': 'test/showErrors.spec.coffee'
'test/helpers.js': 'test/helpers.coffee'
pkg: grunt.file.readJSON('package.json')
uglify:
options:
banner: '/*! <%= pkg.name %> (version <%= pkg.version %>) <%= grunt.template.today("yyyy-mm-dd") %> */\n'
build:
src: 'src/showErrors.js'
dest: 'src/showErrors.min.js'
watch:
files: [
'src/showErrors.coffee'
'test/showErrors.spec.coffee'
]
tasks: 'default'
karma:
files: ['src/showErrors.js', 'test/showErrors.spec.js']
tasks: ['karma:unit:run']
karma:
unit:
configFile: 'karma.conf.js'
singleRun: true
continuous:
configFile: 'karma.conf.js'
background: true
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)
grunt.registerTask 'default', ['coffee', 'uglify', 'karma:unit']