Skip to content

Commit

Permalink
chore: templates back to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
denolfe committed Dec 21, 2024
1 parent 235eade commit 1679e3d
Show file tree
Hide file tree
Showing 20 changed files with 1,900 additions and 4,804 deletions.
10 changes: 5 additions & 5 deletions templates/_template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.9.0",
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/db-mongodb": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/richtext-lexical": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"payload": "3.9.0",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
"sharp": "0.32.6"
Expand Down
10 changes: 5 additions & 5 deletions templates/blank/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.9.0",
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/db-mongodb": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/richtext-lexical": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"payload": "3.9.0",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
"sharp": "0.32.6"
Expand Down
220 changes: 125 additions & 95 deletions templates/blank/pnpm-lock.yaml

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions templates/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.9.0",
"@payloadcms/live-preview-react": "3.9.0",
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/plugin-form-builder": "3.9.0",
"@payloadcms/plugin-nested-docs": "3.9.0",
"@payloadcms/plugin-redirects": "3.9.0",
"@payloadcms/plugin-search": "3.9.0",
"@payloadcms/plugin-seo": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/ui": "3.9.0",
"@payloadcms/db-mongodb": "latest",
"@payloadcms/live-preview-react": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/plugin-form-builder": "latest",
"@payloadcms/plugin-nested-docs": "latest",
"@payloadcms/plugin-redirects": "latest",
"@payloadcms/plugin-search": "latest",
"@payloadcms/plugin-seo": "latest",
"@payloadcms/richtext-lexical": "latest",
"@payloadcms/ui": "latest",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-select": "^2.0.0",
Expand All @@ -42,7 +42,7 @@
"lucide-react": "^0.378.0",
"next": "^15.1.0",
"next-sitemap": "^4.2.3",
"payload": "3.9.0",
"payload": "latest",
"payload-admin-bar": "^1.0.6",
"prism-react-renderer": "^2.3.1",
"react": "^19.0.0",
Expand Down
6,103 changes: 1,592 additions & 4,511 deletions templates/website/pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions templates/with-payload-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.9.0",
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/db-mongodb": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/richtext-lexical": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"payload": "3.9.0",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
"sharp": "0.32.6"
Expand Down
16 changes: 8 additions & 8 deletions templates/with-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"ci": "payload migrate && pnpm build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
"ci": "payload migrate && pnpm build"
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/db-postgres": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/richtext-lexical": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"payload": "3.9.0",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
"sharp": "0.32.6",
"@payloadcms/db-postgres": "3.9.0"
"sharp": "0.32.6"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "19f6f6b6-67a6-472f-9e30-e4972f21ca73",
"id": "e61bbf91-a1a4-459b-a1f7-244d3e0bfbfc",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres'

export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
await db.execute(sql`
export async function up({ payload, req }: MigrateUpArgs): Promise<void> {
await payload.db.drizzle.execute(sql`
CREATE TABLE IF NOT EXISTS "users" (
"id" serial PRIMARY KEY NOT NULL,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
Expand Down Expand Up @@ -126,8 +126,8 @@ export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
CREATE INDEX IF NOT EXISTS "payload_migrations_created_at_idx" ON "payload_migrations" USING btree ("created_at");`)
}

export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
await db.execute(sql`
export async function down({ payload, req }: MigrateDownArgs): Promise<void> {
await payload.db.drizzle.execute(sql`
DROP TABLE "users" CASCADE;
DROP TABLE "media" CASCADE;
DROP TABLE "payload_locked_documents" CASCADE;
Expand Down
8 changes: 4 additions & 4 deletions templates/with-postgres/src/migrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as migration_20241221_130423_initial from './20241221_130423_initial'
import * as migration_20241221_131510_initial from './20241221_131510_initial'

export const migrations = [
{
up: migration_20241221_130423_initial.up,
down: migration_20241221_130423_initial.down,
name: '20241221_130423_initial',
up: migration_20241221_131510_initial.up,
down: migration_20241221_131510_initial.down,
name: '20241221_131510_initial',
},
]
14 changes: 7 additions & 7 deletions templates/with-vercel-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.9.0",
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/db-mongodb": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/richtext-lexical": "latest",
"@payloadcms/storage-vercel-blob": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"payload": "3.9.0",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
"@payloadcms/storage-vercel-blob": "3.9.0"
"react-dom": "19.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down
18 changes: 9 additions & 9 deletions templates/with-vercel-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"ci": "payload migrate && pnpm build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
"ci": "payload migrate && pnpm build"
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/db-vercel-postgres": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/richtext-lexical": "latest",
"@payloadcms/storage-vercel-blob": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"payload": "3.9.0",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
"@payloadcms/db-vercel-postgres": "3.9.0",
"@payloadcms/storage-vercel-blob": "3.9.0"
"react-dom": "19.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "c68845d5-29d1-4e46-b258-29ef5f876fad",
"id": "e1f24ef9-03d9-4a3a-bc67-95c76fa0f719",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-vercel-postgres'

export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
await db.execute(sql`
export async function up({ payload, req }: MigrateUpArgs): Promise<void> {
await payload.db.drizzle.execute(sql`
CREATE TABLE IF NOT EXISTS "users" (
"id" serial PRIMARY KEY NOT NULL,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
Expand Down Expand Up @@ -126,8 +126,8 @@ export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
CREATE INDEX IF NOT EXISTS "payload_migrations_created_at_idx" ON "payload_migrations" USING btree ("created_at");`)
}

export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
await db.execute(sql`
export async function down({ payload, req }: MigrateDownArgs): Promise<void> {
await payload.db.drizzle.execute(sql`
DROP TABLE "users" CASCADE;
DROP TABLE "media" CASCADE;
DROP TABLE "payload_locked_documents" CASCADE;
Expand Down
8 changes: 4 additions & 4 deletions templates/with-vercel-postgres/src/migrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as migration_20241221_130358_initial from './20241221_130358_initial'
import * as migration_20241221_131503_initial from './20241221_131503_initial'

export const migrations = [
{
up: migration_20241221_130358_initial.up,
down: migration_20241221_130358_initial.down,
name: '20241221_130358_initial',
up: migration_20241221_131503_initial.up,
down: migration_20241221_131503_initial.down,
name: '20241221_131503_initial',
},
]
32 changes: 16 additions & 16 deletions templates/with-vercel-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
"ci": "payload migrate && pnpm build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"dev:prod": "cross-env NODE_OPTIONS=--no-deprecation rm -rf .next && pnpm build && pnpm start",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
Expand All @@ -16,20 +17,21 @@
"lint:fix": "cross-env NODE_OPTIONS=--no-deprecation next lint --fix",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
"reinstall": "cross-env NODE_OPTIONS=--no-deprecation rm -rf node_modules && rm pnpm-lock.yaml && pnpm --ignore-workspace install",
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
"ci": "payload migrate && pnpm build"
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/live-preview-react": "3.9.0",
"@payloadcms/next": "3.9.0",
"@payloadcms/payload-cloud": "3.9.0",
"@payloadcms/plugin-form-builder": "3.9.0",
"@payloadcms/plugin-nested-docs": "3.9.0",
"@payloadcms/plugin-redirects": "3.9.0",
"@payloadcms/plugin-search": "3.9.0",
"@payloadcms/plugin-seo": "3.9.0",
"@payloadcms/richtext-lexical": "3.9.0",
"@payloadcms/ui": "3.9.0",
"@payloadcms/db-vercel-postgres": "latest",
"@payloadcms/live-preview-react": "latest",
"@payloadcms/next": "latest",
"@payloadcms/payload-cloud": "latest",
"@payloadcms/plugin-form-builder": "latest",
"@payloadcms/plugin-nested-docs": "latest",
"@payloadcms/plugin-redirects": "latest",
"@payloadcms/plugin-search": "latest",
"@payloadcms/plugin-seo": "latest",
"@payloadcms/richtext-lexical": "latest",
"@payloadcms/storage-vercel-blob": "latest",
"@payloadcms/ui": "latest",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-select": "^2.0.0",
Expand All @@ -42,17 +44,15 @@
"lucide-react": "^0.378.0",
"next": "^15.1.0",
"next-sitemap": "^4.2.3",
"payload": "3.9.0",
"payload": "latest",
"payload-admin-bar": "^1.0.6",
"prism-react-renderer": "^2.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "7.45.4",
"sharp": "0.32.6",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"@payloadcms/db-vercel-postgres": "3.9.0",
"@payloadcms/storage-vercel-blob": "3.9.0"
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "df629ce9-ae70-414d-80f2-33997f6e2938",
"id": "a823d08c-aef5-4b97-b99f-d6d3a5e5e732",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
Expand Down Expand Up @@ -8235,6 +8235,11 @@
}
},
"enums": {
"public.enum_pages_hero_type": {
"name": "enum_pages_hero_type",
"schema": "public",
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
},
"public.enum_pages_hero_links_link_type": {
"name": "enum_pages_hero_links_link_type",
"schema": "public",
Expand Down Expand Up @@ -8280,16 +8285,16 @@
"schema": "public",
"values": ["posts"]
},
"public.enum_pages_hero_type": {
"name": "enum_pages_hero_type",
"schema": "public",
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
},
"public.enum_pages_status": {
"name": "enum_pages_status",
"schema": "public",
"values": ["draft", "published"]
},
"public.enum__pages_v_version_hero_type": {
"name": "enum__pages_v_version_hero_type",
"schema": "public",
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
},
"public.enum__pages_v_version_hero_links_link_type": {
"name": "enum__pages_v_version_hero_links_link_type",
"schema": "public",
Expand Down Expand Up @@ -8335,11 +8340,6 @@
"schema": "public",
"values": ["posts"]
},
"public.enum__pages_v_version_hero_type": {
"name": "enum__pages_v_version_hero_type",
"schema": "public",
"values": ["none", "highImpact", "mediumImpact", "lowImpact"]
},
"public.enum__pages_v_version_status": {
"name": "enum__pages_v_version_status",
"schema": "public",
Expand Down
Loading

0 comments on commit 1679e3d

Please sign in to comment.