Mantine Admin
1.0.0
只需單擊幾下即可部署自己的模板副本!
該模板具有許多文件夾,代碼示例和配置。隨意編輯或刪除它們,包括此讀數!
自定義和享受!
該項目具有所有最新工具和網絡開發中的良好實踐!
$ git clone https://github.com/ < YOUR-GITHUB-LOGIN > / < NAME-OF-YOUR-GENERATED-REPOSITORY > .git在開始開發超級應用程序之前,您需要安裝項目的依賴項。
將自己移至項目的根源:
$ cd < NAME-OF-YOUR-GENERATED-REPOSITORY >對於下一步,選擇您選擇的軟件包管理器,然後更改
package.json腳本中包含的命令。有關更多信息,請參見他們的文檔:
- PNPM(推薦)
- NPM
安裝項目的所有依賴性:
# PNPM
$ pnpm install
# NPM
$ npm install一旦安裝了所有依賴項,您就可以運行本地開發服務器:
# PNPM
$ pnpm dev
# NPM
$ npm run dev現在只需代碼!
應用更改後,您可以生成構建以測試和/或部署到生產環境中。
製作生產:
# PNPM
$ pnpm build
# NPM
$ npm run build然後運行構建:
# PNPM
$ pnpm start
# NPM
$ npm start # PNPM
$ pnpm run lint
# NPM
$ npm run lint # PNPM
$ pnpm run lint:fix
# NPM
$ npm run lint:fix # PNPM
$ pnpm run test # or pnpm run test:watch
# NPM
$ npm run test # or npm run test:watch # PNPM
$ pnpm run type-check
# NPM
$ npm run type-check # PNPM
$ pnpm run format
# NPM
$ npm run format # PNPM
$ pnpm run up
# NPM
$ npm run up # PNPM
$ pnpm run up-latest
# NPM
$ npm run up-latest # PNPM
$ pnpm run release-as-major
# NPM
$ npm run release-as-major # PNPM
$ pnpm run release-as-minor
# NPM
$ npm run release-as-minor # PNPM
$ pnpm run release-as-patch
# NPM
$ npm run release-as-patch # PNPM
$ pnpm run push-release
# NPM
$ npm run push-release # PNPM
$ pnpm run pull
# NPM
$ npm run pull將babel.config.js文件(位於路徑src/scripts中的Path SRC/腳本中)放在項目root和DELETE .babelrc文件中。
刪除pages/_app.tsx上的wdyr導入線。
就是這樣!現在,您可以Monitore React Recreders!
只需刪除babel.config.js和wdyr.ts文件,刪除wdyr import Line在pages/_app.tsx上,然後卸載IT:
# PNPM
$ pnpm uninstall @welldone-software/why-did-you-render
# NPM
$ npm uninstall @welldone-software/why-did-you-render請參閱下面的文件樹以了解項目結構。
標記為(
**)的文件夾和文件是可選的,因此您可以刪除。
mantine-admin/
┣ .github/ # GitHub's folder configs **
┣ .husky/ # Husky's folder
┃ ┣ ? commit-msg # Commitlint git hook
┃ ┗ ? pre-commit # Lint-staged git hook
┣ .vscode/ # VSCode's workspace **
┣ public/ # Public folder
┃ ┣ static/ # Static files folder **
┃ ┃ ┣ icons/ # Icons folder **
┃ ┃ ┣ images/ # Images folder **
┃ ┃ ┣ sounds/ # Sounds folder **
┃ ┃ ┗ videos/ # Videos folder **
┃ ┣ docs/ # Documentation folder **
┃ ┃ ┣ demo/ # Demonstrations project **
┃ ┃ ┗ translations/ # Translations folder **
┃ ┣ ? favicon.ico # Icon tab browser
┣ src/
┃ ┣ app/ # App pages
┃ ┣ components/ # App Components
┃ ┃ ┗ Motion/ # Mantine-UI components **
┃ ┣ hooks/ # React Hooks **
┃ ┃ ┗ ? useFetch.ts # SWR fetch hook (optional) **
┃ ┣ interfaces/ # TypeScript Interfaces
┃ ┣ scripts/ # Additional scripts **
┃ ┃ ┣ ? babel.config.js # Babel config with WDYR **
┃ ┃ ┗ ? wdyr.ts # WDYR file **
┃ ┣ services/ # Services
┃ ┃ ┗ users/
┃ ┃ ┣ ? index.ts # React Query Configuration
┃ ┃ ┗ ? keys.ts # React Query Key
┃ ┣ stores/ # Zustand stores
┃ ┣ styles/ # Styles folder
┃ ┃ ┣ ? bgImages.ts # SVG background images **
┃ ┃ ┗ ? theme.ts # Mantine-UI theme
┃ ┗ utils/ # Useful functions **
┣ ? .babelrc # Default Babel config
┣ ? .editorconfig # Editor config
┣ ? .eslintignore # ESLint ignore
┣ ? .eslintrc # ESLint config
┣ ? .gitignore # Git ignore
┣ ? .versionrc # Versioning config
┣ ? .commitlintrc # Commitlint config
┣ ? jest.config.js # Jest config
┣ ? jest.setup.js # Jest setup
┣ ? LICENSE # License of the project
┣ ? next-env.d.ts # Next.js types to TypeScript
┣ ? next.config.js # Next.js config
┣ ? .prettierrc # Prettier config
┣ ? README.md # Main README
┣ ? renovate.json # Renovate Bot config **
┣ ? tsconfig.json # TypeScript config儘管您不需要,但如果您為項目重複使用此模板,我將不勝感激,如果您願意我並提供了項目的github個人資料的鏈接,則在您的項目的頁腳中提供了鏈接。謝謝!
該項目是根據MIT許可證獲得許可的 - 有關詳細信息,請參見許可頁面。