GithubHelp home page GithubHelp logo

react-antd's Introduction

项目

项目名称

基于 webpack5 和 TypeScript 建立的 react antd 后台项目

项目技术栈说明

webpack5 + TypeScript + React + React Hooks + React Query + Antd pro

代码规范最佳实践

eslint

通过配置.eslintrc.*制定团队代码规范,对于不规范代码提供提醒及自动化修复功能,能够帮助开发者及时更正不符合规范的代码

prettier

根据规范自动格式化代码,通常与 eslint 搭配使用

editorconfig

编辑器配置。用于覆盖编辑器默认配置,以确保不同编辑器之间,代码格式的统一

规范检查增强(husky + lint-staged)

在 git commit 之前,先强制进行 prettier 格式化,再检查代码规范,若检查不通过,阻止提交

commitlint 约束

使用 commitlint 约束项目 Git 代码提交描述信息格式规范

conventional-changelog 生成项目变更日志

文件目录结构

.
├── README.md
├── babel.config.js
├── build
│   ├── paths.js
│   ├── webpack.base.js
│   ├── webpack.dev.js
│   └── webpack.prod.js
├── commitlint.config.js
├── config
│   └── index.js
├── package.json
├── postcss.config.js
├── src
│   ├── @types
│   ├── App.less
│   ├── App.tsx
│   ├── assets
│   ├── components
│   ├── index.tsx
│   ├── models
│   ├── routes
│   ├── service
│   ├── utils
│   └── views
├── static
│   ├── favicon.svg
│   └── index.html
├── tsconfig.json

项目脚本

init project: npm run init

bootstrap project: npm run start

build project: npm run build

analyze project: npm run analyze

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.