-
Notifications
You must be signed in to change notification settings - Fork 1
/
gruntfile.js
43 lines (38 loc) · 895 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = function(grunt) {
// Project configuration.
const config = {
concat: {
build: {
src: [
// Dependencies
'node_modules/dannjs/build/dann.js',
'node_modules/p5/lib/p5.js',
// Dann-p5
'src/NetGraph/themes/*.js',
'src/NetGraph/*.js',
'src/error/*.js',
'src/NetGraph/methods/*.js',
],
dest: 'build/dannp5.js'
}
},
terser: {
minify: {
src: 'build/dannp5.js',
dest: 'build/dannp5.min.js'
}
},
}
// Load configuration
grunt.initConfig(config);
// Load the all plugins
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-terser');
// Load custom tasks
//grunt.loadTasks('tasks');
// Register build task
grunt.registerTask('build', [
'concat:build',
'terser:minify'
]);
};