-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathExampleGruntfile.js
More file actions
31 lines (28 loc) · 828 Bytes
/
ExampleGruntfile.js
File metadata and controls
31 lines (28 loc) · 828 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
// Remove "Example" prefix and modify the personal content
module.exports = function (grunt) {
// Load task dependencies
grunt.loadNpmTasks('grunt-screeps');
grunt.loadNpmTasks('grunt-contrib-watch');
// Define tasks
grunt.initConfig({
// The "screeps" task that will upload codes
screeps: {
options: {
email: '<your e-mail>',
password: '<your password>',
branch: 'default',
ptr: false
},
dist: {
src: ['src/*.js']
}
},
// The "watch" task which will listen the modification
watch: {
files: "src/*.*",
tasks: ["screeps"]
}
});
// Set the default task
grunt.registerTask("default", ["watch"])
}