特来电wms前端

xyh e39e9872ba refactor: 移除antd的tab自写tab 为了确保iframe不会rebuild tab拖拽可autoscroll 2 yıl önce
.husky 61a14ceae1 feat: add husky 2 yıl önce
cypress e39e9872ba refactor: 移除antd的tab自写tab 为了确保iframe不会rebuild tab拖拽可autoscroll 2 yıl önce
packages e39e9872ba refactor: 移除antd的tab自写tab 为了确保iframe不会rebuild tab拖拽可autoscroll 2 yıl önce
.eslintignore 10784ad1c5 refactor: 移除无用弹窗 2 yıl önce
.eslintrc.cjs 125680e132 chore: 调整质检单列表 2 yıl önce
.gitignore 10784ad1c5 refactor: 移除无用弹窗 2 yıl önce
.prettierignore a3ffb8858c format: prettier 格式化 2 yıl önce
.prettierrc.json a3ffb8858c format: prettier 格式化 2 yıl önce
.stylelintignore 61a14ceae1 feat: add husky 2 yıl önce
.stylelintrc.json 051cae0e82 feat: 入库大屏 2 yıl önce
LICENSE b344352c78 2023.2.1 部门管理完成 2 yıl önce
README.md a3ffb8858c format: prettier 格式化 2 yıl önce
commitlint.config.cjs a1f6f817a3 chore: 增加merge 类型 2 yıl önce
cypress.config.ts 66da483d3a test: 增加重置后查询所有字段是否为空的检测 2 yıl önce
package.json a1f6f817a3 chore: 增加merge 类型 2 yıl önce
pnpm-lock.yaml f6556b6f04 feat: 拖拽排序完成 2 yıl önce
pnpm-workspace.yaml b344352c78 2023.2.1 部门管理完成 2 yıl önce
tsconfig.json 61a14ceae1 feat: add husky 2 yıl önce
tsconfig.paths.json a3ffb8858c format: prettier 格式化 2 yıl önce

README.md

React-Webpack-Template

An out of the box react webpack template,It is simpler, more convenient to customize and more modular on the basis of create-react-app.


Warning

Do not modify files under webpack unless you are sure of the modified results


Babel

The project use SWC by default. If you want to use babel, please download babel-loader @babel/core @babel/plugin-transform-runtime @babel/preset-env @babel/preset-react @babel/preset-typescript babel-plugin-react-remove-properties thread-loader and set SWT_ENABLE_SWC=false in .env


Usage

  • Clone this repo, like pnpm dlx degit xyhxx/react-webpack-template#monorepo. In addition, you can click "Use this template" to copy this template to your repositories

  • Install all dependencies pnpm install

  • Build under development mode pnpm dev

  • Build under production mode pnpm build

  • Unit test or integration test pnpm test

  • Other scripts can be viewed in package.json


Config

Please do not modify the content in the webpack package. If you want to modify some content, such as sourcemap orthread-loader, you can adjust it in packages/app/.env


ENV

If you want to add content in process.env, you can add it in packages/app/.env. Don't forget to add type to packages/app/src/global.d.ts

We also support adding in the specified environment.

  • development use .env.dev.
  • production use .env.pro.
  • test use .env.test.


Preset

The project directory and basic template information have been created in this package.