-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntfile.js
More file actions
34 lines (30 loc) · 935 Bytes
/
Gruntfile.js
File metadata and controls
34 lines (30 loc) · 935 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
dist: {
src: ['src/effect.js', 'src/simple-explosion.js', 'src/explosion.js', 'src/ink-stain.js', 'src/burn.js', 'src/fireworks.js'],
dest: 'build/<%= pkg.name.toLowerCase() %>.js'
}
},
uglify: {
options: {
//wrap: "CreateJsEffectsLibrary",
//exportAll: true,
mangle: true
},
my_target: {
files: {
'build/<%= pkg.name.toLowerCase() %>.min.js': ['build/<%= pkg.name.toLowerCase() %>.js']
}
}
}
});
// Load the plugin that provides the "uglify" task.
//grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['concat', 'uglify']);
};