From b31b4b9a677bd85298116f55fdc624daec847108 Mon Sep 17 00:00:00 2001 From: Peery Date: Thu, 22 Sep 2022 22:17:05 +0200 Subject: [PATCH] Added initial Gruntfile.js Added a gruntfile to compile into dist/ and uses a credentials file (.credentials.json) --- Gruntfile.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Gruntfile.js diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..9134189 --- /dev/null +++ b/Gruntfile.js @@ -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'] + } + } + }); +}