You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zsmj
20c922d2be
|
3 years ago | |
---|---|---|
assets/images | 3 years ago | |
screenshots | 3 years ago | |
src | 3 years ago | |
template | 3 years ago | |
test | 3 years ago | |
typings | 3 years ago | |
webpack | 3 years ago | |
.editorconfig | 3 years ago | |
.eslintignore | 3 years ago | |
.eslintrc | 3 years ago | |
.gitignore | 3 years ago | |
.npmrc | 3 years ago | |
.prettierignore | 3 years ago | |
.prettierrc | 3 years ago | |
.stylelintignore | 3 years ago | |
.stylelintrc | 3 years ago | |
LICENSE | 6 years ago | |
README.md | 3 years ago | |
babel.config.js | 3 years ago | |
package.json | 3 years ago | |
tsconfig.json | 3 years ago |
README.md
README
准备工作
克隆仓库
git clone https://code.fineres.com/scm/fui/fineui-starter.git
安装依赖
# 账户:public
# 密码:fr123456
# 邮箱:任意
npm adduser --registry https://npm.fineres.com
npm install
安装扩展
以 VSCode 为例,为保证代码规范和格式统一,请安装ESLint
、stylelint
、Prettier
、EditorConfig
扩展,以使相关配置文件生效。
开发工作
项目基础配置
布局配置请见src/modules/app/layout/layout.constant.ts
。
样式配置请见src/less/
,譬如src/less/lib/constant
中的@color-app-primary
表示项目的主色。
项目调试、打包与测试
# 调试
npm run start
# 打包
npm run build
# 测试
npm run test
项目规范和格式检查
# 代码规范
npm run eslint
npm run eslint:fix
# 样式规范
npm run stylelint
npm run stylelint:fix
# 代码格式
npm run prettier