็ฎไฝไธญๆ | English
- preview (PC) react-enterprise-template
- preview๏ผmobile๏ผ react-template-mobile
-
mobile template: react-template-mobile
-
React template, a more rich template than CRA.
-
Development configuration documentation React18 + webpack5 + TypeScript4 + react-router-dom
-
Project Creation Tutorial <Building a React Project Development Template from 0 to 1>
- ๐ฆ Out of the box, no configuration required.
- ๐ Comprehensive comment explanations, low learning cost.
- ๐ Fast startup and compilation.
- ๐ฑ Highly customizable, easy to expand.
- React v19
- react-dom v19
- React Hook
- TypeScript v4
- webpack v5
- axios v1
- mobx v6
- mobx-react-lite v3
- react-router-dom v6
-
โ Styles โ config:ย ๐ง Add style file (css/less/sass/postCss) processing
-
โก Code specification โ config:ย ๐งย Add Prettier/ESlint/StyleLint/EditorConfig code specification
-
โข Routing โ config:ย ๐ง Add routing management react-router-dom v6
-
โฃ Network request โ feat:ย โจย Add network request Axios v1
-
โค Data sharing โ feature:ย โจย Add state management MobX v6
-
โฅ React Hook Rules โ feat: โจ Added check for React Hook rules
-
โฆ Encapsulated global SVG componen โ feat: โจ Encapsulated global SVG component
-
โง Mobile adaptation โ feat:ย โจย Add mobile adaptation solution: postcss px to viewport
-
โจ Explanation of the differences in the use of Mobx โ feat:ย โจย Add explanations and usage examples for makeObservable and makeAutoObservable
-
โฉ Mobx react lite optimization โ feat:ย โจย Add the use and optimization of observer and observer in mobx react lite
-
โช Add UI design materials โ docs:ย ๐ย Update development design reference documents
npm
>= 6.14.xnode
>= 16.30.x
npm
$ npm install
yarn
$ yarn
npm
$ npm run start
yarn
$ yarn dev
npm run build:qa // Testing environment
npm run build:prod // Production environment
Branch | description |
---|---|
main | Main branch |
deploy | demo deploy |
dev | Development branch |
git <type>: <subject>
git commit -m "feat: Project initialization"
fix ๐ Bug fix
feature โจ Introduce new features
docs ๐ Document writing changes
prune ๐ฅ Remove code or files
perf โก Performance-related optimizations
rocket ๐ Deployment function
style ๐ Style modification
init ๐ Initial submission
release ๐ Release version
wip ๐ง Work in progress, and unstable submissions may occur
config ๐ง Modify configuration file
refactot ๐จ Refactoring (code changes that neither add new features nor fix bugs)
merge ๐ Merge branches
โโโ .vscode
โ โโโsetting.json # Configuration for vscode that takes precedence over global settings.json
โโโ doc # Development documentation
โโโ webpack # Packaging and compilation
โ โโโconfig # Webpack configuration
โ โโโ webpack.common.js # Base configuration
โ โโโ webpack.dev.js # Development environment configuration
โ โโโwebpack.prod.js # Production environment configuration
โโโ pubilc
โ โโโfavicon.ico # HTML icon
โ โโโindex.html # HTML entry template
โโโ src
| โโโ api # Interface configuration
| โโโ assets # Static resources
โ โโโ components # Common components of the project
โ โโโ http # Unified encapsulation of requests
โ โโโ httpinterface # TypeScript type definition
โ โโโ constData # Constant list within the system
โ โโโ router # Unified routing entry
โ โโโ store # Data sharing
โ โโโ styles # Global style
โ โโโ utils # Utility library
โ โโโ view # Pages
โ โโโ App.tsx # Main interface
โ โโโindex.tsx # Entry file
โโโ .babelrc.js # Babel configuration
โโโ .editorconfig # Maintaining consistent coding style across editors
โโโ .env.json # Environment variable configuration
โโโ .eslintignore # Files ignored by ESLint
โโโ .eslintrc.js # ESLint configuration
โโโ .gitignore # Files ignored by git submission
โโโ .npmrc
โโโ .prettierignore # Files ignored by prettierc
โโโ .prettierrc # Prettierc configuration
โโโ .stylelintrc.js # Code style configuration
โโโ LICENSE # Open source license
โโโ package-lock.json # npm package lock management
โโโ package.json # Dependency management
โโโ README.md # Project description
โโโ tsconfig.json # TypeScript configuration file
โโโ yarn.lock # Yarn package lock management
- ๐ฌ If you have any questions, please open an issue or leave a message
- ๐งโโ๏ธ Welcome all contributors, come to Issus or submit Pull Requests to become a contributor
The code and documentation of this project are released under the MIT License open source license.