zhoutao 6 年之前
父节点
当前提交
e068d70056
共有 7 个文件被更改,包括 17403 次插入5 次删除
  1. 19 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 6 0
      .eslintignore
  4. 25 0
      .eslintrc.js
  5. 2 5
      .gitignore
  6. 9 0
      .postcssrc.js
  7. 17333 0
      package-lock.json

+ 19 - 0
.babelrc

@@ -0,0 +1,19 @@
+{
+  "presets": [
+    ["env", {
+      "modules": false
+    }],
+    "stage-2"
+  ],
+  "plugins": ["transform-runtime", ["component", [
+    {
+      "libraryName": "element-ui"
+    }
+  ]]],
+  "env": {
+    "test": {
+      "presets": ["env", "stage-2"],
+      "plugins": ["transform-es2015-modules-commonjs", "dynamic-import-node"]
+    }
+  }
+}

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 6 - 0
.eslintignore

@@ -0,0 +1,6 @@
+/build/
+/config/
+/dist/
+/*.js
+/test/unit/coverage/
+/src/icons/iconfont.js

+ 25 - 0
.eslintrc.js

@@ -0,0 +1,25 @@
+// https://eslint.org/docs/user-guide/configuring
+
+module.exports = {
+  root: true,
+  parser: 'babel-eslint',
+  parserOptions: {
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+  },
+  // https://github.com/standard/standard/blob/master/docs/RULES-en.md
+  extends: 'standard',
+  // required to lint *.vue files
+  plugins: [
+    'html'
+  ],
+  // add your custom rules here
+  rules: {
+    // allow async-await
+    'generator-star-spacing': 'off',
+    // allow debugger during development
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
+  }
+}

+ 2 - 5
.gitignore

@@ -4,9 +4,8 @@ dist/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
-
-test/unit/coverage
-test/e2e/reports
+/test/unit/coverage/
+/test/e2e/reports/
 selenium-debug.log
 
 # Editor directories and files
@@ -16,5 +15,3 @@ selenium-debug.log
 *.ntvs*
 *.njsproj
 *.sln
-
-package-lock.json

+ 9 - 0
.postcssrc.js

@@ -0,0 +1,9 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+  "plugins": {
+    // to edit target browsers: use "browserslist" field in package.json
+    "postcss-import": {},
+    "autoprefixer": {}
+  }
+}

文件差异内容过多而无法显示
+ 17333 - 0
package-lock.json