瀏覽代碼

Merge pull request #6845 from gero3/codestyle2

Codestyle
Ricardo Cabello 10 年之前
父節點
當前提交
7dcec4c53b
共有 3 個文件被更改,包括 22 次插入1 次删除
  1. 4 1
      package.json
  2. 5 0
      utils/codestyle/codestyle.sh
  3. 13 0
      utils/codestyle/config.json

+ 4 - 1
package.json

@@ -26,5 +26,8 @@
   "bugs": {
     "url": "https://github.com/mrdoob/three.js/issues"
   },
-  "homepage": "http://threejs.org/"
+  "homepage": "http://threejs.org/",
+  "devDependencies": {
+    "jscs": "^1.13.1"
+  }
 }

+ 5 - 0
utils/codestyle/codestyle.sh

@@ -0,0 +1,5 @@
+
+jscs "../../src" --fix --preset=mdcs
+jscs "../../examples/js" --fix --preset=mdcs
+
+

+ 13 - 0
utils/codestyle/config.json

@@ -0,0 +1,13 @@
+{
+    "preset": "mdcs",
+    "excludeFiles": [ 
+        "build/**", 
+        "docs/**",
+        "editor/**",
+        "examples/**",
+        "node_modules/**",
+        "test/**",
+        "utils/**"
+        ]
+    
+}