-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
53 lines (45 loc) · 1.44 KB
/
Gruntfile.js
File metadata and controls
53 lines (45 loc) · 1.44 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* hippo Gruntfile
*
* Author(s): Jonathan "Yoni" Knoll
* Version: 0.20.3
* Date: 2017-04-13
*
*/
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('./package.json');
// Project configuration
grunt.initConfig({
pkg: pkg,
requirejs: {
compile: {
options: {
baseUrl: './',
name: 'hippo',
findNestedDependencies: true,
paths: {
// these come from bower
'emitter': 'bower_components/emitter/index',
'json2': 'bower_components/json2',
'lodash': 'bower_components/lodash/dist/lodash.min',
'lodash-inflection': 'bower_components/lodash-inflection/lib/lodash-inflection',
'lz-string': 'bower_components/lz-string/libs/lz-string.min',
'text': 'bower_components/requirejs-text/text' // this is needed because we *always* bring in templates or JSON
},
shim: {
'lodash-inflection': { deps: [ 'lodash' ] }
},
out: 'hippo.min.js'
}
}
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.config('collect', ['find-tables'].concat(grunt.config('collect')));
grunt.registerTask('build', function() {
grunt.task.run('requirejs');
grunt.file.write('VERSION', pkg.version);
});
console.log('\n');
};