-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathGruntfile.js
38 lines (34 loc) · 871 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
let matchdep = require('matchdep');
let mergeFiles = require('./grunt-scripts/mergeFiles');
module.exports = function (grunt) {
matchdep.filterAll(['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);
mergeFiles(grunt);
grunt.initConfig({
screeps: {
options: {
email: '*****************',
password: '*****************',
branch: 'default',
ptr: false,
},
dist: {
src: ['dist/*.js']
}
},
copy: {
main: {
expand: true,
flatten: true,
filter: 'isFile',
cwd: 'dist/',
src: '**',
dest: 'Update This Path'
},
},
});
grunt.registerTask('main', ['test', 'merge', 'write']);
grunt.registerTask('sandbox', ['merge', 'write-private']);
grunt.registerTask('merge', 'mergeFiles');
grunt.registerTask('write', 'screeps');
grunt.registerTask('write-private', 'copy');
};