-
Notifications
You must be signed in to change notification settings - Fork 67
/
gruntfile.js
25 lines (20 loc) · 825 Bytes
/
gruntfile.js
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
/*global module:false*/
var _ = require('lodash');
module.exports = function(grunt) {
'use strict';
var gruntConfig = { pkg : grunt.file.readJSON('package.json') };
grunt.file.recurse('grunt/config', function(config) {
_.merge(gruntConfig, grunt.file.readJSON(config));
});
// Project configuration.
grunt.initConfig(gruntConfig);
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-wrap');
grunt.loadTasks('grunt/tasks');
grunt.registerTask('default', ['clean', 'concat', 'wrap', 'jshint', 'uglify']);
grunt.registerTask('test', ['default', 'jasmine']);
};