|
|
|
@ -3,6 +3,11 @@ module.exports = function(grunt) {
|
|
|
|
|
// Project configuration.
|
|
|
|
|
grunt.initConfig({
|
|
|
|
|
pkg : grunt.file.readJSON('package.json'),
|
|
|
|
|
karma: {
|
|
|
|
|
unit: {
|
|
|
|
|
configFile: 'karma.conf.js'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
uglify : {
|
|
|
|
|
options : {
|
|
|
|
|
banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
|
|
|
@ -61,7 +66,9 @@ module.exports = function(grunt) {
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-requirejs');
|
|
|
|
|
grunt.loadNpmTasks('grunt-karma');
|
|
|
|
|
// Default task(s).
|
|
|
|
|
grunt.registerTask('default', ['jshint', 'requirejs', 'uglify']);
|
|
|
|
|
grunt.registerTask('test', ['karma']);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|