Git Product home page Git Product logo

react-template's Introduction

技术选型

  • node 版本管理:nvm 0.39.1
  • node 版本:node 16.16.0
  • 包管理:yarn 1.22.19
  • 构建工具:
    • webpack 5(编译工具)
    • webpck-cli 5(命令行工具)
    • webpack-dev-server 4(热更新, webpack serve 启动)
    • webpack-merge(合并配置项)
    • HtmlWebpackPlugin(配置生成的html)
    • dotenv(获取env配置文件)
  • 框架:react 18 + react-dom 18
  • 路由:react-router-dom 6
  • 状态管理:zustand
  • 请求库:axios
  • 类型检查:
    • typescript
    • @types/react
    • @types/react-dom
    • @types/react-router-dom
    • fork-ts-checker-webpack-plugin(ts 错误输出在屏幕上)
  • 编译器
    • babel-loader(webpack)
    • @babel/core
    • core-js@3(preset-env:"useBuiltIns": "usage" 自动引入)
    • @babel/preset-env
    • @babel/preset-react
    • @babel/preset-typescript
  • 代码风格:具体见 webpack 配置和 eslintrc.js、eslintignore 文件
    • eslint
    • eslint-webpack-plugin
    • @typescript-eslint/eslint-plugin
    • @typescript-eslint/parser
  • CSS:
    • style-loader
    • css-loader 默认对 [name].module.[ext] 的文件开启 css modules
    • sass
    • sass-loader
    • classnames(解决css modules 中无法使用多个样式的问题)
    • postcss
    • postcss-loader(web pack)
    • postcss-preset-env(内置了 autoprefixer、postcss-nesting/postcss-nested、postcss-import 等相关功能)
  • 组件库:Antd
  • Git Hooks:husky
    • commit message 校验:@commitlint/cli、@commitlint/config-conventional
    • 代码格式化:lint-staged
  • 工具库:lodash-es、dayjs

react-template's People

Contributors

shizhihuaxu avatar

Stargazers

Alien avatar

Watchers

 avatar

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.