Frontend of NYU Shanghai Library WMS
Node.js>=v16.15.1Yarn>=3.3.1
yarn install- Install dependenciesyarn run start- Start development serveryarn run build- Build production bundleyarn run analyze-bundle- Build and analyze production bundleyarn run type-check- Run TypeScript type checkingyarn run lint- Run ESLint, stylelint, and Prettieryarn run lint:fix- Run ESLint, stylelint, and Prettier and fix errorsyarn run commit- Commit changes with commitizenyarn run release- Create a new release with standard-version
- Framework - React
- Page Routing - React Router
- State Management - @reduxjs/toolkit
- UI Library - Ant Design
Bundler:
- Bundler - webpack
- Code Transpiler - Babel (Babel for transpiling, tsc for types)
Linters:
CI:
- Local CI - Husky + lint-staged
- Commit Message Linter - commitlint
- Commit and Release Utilities - commitizen + standard-version
patches- Patches for dependenciessrc- Source code of the applicationassets- Images and fontscomponents- Componentsconstants- Constants of the applicationhooks- React hooksroutes- Pages of the applicationservices- API of the RTK queryslices- Redux storesstyles- Style filestemplates- HTML templates for the building systemtypes- Type definitionsutils- Utilities for the applicationapp.less- Global stylesapp.tsx- Application entry pointstore.ts- Global Redux storeexternals.d.ts- Global TypeScript declarations
utils- Utilities for the building system
- Containerize the application
- Replace session with token for authentication
- Review fallback values in the whole application for
undefined,nulland''