forked from mailcheck/mailcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
32 lines (27 loc) · 834 Bytes
/
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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json'),
jshint:
files: 'src/mailcheck.js'
options:
jshintrc: 'jshint.json'
uglify:
options:
banner: '/*! <%= pkg.name %> v<%= pkg.version %> @licence MIT */'
main:
files:
'src/mailcheck.min.js': 'src/mailcheck.js'
jasmine_node:
specNameMatcher: "spec"
requirejs: false
forceExit: true
jUnit:
report: false
savePath : "spec"
useDotNotation: true
consolidate: true
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-jasmine-node'
grunt.loadNpmTasks 'grunt-contrib-jshint'
grunt.registerTask 'default', ['jshint', 'jasmine_node', 'uglify']
grunt.registerTask 'test', ['jshint', 'jasmine_node']