-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
36 lines (29 loc) · 879 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
module.exports = function ( grunt ) {
grunt.loadNpmTasks ( 'grunt-run' );
grunt.loadNpmTasks ( 'grunt-contrib-concat' );
//Note: uglification can be added later as a separate 'build' command.
// The build command would remove tests before minifying code.
//grunt.loadNpmTasks ( 'grunt-contrib-uglify' );
grunt.initConfig ({
run:
{
options:
{
},
npm_test_jest:
{
cmd : 'npm',
args : [ 'test', '--silent' ]
}
},
concat :
{
game_logic :
{
src : ['game_logic/**/*.js', '!game_logic/**/*.test.js'],
dest: 'game_logic.min.js'
}
}
});
grunt.registerTask( 'default', ['run:npm_test_jest','concat']);
};