快速搭建fineui开发环境。
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.
 
 
 
 
dailer 91f320b58e Merge pull request 'master' (#7) from dailer/fineui-start:master into master 3 years ago
assets/images update 3 years ago
screenshots update 3 years ago
src update 3 years ago
template update 3 years ago
test update 3 years ago
typings update 3 years ago
webpack update 3 years ago
.editorconfig update 3 years ago
.eslintignore update 3 years ago
.eslintrc update 3 years ago
.gitignore update 3 years ago
.npmrc update 3 years ago
.prettierignore update 3 years ago
.prettierrc update 3 years ago
.stylelintignore update 3 years ago
.stylelintrc update 3 years ago
LICENSE Initial commit 6 years ago
README.md update 3 years ago
babel.config.js update 3 years ago
package.json update 3 years ago
tsconfig.json update 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 为例,为保证代码规范和格式统一,请安装ESLintstylelintPrettierEditorConfig扩展,以使相关配置文件生效。

开发工作

项目基础配置

布局配置请见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

效果预览

页面截图