-
Notifications
You must be signed in to change notification settings - Fork 657
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
1 parent
1ae7550
commit 5dbcf23
Showing
26 changed files
with
7,873 additions
and
14 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,8 @@ | ||
# 环境 | ||
NODE_ENV = development | ||
|
||
# 接口前缀 | ||
VITE_API_BASEPATH = base | ||
|
||
# 打包路径 | ||
VITE_BASE_PATH = / |
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,20 @@ | ||
# 环境 | ||
NODE_ENV = production | ||
|
||
# 接口前缀 | ||
VITE_API_BASEPATH = dev | ||
|
||
# 打包路径 | ||
VITE_BASE_PATH = /dist-dev/ | ||
|
||
# 是否删除debugger | ||
VITE_DROP_DEBUGGER = false | ||
|
||
# 是否删除console.log | ||
VITE_DROP_CONSOLE = false | ||
|
||
# 是否sourcemap | ||
VITE_SOURCEMAP = true | ||
|
||
# 输出路径 | ||
VITE_OUT_DIR = dist-dev |
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,20 @@ | ||
# 环境 | ||
NODE_ENV = production | ||
|
||
# 接口前缀 | ||
VITE_API_BASEPATH = pro | ||
|
||
# 打包路径 | ||
VITE_BASE_PATH = /dist-pro/ | ||
|
||
# 是否删除debugger | ||
VITE_DROP_DEBUGGER = true | ||
|
||
# 是否删除console.log | ||
VITE_DROP_CONSOLE = true | ||
|
||
# 是否sourcemap | ||
VITE_SOURCEMAP = false | ||
|
||
# 输出路径 | ||
VITE_OUT_DIR = dist-pro |
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,20 @@ | ||
# 环境 | ||
NODE_ENV = production | ||
|
||
# 接口前缀 | ||
VITE_API_BASEPATH = test | ||
|
||
# 打包路径 | ||
VITE_BASE_PATH = /dist-test/ | ||
|
||
# 是否删除debugger | ||
VITE_DROP_DEBUGGER = false | ||
|
||
# 是否删除console.log | ||
VITE_DROP_CONSOLE = false | ||
|
||
# 是否sourcemap | ||
VITE_SOURCEMAP = true | ||
|
||
# 输出路径 | ||
VITE_OUT_DIR = dist-test |
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 @@ | ||
/build/ | ||
/config/ | ||
/dist/ | ||
/*.js | ||
/*.d.ts | ||
/test/unit/coverage/ | ||
/node_modules/* | ||
/src/types/env.d.ts | ||
/dist* | ||
/src/main.ts |
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 @@ | ||
module.exports = { | ||
extends: ['@antfu'], | ||
rules: { | ||
'comma-dangle': [2, 'never'], | ||
curly: [2, 'multi-line'] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ node_modules | |
dist | ||
dist-ssr | ||
*.local | ||
/components.d.ts | ||
/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,8 @@ | ||
/node_modules/** | ||
/dist/ | ||
/dist* | ||
/public/* | ||
/docs/* | ||
/vite.config.ts | ||
/src/types/env.d.ts | ||
/docs/**/* |
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,19 @@ | ||
module.exports = { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: false, | ||
vueIndentScriptAndStyle: false, | ||
singleQuote: true, | ||
quoteProps: 'as-needed', | ||
bracketSpacing: true, | ||
trailingComma: 'none', | ||
jsxSingleQuote: false, | ||
arrowParens: 'always', | ||
insertPragma: false, | ||
requirePragma: false, | ||
proseWrap: 'never', | ||
htmlWhitespaceSensitivity: 'strict', | ||
endOfLine: 'auto', | ||
rangeStart: 0 | ||
} |
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,6 @@ | ||
/dist/* | ||
/public/* | ||
public/* | ||
/dist* | ||
/src/types/env.d.ts | ||
/docs/**/* |
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,12 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Windi", | ||
"Windicss" | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"volar.tsPlugin": true, | ||
"prettier.enable": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Archer | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,30 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'init', // 初始化 | ||
'feat', // 新功能(feature) | ||
'fix', // 修补bug | ||
'docs', // 文档(documentation) | ||
'style', // 格式、样式(不影响代码运行的变动) | ||
'refactor', // 重构(即不是新增功能,也不是修改BUG的代码) | ||
'perf', // 优化相关,比如提升性能、体验 | ||
'test', // 添加测试 | ||
'build', // 编译相关的修改,对项目构建或者依赖的改动 | ||
'ci', // 持续集成修改 | ||
'chore', // 构建过程或辅助工具的变动 | ||
'revert', // 回滚到上一个版本 | ||
'workflow', // 工作流改进 | ||
'mod', // 不确定分类的修改 | ||
'wip', // 开发中 | ||
'types', // 类型修改 | ||
'release' // 版本发布 | ||
] | ||
], | ||
'subject-full-stop': [0, 'never'], | ||
'subject-case': [0, 'never'] | ||
} | ||
} |
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 @@ | ||
vscode 安装 WindiCSS IntelliSense |
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.