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许可证获得许可的 - 有关详细信息,请参见许可页面。