快速搭建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.
 
 
 
richie dfda07fd92 Merge pull request 'KERNEL-9248 refactor: 重构' (#5) from Cauchy.Ke/fineui-start:feature into feature 3 years ago
assets/images KERNEL-9248 refactor: 重构 3 years ago
screenshots KERNEL-9248 refactor: 重构 3 years ago
src KERNEL-9248 refactor: 重构 3 years ago
template KERNEL-9248 refactor: 重构 3 years ago
test KERNEL-9248 refactor: 重构 3 years ago
typings KERNEL-9248 refactor: 重构 3 years ago
webpack KERNEL-9248 refactor: 重构 3 years ago
.editorconfig KERNEL-9248 refactor: 重构 3 years ago
.eslintignore KERNEL-9248 refactor: 重构 3 years ago
.eslintrc KERNEL-9248 refactor: 重构 3 years ago
.gitignore KERNEL-9248 refactor: 重构 3 years ago
.npmrc KERNEL-9248 refactor: 重构 3 years ago
.prettierignore KERNEL-9248 refactor: 重构 3 years ago
.prettierrc KERNEL-9248 refactor: 重构 3 years ago
.stylelintignore KERNEL-9248 refactor: 重构 3 years ago
.stylelintrc KERNEL-9248 refactor: 重构 3 years ago
LICENSE Initial commit 6 years ago
README.md KERNEL-9248 refactor: 重构 3 years ago
babel.config.js KERNEL-9248 refactor: 重构 3 years ago
package.json KERNEL-9248 refactor: 重构 3 years ago
tsconfig.json KERNEL-9248 refactor: 重构 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

效果预览

页面截图