-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
2,957 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
#缩进风格:空格 | ||
indent_style = space | ||
#缩进大小 | ||
indent_size = 4 | ||
#换行符lf | ||
end_of_line = lf | ||
#字符集utf-8 | ||
charset = utf-8 | ||
#是否删除行尾的空格 | ||
trim_trailing_whitespace = true | ||
#是否在文件的最后插入一个空行 | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist/** | ||
node_modules/** | ||
dist/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
extends: [ | ||
require.resolve('@fmfe/genesis-lint') | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*.json | ||
*.js | ||
*.ts | ||
*.png | ||
*.eot | ||
*.ttf | ||
*.woff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
// 使用项目配置规则 | ||
"eslint.options": { | ||
"configFile": "./.eslintrc.js" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
"source.fixAll.stylelint": true | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ const start = () => { | |
*/ | ||
return build.start(); | ||
}; | ||
start(); | ||
start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ const start = async () => { | |
*/ | ||
startApp(renderer); | ||
}; | ||
start(); | ||
start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ app.use( | |
/** | ||
* 启动应用 | ||
*/ | ||
startApp(renderer); | ||
startApp(renderer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,55 @@ | ||
{ | ||
"name": "vue-demo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "ts-node genesis.dev -p=tsconfig.json", | ||
"build": "rm -rf dist && NODE_ENV=production ts-node genesis.build -p=tsconfig.json", | ||
"start": "NODE_ENV=production ts-node genesis.prod -p=tsconfig.json" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@fmfe/genesis-compiler": "^0.0.56", | ||
"@types/express": "^4.17.6", | ||
"@types/node": "^14.0.1", | ||
"ts-node": "^8.10.1" | ||
}, | ||
"dependencies": { | ||
"@fmfe/genesis-app": "^0.0.56", | ||
"@fmfe/genesis-core": "^0.0.56", | ||
"axios": "^0.19.2", | ||
"body-parser": "^1.19.0", | ||
"cookie-parser": "^1.4.5", | ||
"express": "^4.17.1", | ||
"vue-meta": "^2.3.3", | ||
"vue-property-decorator": "^8.4.2", | ||
"vue-router": "^3.1.6", | ||
"vuex": "^3.4.0" | ||
} | ||
"name": "vue-demo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "ts-node genesis.dev -p=tsconfig.json", | ||
"build": "rm -rf dist && NODE_ENV=production ts-node genesis.build -p=tsconfig.json", | ||
"start": "NODE_ENV=production ts-node genesis.prod -p=tsconfig.json", | ||
"lint": "npm run lint:js && npm run lint:css", | ||
"lint:js": "eslint . --ext .js,.ts,.vue --fix", | ||
"lint:css": "stylelint . --syntax less --fix --ignore-path ./.stylelintignore | stylelint . --custom-syntax postcss-html --fix" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@fmfe/genesis-compiler": "^0.0.56", | ||
"@fmfe/genesis-lint": "^0.0.56", | ||
"@types/express": "^4.17.6", | ||
"@types/node": "^14.0.1", | ||
"ts-node": "^8.10.1" | ||
}, | ||
"dependencies": { | ||
"@fmfe/genesis-app": "^0.0.56", | ||
"@fmfe/genesis-core": "^0.0.56", | ||
"axios": "^0.19.2", | ||
"body-parser": "^1.19.0", | ||
"cookie-parser": "^1.4.5", | ||
"express": "^4.17.1", | ||
"vue-meta": "^2.3.3", | ||
"vue-property-decorator": "^8.4.2", | ||
"vue-router": "^3.1.6", | ||
"vuex": "^3.4.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{ts,js}": [ | ||
"eslint --ext .js,.ts --fix", | ||
"git add" | ||
], | ||
"*.{css,less}": [ | ||
"stylelint --syntax less --fix", | ||
"git add" | ||
], | ||
"*.{vue}": [ | ||
"eslint --ext .js,.ts --fix", | ||
"stylelint --custom-syntax postcss-html --fix", | ||
"git add" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.