Skip to content

Commit

Permalink
feat(repo): playground workspace: protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko committed Nov 21, 2024
1 parent 7b80f0c commit 808a4f6
Show file tree
Hide file tree
Showing 13 changed files with 9,883 additions and 884 deletions.
21 changes: 9 additions & 12 deletions playground/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev:yalc": "pnpm yalc && rm -rf .next && next dev --port 4011",
"yalc": "yalc add -- @clerk/nextjs @clerk/clerk-react @clerk/backend @clerk/types @clerk/shared",
"dev": "next dev --port 4011",
"build": "next build",
"build:yalc": "pnpm yalc && rm -rf .next && next build",
"start": "next start",
"lint": "next lint"
"build:playground": "next build",
"dev:playground": "next dev --port 4011",
"lint:playground": "next lint",
"start:playground": "next start"
},
"dependencies": {
"@clerk/backend": "file:.yalc/@clerk/backend",
"@clerk/clerk-react": "file:.yalc/@clerk/clerk-react",
"@clerk/nextjs": "file:.yalc/@clerk/nextjs",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/backend": "workspace:*",
"@clerk/clerk-react": "workspace:*",
"@clerk/nextjs": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"@types/node": "18.16.0",
"@types/react": "18.0.38",
"@types/react-dom": "18.0.11",
Expand Down
19 changes: 9 additions & 10 deletions playground/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"private": true,
"type": "module",
"dependencies": {
"@clerk/chrome-extension": "file:.yalc/@clerk/chrome-extension",
"@clerk/clerk-js": "file:.yalc/@clerk/clerk-js",
"@clerk/clerk-react": "file:.yalc/@clerk/clerk-react",
"@clerk/localizations": "file:.yalc/@clerk/localizations",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/themes": "file:.yalc/@clerk/themes",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/chrome-extension": "workspace:*",
"@clerk/clerk-js": "workspace:*",
"@clerk/clerk-react": "workspace:*",
"@clerk/localizations": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/themes": "workspace:*",
"@clerk/types": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1",
Expand All @@ -32,8 +32,7 @@
"vite": "^4.5.0"
},
"scripts": {
"build": "vite build",
"dev": "pnpm yalc:add && nodemon",
"yalc:add": "yalc add -- @clerk/chrome-extension @clerk/clerk-react @clerk/clerk-js @clerk/localizations @clerk/themes @clerk/types @clerk/shared"
"build:playground": "vite build",
"dev:playground": "pnpm nodemon"
}
}
14 changes: 7 additions & 7 deletions playground/cra-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@clerk/clerk-react": "file:.yalc/@clerk/clerk-react",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/clerk-react": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand All @@ -15,10 +15,10 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"build:playground": "react-scripts build",
"eject:playground": "react-scripts eject",
"start:playground": "react-scripts start",
"test:playground": "react-scripts test"
},
"eslintConfig": {
"extends": [
Expand Down
15 changes: 7 additions & 8 deletions playground/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
"scripts": {
"android": "expo run:android",
"ios": "expo run:ios",
"start": "expo start",
"start:playground": "expo start",
"web": "expo start --web",
"yalc": "yalc add @clerk/clerk-expo @clerk/clerk-js @clerk/clerk-react @clerk/types @clerk/shared @clerk/types @clerk/expo-passkeys",
"expo:update": "pnpm expo install --fix"
},
"dependencies": {
"@clerk/clerk-expo": "file:.yalc/@clerk/clerk-expo",
"@clerk/clerk-js": "file:.yalc/@clerk/clerk-js",
"@clerk/clerk-react": "file:.yalc/@clerk/clerk-react",
"@clerk/expo-passkeys": "file:.yalc/@clerk/expo-passkeys",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/clerk-expo": "workspace:*",
"@clerk/clerk-js": "workspace:*",
"@clerk/clerk-react": "workspace:*",
"@clerk/expo-passkeys": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"@expo/metro-runtime": "~3.2.3",
"@react-native-async-storage/async-storage": "1.23.1",
"expo": "~51.0.39",
Expand Down
13 changes: 6 additions & 7 deletions playground/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
"version": "0.1.0",
"private": true,
"scripts": {
"start": "ts-node ./src/server.ts",
"yalc:add": "yalc add -- @clerk/express @clerk/types @clerk/backend @clerk/shared",
"dev:fromlocal": " nodemon --watch .yalc --watch src --exec \"pnpm yalc:add && pnpm start\""
"start:playground": "ts-node ./src/server.ts",
"dev:fromlocal": "nodemon --watch .yalc --watch src --exec \"pnpm yalc:add && pnpm start\""
},
"author": "",
"license": "ISC",
"dependencies": {
"@clerk/backend": "file:.yalc/@clerk/backend",
"@clerk/express": "file:.yalc/@clerk/express",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/backend": "workspace:*",
"@clerk/express": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"dotenv": "^16.0.3",
"ejs": "^3.1.6",
"express": "^4.21.0",
Expand Down
2 changes: 1 addition & 1 deletion playground/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"start": "ts-node ./src/server.ts"
"start:playground": "ts-node ./src/server.ts"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
10 changes: 4 additions & 6 deletions playground/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev:yalc": "pnpm yalc && rm -rf .next && next dev --port 4011",
"yalc": "yalc add @clerk/nextjs @clerk/clerk-react @clerk/backend @clerk/types @clerk/shared",
"dev": "rm -rf .next && next dev --port 4011",
"build": "next build",
"start": "next start",
"lint": "next lint"
"build:playground": "next build",
"dev:playground": "rm -rf .next && next dev --port 4011",
"lint:playground": "next lint",
"start:playground": "next start"
},
"dependencies": {
"@clerk/nextjs": "canary",
Expand Down
15 changes: 7 additions & 8 deletions playground/remix-cf-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
"private": true,
"sideEffects": false,
"scripts": {
"build": "remix build",
"build:playground": "remix build",
"dev:remix": "remix watch",
"dev:wrangler": "cross-env NODE_ENV=development wrangler pages dev ./public",
"dev": "remix build && run-p \"dev:*\"",
"start": "cross-env NODE_ENV=production pnpm dev:wrangler",
"typecheck": "tsc -b",
"yalc:add": "yalc add @clerk/types && yalc add @clerk/remix && yalc add @clerk/backend"
"dev:playground": "remix build && run-p \"dev:*\"",
"start:playground": "cross-env NODE_ENV=production pnpm dev:wrangler",
"typecheck:playground": "tsc -b"
},
"dependencies": {
"@clerk/backend": "file:.yalc/@clerk/backend",
"@clerk/remix": "file:.yalc/@clerk/remix",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/backend": "workspace:*",
"@clerk/remix": "workspace:*",
"@clerk/types": "workspace:*",
"@remix-run/cloudflare": "^2.0.0",
"@remix-run/cloudflare-pages": "^2.0.0",
"@remix-run/react": "^2.0.0",
Expand Down
15 changes: 7 additions & 8 deletions playground/remix-cf-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
"private": true,
"sideEffects": false,
"scripts": {
"build": "remix build",
"deploy": "wrangler publish",
"build:playground": "remix build",
"deploy:playground": "wrangler publish",
"dev:remix": "remix watch",
"dev:miniflare": "cross-env NODE_ENV=development miniflare ./build/index.js --watch",
"dev": "remix build && run-p \"dev:*\"",
"start": "cross-env NODE_ENV=production miniflare ./build/index.js",
"yalc:add": "yalc add @clerk/types && yalc add @clerk/remix && yalc add @clerk/backend"
"dev:playground": "remix build && run-p \"dev:*\"",
"start:playground": "cross-env NODE_ENV=production miniflare ./build/index.js"
},
"dependencies": {
"@clerk/backend": "file:.yalc/@clerk/backend",
"@clerk/remix": "file:.yalc/@clerk/remix",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/backend": "workspace:*",
"@clerk/remix": "workspace:*",
"@clerk/types": "workspace:*",
"@remix-run/cloudflare": "^2.0.0",
"@remix-run/cloudflare-workers": "^2.0.0",
"@remix-run/react": "^2.0.0",
Expand Down
19 changes: 9 additions & 10 deletions playground/remix-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
"private": true,
"sideEffects": false,
"scripts": {
"build": "remix build",
"dev": "remix dev",
"start": "remix-serve build",
"clean": "rm -rf .cache build",
"yalc:add": "yalc add -- @clerk/types @clerk/shared @clerk/backend @clerk/remix @clerk/clerk-react"
"build:playground": "remix build",
"clean:playground": "rm -rf .cache build",
"dev:playground": "remix dev",
"start:playground": "remix-serve build"
},
"dependencies": {
"@clerk/backend": "file:.yalc/@clerk/backend",
"@clerk/clerk-react": "file:.yalc/@clerk/clerk-react",
"@clerk/remix": "file:.yalc/@clerk/remix",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/backend": "workspace:*",
"@clerk/clerk-react": "workspace:*",
"@clerk/remix": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"@remix-run/node": "^2.0.0",
"@remix-run/react": "^2.0.0",
"@remix-run/serve": "^2.0.0",
Expand Down
18 changes: 8 additions & 10 deletions playground/vite-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"dev:yalc": "pnpm yalc && vite",
"yalc": "yalc add -- @clerk/clerk-react @clerk/types @clerk/shared"
"build:playground": "tsc && vite build",
"dev:playground": "vite",
"lint:playground": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@clerk/clerk-js": "file:.yalc/@clerk/clerk-js",
"@clerk/clerk-react": "file:.yalc/@clerk/clerk-react",
"@clerk/shared": "file:.yalc/@clerk/shared",
"@clerk/types": "file:.yalc/@clerk/types",
"@clerk/clerk-js": "workspace:*",
"@clerk/clerk-react": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.0"
Expand Down
Loading

0 comments on commit 808a4f6

Please sign in to comment.