From 61415a16b68ed35665d821fef0dac78eafb5c74f Mon Sep 17 00:00:00 2001 From: niunai Date: Sun, 15 Jan 2017 16:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=84=9A=E6=9C=ACupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 20 +++ .eslintignore | 3 + .eslintrc | 25 +++ .gitignore | 1 + .npmrc | 1 + packages/cell/README.md => CHANGELOG.md | 0 Makefile | 13 ++ README.md | 0 build/bin/build-entry.js | 9 -- build/bin/init.js | 48 ++++++ components.json | 5 +- package.json | 54 +++++-- packages/cell/cooking.conf.js | 19 --- packages/cell/index.js | 2 - packages/cell/package.json | 8 - packages/cell/src/cell.vue | 204 ------------------------ packages/sample | 1 + src/index.js | 40 +---- 18 files changed, 159 insertions(+), 294 deletions(-) create mode 100644 .editorconfig create mode 100644 .eslintignore create mode 100644 .eslintrc create mode 100644 .npmrc rename packages/cell/README.md => CHANGELOG.md (100%) create mode 100644 Makefile create mode 100644 README.md create mode 100644 build/bin/init.js delete mode 100644 packages/cell/cooking.conf.js delete mode 100644 packages/cell/index.js delete mode 100644 packages/cell/package.json delete mode 100644 packages/cell/src/cell.vue create mode 160000 packages/sample diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..00b0fbf18 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +root = true + +[*] +indent_style = space +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[*.js] +indent_size = 2 + +[*.vue] +indent_size = 2 + +[*.scss] +indent_size = 4 diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..8d1a11e8d --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +lib/ +dist/ +node_modules/ diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 000000000..87b26dd49 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,25 @@ +{ + "extends": "airbnb", + "parser": "babel-eslint", + "rules": { + "semi": 0, + "max-len": 0, + "react/prefer-stateless-function": 0, + "comma-dangle": 0, + "func-names": 0, + "prefer-const": 0, + "arrow-body-style": 0, + "react/sort-comp": 0, + "react/no-multi-comp": 0, + "react/prop-types": 0, + "react/prefer-es6-class": 0, + "react/jsx-closing-bracket-location": 0, + "react/jsx-no-bind": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "consistent-return": 0, + "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], + "no-use-before-define": ["error", { "functions": false }], + "no-underscore-dangle": 0 + } +} diff --git a/.gitignore b/.gitignore index 4db9f4538..5306c013b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .cache .DS_Store .idea +.vscode packages/**/lib lib/* !lib/index.js diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..36a163fb8 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=http://registry.npm.qima-inc.com diff --git a/packages/cell/README.md b/CHANGELOG.md similarity index 100% rename from packages/cell/README.md rename to CHANGELOG.md diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..c43fcdff2 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +usage = "\ +Usage: make