浏览代码

Add gruntfile

Lily Carpenter 8 年之前
父节点
当前提交
b2b442bbe0
共有 2 个文件被更改,包括 22 次插入1 次删除
  1. 3 1
      .gitignore
  2. 19 0
      Gruntfile.js

+ 3 - 1
.gitignore

@@ -1,4 +1,3 @@
1
-
2 1
 # Created by https://www.gitignore.io/api/emacs,linux,node,grunt
3 2
 
4 3
 ### Emacs ###
@@ -108,3 +107,6 @@ dist/
108 107
 
109 108
 # Grunt usually preprocesses files such as coffeescript, compass... inside the .tmp directory
110 109
 .tmp/
110
+
111
+# Screeps
112
+creds.json

+ 19 - 0
Gruntfile.js

@@ -0,0 +1,19 @@
1
+module.exports = function(grunt) {
2
+
3
+  var creds = grunt.file.readJSON("creds.json");
4
+  grunt.loadNpmTasks('grunt-screeps');
5
+
6
+  grunt.initConfig({
7
+    screeps: {
8
+      options: {
9
+        email: creds.email,
10
+        password: creds.password,
11
+        branch: 'default',
12
+        ptr: false
13
+      },
14
+      dist: {
15
+        src: ['dist/*.js']
16
+      }
17
+    }
18
+  });
19
+};