younthu / tools

tools.ilibrary.me的前端代码, 一个工具集。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ant Design Pro

This project is initialized with Ant Design Pro. Follow is the quick guide for how to use.

Environment Prepare

Install node_modules:

npm install

or

yarn

Provided Scripts

Ant Design Pro provides some useful script to help you quick start and build with web project, code style check and test.

Scripts provided in package.json. It's safe to modify or add additional script:

Start project

npm start

Build project

npm run build

Check code style

npm run lint

You can also use script to auto fix some lint error:

npm run lint:fix

Test code

npm test

More

You can view full document on our official website. And welcome any feedback in our github.

Commands

  1. npm run fetch:blocks, 没有什么变化,好像 pro v3 complete 已经运行这个了。

    1. https://umijs.org/docs/guides/getting-started
  2. https://github.com/vuejs/core/blob/main/.github/commit-convention.md, 代码 commit convention

    [<emoji>] [revert: ?]<type>[(scope)?]: <message>
    
         💥 feat(compiler): add 'comments' option
         🐛 fix(compiler): fix some bug
         📝 docs(compiler): add some docs
         🌷 UI(compiler): better styles
         🏰 chore(compiler): Made some changes to the scaffolding
         🌐 locale(compiler): Made a small contribution to internationalization
    
         Other commit types: refactor, perf, workflow, build, CI, typos, tests, types, wip, release, dep
    
         See https://github.com/vuejs/core/blob/main/.github/commit-convention.md
    
  3. a

Docker

  1. docker copy 自ant-design/ant-design-pro#10502 (comment)
  2. 执行下面的命令启动 docker
      docker build -t tools-ui:latest -f Dockerfile . || echo 'docker build error'
      docker run -d -p 80:80 xxx:${VERSION}
  3. 启动容器: docker run -p 8000:80 tools-ui

About

tools.ilibrary.me的前端代码, 一个工具集。


Languages

Language:TypeScript 90.6%Language:Less 7.9%Language:EJS 0.9%Language:JavaScript 0.5%Language:Dockerfile 0.1%Language:Shell 0.0%