-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.cjs
35 lines (33 loc) · 865 Bytes
/
Gruntfile.cjs
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
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
options: {
esversion: 6
}
},
rollup: {
options: {
format: 'umd',
name: 'animS'
},
files: {
dest: 'build/p5.anims.js',
src: 'src/main.js'
},
},
uglify: {
mytarget: {
files: {
'build/p5.anims.min.js': ['build/p5.anims.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-rollup');
grunt.registerTask('default', ['jshint', 'rollup', 'uglify']);
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('build', ['jshint', 'rollup', 'uglify']);
};