浏览代码

update build setup

Evan You 9 年之前
父节点
当前提交
32718c9ee3
共有 3 个文件被更改,包括 7 次插入3 次删除
  1. 1 1
      .eslintrc
  2. 3 0
      circle.yml
  3. 3 2
      package.json

+ 1 - 1
.eslintrc

@@ -101,7 +101,7 @@
     "no-native-reassign": 2,
     "no-native-reassign": 2,
     "no-negated-in-lhs": 2,
     "no-negated-in-lhs": 2,
     "no-nested-ternary": 0,
     "no-nested-ternary": 0,
-    "no-new": 2,
+    "no-new": 0,
     "no-new-func": 0,
     "no-new-func": 0,
     "no-new-object": 2,
     "no-new-object": 2,
     "no-new-require": 2,
     "no-new-require": 2,

+ 3 - 0
circle.yml

@@ -0,0 +1,3 @@
+machine:
+  node:
+    version: 4

+ 3 - 2
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "vuex",
   "name": "vuex",
-  "version": "1.0.0",
+  "version": "0.1.0",
   "description": "state management for Vue.js",
   "description": "state management for Vue.js",
   "main": "lib/index.js",
   "main": "lib/index.js",
   "files": [
   "files": [
@@ -13,7 +13,7 @@
     "todomvc": "cd examples/todomvc && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "todomvc": "cd examples/todomvc && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "cart": "cd examples/shopping-cart && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "cart": "cd examples/shopping-cart && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "prepublish": "babel src --out-dir lib --presets es2015 --plugins add-module-exports",
     "prepublish": "babel src --out-dir lib --presets es2015 --plugins add-module-exports",
-    "test": "mocha --compilers js:babel-core/register"
+    "test": "eslint src && mocha --compilers js:babel-core/register"
   },
   },
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",
@@ -36,6 +36,7 @@
     "babel-runtime": "^6.2.0",
     "babel-runtime": "^6.2.0",
     "chai": "^3.4.1",
     "chai": "^3.4.1",
     "css-loader": "^0.21.0",
     "css-loader": "^0.21.0",
+    "eslint": "^1.10.2",
     "mocha": "^2.3.4",
     "mocha": "^2.3.4",
     "style-loader": "^0.13.0",
     "style-loader": "^0.13.0",
     "todomvc-app-css": "^2.0.3",
     "todomvc-app-css": "^2.0.3",