-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntFile.js
More file actions
43 lines (32 loc) · 718 Bytes
/
Copy pathGruntFile.js
File metadata and controls
43 lines (32 loc) · 718 Bytes
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
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
// project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
config: {
sources: 'lib',
dist: 'dist'
},
jshint: {
src: [
['<%=config.sources %>']
],
options: {
jshintrc: true
}
},
bundle: {
d3sn: {
modName: 'D3SimpleNetwork',
name: 'd3-simple-networks',
src: '<%= config.sources %>/SimpleNetwork.js',
dest: '<%= config.dist %>'
}
}
});
grunt.loadTasks('tasks');
// tasks
grunt.registerTask('default', [ 'jshint', 'bundle' ]);
};