Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production Release #537

Merged
merged 51 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
f0ede04
user set on emails
borisno2 Sep 27, 2024
c39b1d1
Update Patch Dependencies
renovate[bot] Sep 27, 2024
ab47e61
Merge pull request #514 from borisno2/renovate/all-minor-patch
borisno2 Sep 27, 2024
c64b86e
Update dependency @neondatabase/serverless to ^0.10.1
renovate[bot] Oct 7, 2024
61b4997
Update dependency @vercel/blob to ^0.25.1
renovate[bot] Oct 14, 2024
3e503bb
Update dependency lucide-react to ^0.453.0
renovate[bot] Oct 15, 2024
bb5296d
Update pnpm to v9.12.2
renovate[bot] Oct 16, 2024
8d9fcad
Update dependency cspell to ^8.15.4
renovate[bot] Oct 18, 2024
532ce7e
Update dependency @eslint/compat to ^1.2.1
renovate[bot] Oct 18, 2024
3cbf689
Merge pull request #524 from borisno2/renovate/cspell-monorepo
borisno2 Oct 19, 2024
e74cd14
Merge pull request #519 from borisno2/renovate/pnpm-9.x
borisno2 Oct 19, 2024
a8b2a4a
Merge pull request #523 from borisno2/renovate/vercel-blob-0.x
borisno2 Oct 19, 2024
bed6235
Merge pull request #522 from borisno2/renovate/neondatabase-serverles…
borisno2 Oct 19, 2024
c4b9981
Update dependency @typescript-eslint/eslint-plugin to ^8.10.0
renovate[bot] Oct 19, 2024
4156403
Update dependency file-type to ^19.6.0
renovate[bot] Oct 19, 2024
30936ee
Update dependency turbo to ^2.2.1
renovate[bot] Oct 19, 2024
688df86
Update prisma monorepo to ^5.21.1
renovate[bot] Oct 20, 2024
cf92a32
Merge pull request #527 from borisno2/renovate/prisma-monorepo
borisno2 Oct 20, 2024
278ca49
Merge pull request #526 from borisno2/renovate/turbo-monorepo
borisno2 Oct 20, 2024
774c2c3
Merge pull request #516 from borisno2/renovate/typescript-eslint-mono…
borisno2 Oct 20, 2024
50b39e5
Merge pull request #525 from borisno2/renovate/file-type-19.x
borisno2 Oct 20, 2024
054a40e
Merge pull request #520 from borisno2/renovate/eslint-compat-1.x
borisno2 Oct 20, 2024
f6a6fac
Merge pull request #518 from borisno2/renovate/lucide-monorepo
borisno2 Oct 20, 2024
d1a4179
Update Patch Dependencies
renovate[bot] Oct 20, 2024
ff66987
Merge pull request #515 from borisno2/renovate/all-minor-patch
borisno2 Oct 20, 2024
1eb09ba
Update eslint monorepo to ^9.13.0
renovate[bot] Oct 20, 2024
6dd1097
Merge pull request #521 from borisno2/renovate/eslint-monorepo
borisno2 Oct 20, 2024
80a219a
Update dependency @typescript-eslint/eslint-plugin to ^8.11.0
renovate[bot] Oct 21, 2024
3ae204d
Update dependency inngest to ^3.23.1
renovate[bot] Oct 22, 2024
ca16ae8
Merge pull request #530 from borisno2/renovate/typescript-eslint-mono…
borisno2 Oct 23, 2024
bd365b6
Merge pull request #529 from borisno2/renovate/inngest-3.x
borisno2 Oct 23, 2024
33b75d2
Update Patch Dependencies
renovate[bot] Oct 23, 2024
b85edf8
Merge pull request #528 from borisno2/renovate/all-minor-patch
borisno2 Oct 23, 2024
ba9fa81
Update dependency @types/node to ^20.17.0
renovate[bot] Oct 23, 2024
02a0d6a
Update dependency aws-crt to ^1.23.0
renovate[bot] Oct 23, 2024
495cf70
Update Patch Dependencies
renovate[bot] Oct 24, 2024
51243d8
Merge pull request #533 from borisno2/renovate/aws-crt-1.x
borisno2 Oct 24, 2024
43cb587
Merge pull request #532 from borisno2/renovate/node-20.x
borisno2 Oct 24, 2024
a1c1f08
Merge pull request #534 from borisno2/renovate/all-minor-patch
borisno2 Oct 24, 2024
5f97ecc
Update nextjs monorepo to v15
renovate[bot] Oct 24, 2024
058d695
codemod
borisno2 Oct 25, 2024
33d75ef
fixes
borisno2 Oct 25, 2024
d9c8208
override packages
borisno2 Oct 26, 2024
1c24a09
Merge pull request #531 from borisno2/renovate/major-nextjs-monorepo
borisno2 Oct 26, 2024
f97d1db
change dob picker
borisno2 Oct 26, 2024
205ee77
Update Patch Dependencies
renovate[bot] Oct 26, 2024
5fa3eac
fix eslint
borisno2 Oct 26, 2024
5e98a18
Merge pull request #535 from borisno2/renovate/all-minor-patch
borisno2 Oct 26, 2024
d1d908d
fix enrolStudent List
borisno2 Oct 26, 2024
fad3a26
Update dependency tsx to ^4.19.2
renovate[bot] Oct 27, 2024
49e1507
Merge pull request #538 from borisno2/renovate/all-minor-patch
borisno2 Oct 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 28 additions & 48 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,53 +1,33 @@
// import nextPlugin from '@next/eslint-plugin-next'
import reactPlugin from 'eslint-plugin-react'
import hooksPlugin from 'eslint-plugin-react-hooks'
import ts from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import imprt from 'eslint-plugin-import' // 'import' is ambiguous & prettier has trouble
import { fixupConfigRules } from '@eslint/compat'
// @ts-check
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import { FlatCompat } from '@eslint/eslintrc'
import { fixupConfigRules } from '@eslint/compat'

const compat = new FlatCompat()
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)

export default [
...fixupConfigRules(compat.extends('plugin:@next/next/core-web-vitals')),
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
react: reactPlugin,
'react-hooks': hooksPlugin,
// '@next/next': nextPlugin,
},
rules: {
...reactPlugin.configs['jsx-runtime'].rules,
// ...hooksPlugin.configs.recommended.rules,
// ...nextPlugin.configs.recommended.rules,
// ...nextPlugin.configs['core-web-vitals'].rules,
// '@next/next/no-img-element': 'error',
},
},
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaFeatures: { modules: true },
ecmaVersion: 'latest',
project: './tsconfig.json',
},
},
plugins: {
import: imprt,
'@typescript-eslint': ts,
ts,
},
rules: {
...ts.configs['eslint-recommended'].rules,
...ts.configs['recommended'].rules,
'ts/return-await': 2,
},
},
const compat = new FlatCompat({
baseDirectory: __dirname,
})

const patchedConfig = fixupConfigRules([
...compat.extends('next/core-web-vitals'),
])

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...patchedConfig,
{
ignores: ['**/.next/','node_modules','__generated__'],
ignores: [
'**/.next/',
'node_modules',
'__generated__',
'**/.keystone',
'*.js',
],
},
]
)
11 changes: 8 additions & 3 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { NextConfig } from 'next'

const KEYSTONE_URL = process.env.KEYSTONE_URL || 'http://localhost:4000'

/** @type {import('next').NextConfig} */
module.exports = {
const nextConfig: NextConfig = {
serverExternalPackages: ['graphql', 'ws'],
experimental: {
scrollRestoration: true,
serverComponentsExternalPackages: ['graphql', 'ws'],
},
async redirects() {
return [
Expand All @@ -22,6 +23,7 @@ module.exports = {
},
async rewrites() {
return {
beforeFiles: [],
afterFiles: [
{
source: '/admin',
Expand All @@ -32,6 +34,9 @@ module.exports = {
destination: `${KEYSTONE_URL}/admin/:admin*`,
},
],
fallback: [],
}
},
}

export default nextConfig
110 changes: 61 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,97 +6,109 @@
"build:keystone": "keystone build",
"dev": "turbo dev:watch dev:keystone dev:next",
"dev:keystone": "next start .keystone/admin --port 4000",
"dev:next": "next dev --port 3000",
"dev:next": "next dev --port 3000 --turbopack",
"dev:next-ssl": "node server.js",
"dev:watch": "keystone dev --no-server",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"postinstall": "keystone build --no-ui --frozen",
"lint": "eslint . && cspell '**' && tsc --noEmit",
"lint": "next lint && eslint . && cspell '**' && tsc --noEmit",
"seed-data": "tsx seed-data.ts"
},
"dependencies": {
"@aws-sdk/signature-v4-crt": "^3.654.0",
"@aws-sdk/signature-v4-crt": "^3.679.0",
"@graphql-typed-document-node/core": "^3.2.0",
"@graphql-yoga/apollo-link": "^3.7.0",
"@headlessui/react": "^2.1.8",
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.1.5",
"@hookform/resolvers": "^3.9.0",
"@keystone-6/core": "^6.3.0",
"@marsidev/react-turnstile": "^1.0.2",
"@neondatabase/serverless": "^0.9.5",
"@prisma/adapter-neon": "^5.20.0",
"@prisma/client": "5.20.0",
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-hover-card": "^1.1.1",
"@sendgrid/mail": "^8.1.3",
"@neondatabase/serverless": "^0.10.1",
"@prisma/adapter-neon": "^5.21.1",
"@prisma/client": "5.21.1",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-hover-card": "^1.1.2",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@sendgrid/mail": "^8.1.4",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@types/dotenv-flow": "^3.3.3",
"@vercel/analytics": "^1.3.1",
"@vercel/blob": "^0.24.0",
"@vercel/speed-insights": "^1.0.12",
"@whatwg-node/fetch": "^0.9.21",
"@vercel/analytics": "^1.3.2",
"@vercel/blob": "^0.25.1",
"@vercel/speed-insights": "^1.0.14",
"@whatwg-node/fetch": "^0.9.22",
"autoprefixer": "^10.4.20",
"aws-crt": "^1.22.0",
"aws-crt": "^1.23.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"csrf": "^3.1.0",
"cuid": "^3.0.0",
"date-fns": "^4.1.0",
"dayjs": "^1.11.13",
"decimal.js": "^10.4.3",
"dotenv": "^16.4.5",
"file-type": "^19.5.0",
"file-type": "^19.6.0",
"focus-visible": "^5.2.1",
"gql.tada": "^1.8.9",
"gql.tada": "^1.8.10",
"graphql": "^16.9.0",
"graphql-yoga": "^5.7.0",
"image-size": "^1.1.1",
"inngest": "^3.22.13",
"lucide-react": "^0.446.0",
"next": "^14.2.13",
"next-auth": "^4.24.8",
"postcss-focus-visible": "^10.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0",
"react-tailwindcss-datepicker": "^1.7.2",
"inngest": "^3.23.1",
"lucide-react": "^0.453.0",
"next": "15.0.1",
"next-auth": "^4.24.10",
"postcss-focus-visible": "^10.0.1",
"react": "19.0.0-rc-fb9a90fa48-20240614",
"react-day-picker": "^9.2.0",
"react-dom": "19.0.0-rc-fb9a90fa48-20240614",
"react-hook-form": "^7.53.1",
"sharp": "^0.33.5",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.13",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.14",
"tailwindcss-animate": "^1.0.7",
"ws": "^8.18.0",
"xero-node": "^9.3.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@0no-co/graphqlsp": "^1.12.14",
"@eslint/compat": "^1.1.1",
"@0no-co/graphqlsp": "^1.12.16",
"@eslint/compat": "^1.2.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.1",
"@types/lodash": "^4.17.9",
"@types/node": "^20.16.9",
"@types/react": "^18.3.9",
"@types/react-dom": "^18.3.0",
"@eslint/js": "^9.13.0",
"@next/eslint-plugin-next": "^15.0.1",
"@types/eslint__js": "^8.42.3",
"@types/lodash": "^4.17.12",
"@types/node": "^22.8.1",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"@types/ws": "^8.5.12",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"cspell": "^8.14.4",
"eslint": "9.11.1",
"eslint-config-next": "14.2.13",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"cspell": "^8.15.4",
"eslint": "9.13.0",
"eslint-config-next": "15.0.1",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"prisma": "5.20.0",
"tsx": "^4.19.1",
"turbo": "^2.1.2",
"typescript": "^5.6.2"
"prisma": "5.21.1",
"tsx": "^4.19.2",
"turbo": "^2.2.3",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0"
},
"packageManager": "pnpm@9.11.0",
"packageManager": "pnpm@9.12.2",
"pnpm": {
"overrides": {
"prisma": "5.20.0",
"@prisma/client": "5.20.0",
"@prisma/internals": "5.20.0",
"@prisma/migrate": "5.20.0",
"next": "^14.2.13"
"prisma": "5.21.1",
"@prisma/client": "5.21.1",
"@prisma/internals": "5.21.1",
"@prisma/migrate": "5.21.1",
"next": "^15.0.1",
"react": "19.0.0-rc-fb9a90fa48-20240614",
"react-dom": "19.0.0-rc-fb9a90fa48-20240614",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"@apollo/client": "^3.11.8",
"react-day-picker": "^9.2.0"
}
}
}
Loading