Added initial Gruntfile.js
Added a gruntfile to compile into dist/ and uses a credentials file (.credentials.json)main
parent
932e738d70
commit
b31b4b9a67
@ -0,0 +1,24 @@
|
||||
module.exports = function(grunt) {
|
||||
var config = require('./.credentials.json');
|
||||
var branch = grunt.option('branch') || config.branch;
|
||||
var email = grunt.option('email') || config.email;
|
||||
var token = grunt.option('token') || config.token;
|
||||
var ptr = grunt.option('ptr') ? true : config.ptr;
|
||||
|
||||
|
||||
grunt.loadNpmTasks('grunt-screeps');
|
||||
|
||||
grunt.initConfig({
|
||||
screeps: {
|
||||
options: {
|
||||
email: email,
|
||||
token: token,
|
||||
branch: branch,
|
||||
ptr: ptr
|
||||
},
|
||||
dist: {
|
||||
src: ['dist/*.js']
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue