Разверните свою собственную копию этого шаблона всего за несколько кликов!
Этот шаблон имеет кучу папок, примеров кода и конфигураций. Не стесняйтесь редактировать или удалять их, включая этот Readme!
Настройте и наслаждайтесь!
Этот проект включает в себя все последние инструменты и хорошие практики в веб -разработке!
$ git clone https://github.com/ < YOUR-GITHUB-LOGIN > / < NAME-OF-YOUR-GENERATED-REPOSITORY > .gitПрежде чем вы сможете начать разработку своего Super Application, вам необходимо установить зависимости проекта.
Перейти к корню проекта:
$ 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 ) в корне проекта и Delete .babelrc .
Неудовлетворенная линия импорта wdyr на pages/_app.tsx .
Вот и все! Теперь вы можете мониторировать React Re-Renders!
Просто удалите файлы babel.config.js и wdyr.ts , удалите строку импорта wdyr на pages/_app.tsx и удалите ее:
# 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 - для получения подробной информации см. Страницу лицензии.