特来电wms前端

xyh 4698a777a9 chore: 修改菜单图标 il y a 2 ans
cypress a2573e01c8 feat: 产成品出入库流水e2e il y a 2 ans
packages 4698a777a9 chore: 修改菜单图标 il y a 2 ans
.eslintignore b344352c78 2023.2.1 部门管理完成 il y a 2 ans
.eslintrc.cjs 45555a6a43 格式化 il y a 2 ans
.gitignore 35ab2dbf74 fix: 容器管理部门管理使用公共字典 il y a 2 ans
.stylelintignore b344352c78 2023.2.1 部门管理完成 il y a 2 ans
.stylelintrc.json b344352c78 2023.2.1 部门管理完成 il y a 2 ans
LICENSE b344352c78 2023.2.1 部门管理完成 il y a 2 ans
README.md b344352c78 2023.2.1 部门管理完成 il y a 2 ans
cypress.config.ts 4cc58427e3 添加e2e测试 il y a 2 ans
package.json 8e46d8c283 chore: 抽取搜索状态管理 格式化搜索条件 il y a 2 ans
pnpm-lock.yaml 4f90670af3 feat: 出库流水列表 il y a 2 ans
pnpm-workspace.yaml b344352c78 2023.2.1 部门管理完成 il y a 2 ans
tsconfig.json 4cc58427e3 添加e2e测试 il y a 2 ans
tsconfig.paths.json b344352c78 2023.2.1 部门管理完成 il y a 2 ans

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.