Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 834 Bytes
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']