Sorry, the diff of this file is not supported yet
| { | ||
| "printWidth": 160, | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "semi": true, | ||
| "singleQuote": true, | ||
| "parser": "babylon", | ||
| "trailingComma": "none", | ||
| "bracketSpacing": true, | ||
| "jsxBracketSameLine": false, | ||
| "arrowParens": "avoid", | ||
| "requirePragma": false, | ||
| "proseWrap": "preserve", | ||
| "overrides": [ | ||
| { | ||
| "files": ["*.json", ".eslintrc", ".tslintrc", ".prettierrc", ".tern-project", ".travis.yml"], | ||
| "options": { | ||
| "parser": "json", | ||
| "tabWidth": 2 | ||
| } | ||
| }, | ||
| { | ||
| "files": "*.{css,sass,scss,less}", | ||
| "options": { | ||
| "parser": "postcss", | ||
| "tabWidth": 2 | ||
| } | ||
| }, | ||
| { | ||
| "files": "*.ts", | ||
| "options": { | ||
| "parser": "typescript" | ||
| } | ||
| } | ||
| ] | ||
| } |
Sorry, the diff of this file is not supported yet
| { | ||
| "printWidth": 160, | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "semi": true, | ||
| "singleQuote": true, | ||
| "parser": "babylon", | ||
| "trailingComma": "none", | ||
| "bracketSpacing": true, | ||
| "jsxBracketSameLine": false, | ||
| "arrowParens": "avoid", | ||
| "requirePragma": false, | ||
| "proseWrap": "preserve", | ||
| "overrides": [ | ||
| { | ||
| "files": ["*.json", ".eslintrc", ".tslintrc", ".prettierrc", ".tern-project", ".travis.yml"], | ||
| "options": { | ||
| "parser": "json", | ||
| "tabWidth": 2 | ||
| } | ||
| }, | ||
| { | ||
| "files": "*.{css,sass,scss,less}", | ||
| "options": { | ||
| "parser": "postcss", | ||
| "tabWidth": 2 | ||
| } | ||
| }, | ||
| { | ||
| "files": "*.ts", | ||
| "options": { | ||
| "parser": "typescript" | ||
| } | ||
| } | ||
| ] | ||
| } |
+5
-0
@@ -0,3 +1,8 @@ | ||
| # change log | ||
| -2018-3-3 | ||
| add prettier | ||
| - 2017-11-2 | ||
@@ -4,0 +9,0 @@ |
+9
-4
@@ -12,3 +12,4 @@ "use strict"; | ||
| author: "ilex.h", | ||
| scripts: scriptList | ||
| scripts: scriptList, | ||
| "lint-staged": commit | ||
| }; | ||
@@ -102,4 +103,4 @@ fs.writeFileSync(path.join(o, "package.json"), JSON.stringify(r, null, 2)), tools.copyFileSync(path.join(__dirname, "..", "/tpl"), o), process.chdir(o), createDefaultDir(n), run(o, n, e.verbose) | ||
| "amos-build": "^1.x.x", | ||
| react: "~15.3.2", | ||
| "react-dom": "~15.3.2" | ||
| react: "~16.0.0", | ||
| "react-dom": "~16.0.0" | ||
| }, | ||
@@ -122,4 +123,8 @@ scriptList = { | ||
| "pub:dev": "npm run compile:dev && amos-run dllreleased", | ||
| pub: "npm run compile:pro && amos-run dllreleased" | ||
| pub: "npm run compile:pro && amos-run dllreleased", | ||
| precommit: "lint-staged" | ||
| }, | ||
| commit = { | ||
| "*.{js,json,css}": ["prettier --write", "git add"] | ||
| }; | ||
| module.exports = createAmosInitApp; |
+2
-4
| { | ||
| "name": "amos-init", | ||
| "version": "1.0.24", | ||
| "version": "2.0.0", | ||
| "description": "the FED init for amos team", | ||
@@ -21,5 +21,3 @@ "author": "ilex.h", | ||
| }, | ||
| "pre-commit": [ | ||
| "lint" | ||
| ], | ||
| "pre-commit": ["lint"], | ||
| "dependencies": { | ||
@@ -26,0 +24,0 @@ "chalk": "^1.1.3", |
+4
-0
@@ -375,4 +375,8 @@ # amos-init | ||
| # change log | ||
| [changes](changelog.md) | ||
| # License | ||
| MIT |
131397
1.28%53
8.16%1040
0.48%382
1.06%