-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_example.grunt.sh
45 lines (40 loc) · 1.32 KB
/
_example.grunt.sh
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
44
45
module.exports = function(grunt) {
/*
requirements:
npm -> https://www.npmjs.com/
In command window:
cd [YOUR_FOLDER_PATH] // ex: C:\screeps
npm init // create package.json
npm i -g grunt // install grunt
npm i grunt-screeps -s // install grunt-screeps + add dependency to package.json
npm i grunt-contrib-watch -s // install grunt-watch + add dependency to package.json
// Make a folder called dist
// Put all code in that file.. It can be in folders it will be flattened.
commands:
//In the same directory
grunt // push code to branch specified
grunt watch // watch for changes to directory specified.
*/
grunt.initConfig({
screeps: {
options: {
email: '[YOUR_EMAIL_HERE]',
password: '[YOUR_PASSWORD_HERE]',
branch: '[YOUR_BRANCH_HERE]',
ptr: false
},
dist: {
src: ['dist/**/*.js']
}
},
watch: {
js: {
files: ['dist/**/*.js'],
tasks: ['screeps']
}
}
});
grunt.loadNpmTasks('grunt-screeps');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['screeps']);
}