-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #740 from kduprey/feature/migrate-to-monorepo-with…
…-cms Feature/migrate to monorepo with cms
- Loading branch information
Showing
134 changed files
with
13,100 additions
and
4,972 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,139 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# testing | ||
/coverage | ||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# production | ||
/build | ||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
# nyc test coverage | ||
.nyc_output | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional stylelint cache | ||
.stylelintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# local env files | ||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# vuepress v2.x temp and cache directory | ||
.temp | ||
.cache | ||
|
||
# vercel | ||
.vercel | ||
# Docusaurus cache and generated files | ||
.docusaurus | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
.DS_Store | ||
|
||
# turbo | ||
.turbo | ||
|
||
# prisma client | ||
packages/db/prisma/client | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.cjs | ||
*.mjs | ||
*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
module.exports = { | ||
extends: ["@kduprey/eslint-config/next.js"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Vitaly Rtischev | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Mantine Next.js template | ||
|
||
This is a template for [Next.js](https://nextjs.org/) app router + [Mantine](https://mantine.dev/). | ||
If you want to use pages router instead, see [next-pages-template](https://github.com/mantinedev/next-pages-template). | ||
|
||
## Features | ||
|
||
This template comes with the following features: | ||
|
||
- [PostCSS](https://postcss.org/) with [mantine-postcss-preset](https://mantine.dev/styles/postcss-preset) | ||
- [TypeScript](https://www.typescriptlang.org/) | ||
- [Storybook](https://storybook.js.org/) | ||
- [Jest](https://jestjs.io/) setup with [React Testing Library](https://testing-library.com/docs/react-testing-library/intro) | ||
- ESLint setup with [eslint-config-mantine](https://github.com/mantinedev/eslint-config-mantine) | ||
|
||
## npm scripts | ||
|
||
### Build and dev scripts | ||
|
||
- `dev` – start dev server | ||
- `build` – bundle application for production | ||
- `analyze` – analyzes application bundle with [@next/bundle-analyzer](https://www.npmjs.com/package/@next/bundle-analyzer) | ||
|
||
### Testing scripts | ||
|
||
- `typecheck` – checks TypeScript types | ||
- `lint` – runs ESLint | ||
- `prettier:check` – checks files with Prettier | ||
- `jest` – runs jest tests | ||
- `jest:watch` – starts jest watch | ||
- `test` – runs `jest`, `prettier:check`, `lint` and `typecheck` scripts | ||
|
||
### Other scripts | ||
|
||
- `storybook` – starts storybook dev server | ||
- `storybook:build` – build production storybook bundle to `storybook-static` | ||
- `prettier:write` – formats all files with Prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"baseurl": "./src", | ||
"delete": true, | ||
"directory": ["./src/schemas", "./src/config"], | ||
"noHeader": true | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import bundleAnalyzer from "@next/bundle-analyzer"; | ||
|
||
const withBundleAnalyzer = bundleAnalyzer({ | ||
enabled: process.env.ANALYZE === "true", | ||
}); | ||
|
||
export default withBundleAnalyzer({ | ||
reactStrictMode: false, | ||
eslint: { | ||
ignoreDuringBuilds: true, | ||
}, | ||
experimental: { | ||
optimizePackageImports: ["@kduprey/config"], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "@kduprey/cms", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"analyze": "ANALYZE=true next build", | ||
"build": "next build", | ||
"dev": "next dev -p 3402", | ||
"generate-barrels": "barrelsby -c barrelsby.config.json", | ||
"lint": "next lint", | ||
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"", | ||
"prettier:write": "prettier --write \"**/*.{ts,tsx}\"", | ||
"publishContent": "sanity dataset export staging . --overwrite && sanity dataset import staging.tar.gz production --replace", | ||
"pullContent": "sanity dataset export production . --overwrite && sanity dataset import production.tar.gz staging --replace", | ||
"start": "next start", | ||
"test": "npm run prettier:check && npm run lint && npm run typecheck", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"prettier": "@kduprey/eslint-config/prettier", | ||
"dependencies": { | ||
"@kduprey/config": "workspace:*", | ||
"@kduprey/tsconfig": "workspace:*", | ||
"@sanity/icons": "^3.2.0", | ||
"@sanity/image-url": "^1.0.2", | ||
"@sanity/vision": "^3.48.1", | ||
"next": "14.2.4", | ||
"next-sanity": "^9.4.2", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"sanity-plugin-iframe-pane": "^3.1.6", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@kduprey/eslint-config": "workspace:*", | ||
"@next/bundle-analyzer": "^14.2.4", | ||
"@types/node": "^20.14.9", | ||
"@types/react": "18.3.3", | ||
"sanity": "^3.48.1", | ||
"styled-components": "^6.1.11", | ||
"typescript": "5.5.2" | ||
} | ||
} |
Oops, something went wrong.