特来电wms前端

xyh 0d7d3d8cb1 feat: 领料单增加库存信息 %!s(int64=2) %!d(string=hai) anos
.vscode 79299fa56c feat: 单据增加新增功能 %!s(int64=2) %!d(string=hai) anos
cypress a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos
packages 0d7d3d8cb1 feat: 领料单增加库存信息 %!s(int64=2) %!d(string=hai) anos
.eslintignore b344352c78 2023.2.1 部门管理完成 %!s(int64=2) %!d(string=hai) anos
.eslintrc.cjs 125680e132 chore: 调整质检单列表 %!s(int64=2) %!d(string=hai) anos
.gitignore 3efcfd2e3c chore: 表单调整完成 %!s(int64=2) %!d(string=hai) anos
.prettierignore a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos
.prettierrc.json a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos
.stylelintignore b344352c78 2023.2.1 部门管理完成 %!s(int64=2) %!d(string=hai) anos
.stylelintrc.json a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos
LICENSE b344352c78 2023.2.1 部门管理完成 %!s(int64=2) %!d(string=hai) anos
README.md a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos
cypress.config.ts 8175b902b1 chore: modal 文字调整 %!s(int64=2) %!d(string=hai) anos
package.json 6acd18b5b3 chore: preiiter %!s(int64=2) %!d(string=hai) anos
pnpm-lock.yaml e3e5e706eb chore: 用户实现搜索框筛选 %!s(int64=2) %!d(string=hai) anos
pnpm-workspace.yaml b344352c78 2023.2.1 部门管理完成 %!s(int64=2) %!d(string=hai) anos
tsconfig.json a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos
tsconfig.paths.json a3ffb8858c format: prettier 格式化 %!s(int64=2) %!d(string=hai) anos

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.