|
2 年之前 | |
---|---|---|
.husky | 2 年之前 | |
public | 2 年之前 | |
src | 2 年之前 | |
.browserslistrc | 2 年之前 | |
.eslintignore | 2 年之前 | |
.eslintrc.js | 2 年之前 | |
.gitignore | 2 年之前 | |
.npmrc | 2 年之前 | |
.prettierignore | 2 年之前 | |
.prettierrc | 2 年之前 | |
README.md | 2 年之前 | |
auto-imports.d.ts | 2 年之前 | |
babel.config.js | 2 年之前 | |
commitlint.config.js | 2 年之前 | |
components.d.ts | 2 年之前 | |
config.js | 2 年之前 | |
jest.config.js | 2 年之前 | |
lint-staged.config.js | 2 年之前 | |
package.json | 2 年之前 | |
tsconfig.json | 2 年之前 | |
vue.config.js | 2 年之前 | |
yarn.lock | 2 年之前 |
yarn
yarn serve
通过 process.env.SCENE
区分场景
尽量使用 .tsx
后缀,因为 .vue
为自定义后缀,webpack 暂不能友好支持 .vue
后缀,需要明确使用 demo.vue
,导致无法区分场景
release
稳定版本,线上代码稳定一段时间后同步 release-buffer
release-buffer
缓冲区,发布一些工具类,创建分支的话拉取此分支
在 ide 扩展中下载 prettier
以 vscode 为例:
在
file -> preferences -> setting
中搜索defaultFormatter
选择Prettier - Code formatter
接着搜索format
将editor: format on save
勾选