Skip to content

Commit

Permalink
refactor client libs for ssr of hub
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Aug 27, 2024
1 parent a924ece commit 02eaf3a
Show file tree
Hide file tree
Showing 60 changed files with 5,304 additions and 4,022 deletions.
2 changes: 1 addition & 1 deletion apps/gnocchi/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"typecheck": "tsc --build tsconfig.json"
},
"dependencies": {
"@a-type/ui": "^1.1.14",
"@a-type/ui": "^1.1.16",
"@a-type/utils": "^1.0.8",
"@tiptap/core": "^2.2.4",
"@tiptap/extension-document": "^2.2.4",
Expand Down
73 changes: 37 additions & 36 deletions apps/gnocchi/verdant/package.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
{
"name": "@gnocchi.biscuits/verdant",
"version": "0.0.1",
"private": true,
"exports": {
".": {
"production": "./dist/esm/index.js",
"development": "./src/index.ts",
"import": "./dist/esm/index.js",
"node": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"type": "module",
"scripts": {
"generate": "verdant -s ./src/schema.ts -o ./src/client -r",
"link-verdant": "pnpm link --global @verdant-web/store && pnpm link --global @verdant-web/cli && pnpm link --global @verdant-web/common && pnpm link --global @verdant-web/react",
"preflight": "verdant preflight -s ./src/schema.ts -o ./src/client",
"build": "tsc && node ./scripts/copyClient.js"
},
"peerDependencies": {
"react": "18.3.1"
},
"dependencies": {
"@0no-co/graphqlsp": "1.12.8",
"@biscuits/client": "workspace:*",
"@verdant-web/cli": "^4.6.1",
"@verdant-web/common": "2.5.2",
"@verdant-web/react": "38.0.0",
"@verdant-web/store": "3.12.0",
"cuid": "^2.1.8",
"stopword": "^2.0.8"
},
"devDependencies": {
"@types/stopword": "^2.0.0",
"react": "18.3.1"
}
"name": "@gnocchi.biscuits/verdant",
"version": "0.0.1",
"private": true,
"exports": {
".": {
"production": "./dist/esm/index.js",
"development": "./src/index.ts",
"import": "./dist/esm/index.js",
"node": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"type": "module",
"scripts": {
"generate": "verdant -s ./src/schema.ts -o ./src/client -r",
"link-verdant": "pnpm link --global @verdant-web/store && pnpm link --global @verdant-web/cli && pnpm link --global @verdant-web/common && pnpm link --global @verdant-web/react",
"preflight": "verdant preflight -s ./src/schema.ts -o ./src/client",
"build": "tsc && node ./scripts/copyClient.js"
},
"peerDependencies": {
"react": "18.3.1"
},
"dependencies": {
"@0no-co/graphqlsp": "1.12.8",
"@biscuits/client": "workspace:*",
"@biscuits/graphql": "workspace:*",
"@verdant-web/cli": "^4.6.1",
"@verdant-web/common": "2.5.2",
"@verdant-web/react": "38.0.0",
"@verdant-web/store": "3.12.0",
"cuid": "^2.1.8",
"stopword": "^2.0.8"
},
"devDependencies": {
"@types/stopword": "^2.0.0",
"react": "18.3.1"
}
}
205 changes: 103 additions & 102 deletions apps/gnocchi/web/package.json
Original file line number Diff line number Diff line change
@@ -1,104 +1,105 @@
{
"name": "@gnocchi.biscuits/web",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {
"app-dev": "vite --host --mode development",
"app-dev-old": "vite --host --mode development --port 6299",
"build": "vite build --mode production",
"preview": "vite preview --host",
"link-verdant": "pnpm link --global @verdant-web/store && pnpm link --global @verdant-web/common && pnpm link --global @verdant-web/react && pnpm link --global @verdant-web/cli && pnpm link --global @verdant-web/react-router",
"clear": "rm -rf node_modules/.vite",
"icons": "node ./scripts/generateIcons.js",
"typecheck": "tsc --build tsconfig.json"
},
"dependencies": {
"@a-type/ui": "^1.1.14",
"@a-type/utils": "^1.0.8",
"@biscuits/client": "workspace:*",
"@biscuits/error": "workspace:*",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@gnocchi.biscuits/conversion": "workspace:*",
"@gnocchi.biscuits/verdant": "workspace:*",
"@radix-ui/react-icons": "^1.1.1",
"@react-spring/three": "9.7.3",
"@react-spring/web": "9.7.3",
"@react-three/drei": "9.101.0",
"@react-three/fiber": "8.15.19",
"@react-three/postprocessing": "^2.15.11",
"@tiptap/core": "2.4.0",
"@tiptap/extension-document": "2.4.0",
"@tiptap/extension-link": "2.4.0",
"@tiptap/extension-paragraph": "2.4.0",
"@tiptap/pm": "2.4.0",
"@tiptap/react": "2.4.0",
"@tiptap/starter-kit": "2.4.0",
"@use-gesture/react": "^10.2.24",
"@vercel/analytics": "^0.1.6",
"@verdant-web/react-router": "^0.6.4",
"@verdant-web/store": "^3.12.0",
"@zip.js/zip.js": "^2.7.6",
"classnames": "^2.3.2",
"convert-units": "^3.0.0-beta.4",
"copy-to-clipboard": "^3.3.2",
"csstype": "^3.1.0",
"cuid": "^2.1.8",
"date-fns": "^2.29.3",
"downshift": "9.0.6",
"fractional-indexing": "^3.0.1",
"jotai": "^1.13.0",
"just-mix": "^0.3.3",
"pako": "^2.1.0",
"parse-fraction": "^1.2.1",
"pluralize": "^8.0.0",
"postprocessing": "^6.29.1",
"prosemirror-model": "1.21.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-lazy-with-preload": "^2.2.1",
"react-use-measure": "^2.1.1",
"stopword": "^2.0.8",
"superjson": "^1.12.0",
"suspend-react": "^0.0.8",
"tesseract.js": "^4.0.3",
"three": "0.162.0",
"valtio": "^1.6.1",
"workbox-core": "^7.0.0",
"workbox-expiration": "^7.0.0",
"workbox-navigation-preload": "^7.0.0",
"workbox-precaching": "^7.0.0",
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0",
"workbox-window": "^6.5.4"
},
"devDependencies": {
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@types/convert-units": "^2.3.5",
"@types/dom-screen-wake-lock": "^1.0.0",
"@types/pako": "^2.0.0",
"@types/pluralize": "^0.0.29",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/stopword": "^2.0.0",
"@types/three": "0.162.0",
"@unocss/transformer-variant-group": "^0.58.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"axios": "^1.3.4",
"change-case": "^4.1.2",
"concurrently": "^7.5.0",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"fs-extra": "^11.1.0",
"prettier": "^2.8.4",
"typescript": "5.5.3",
"unocss": "^0.58.0",
"vite": "^5.0.10",
"vite-plugin-checker": "^0.6.2",
"vite-plugin-circular-dependency": "^0.2.1",
"vite-plugin-pwa": "^0.17.4"
}
"name": "@gnocchi.biscuits/web",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {
"app-dev": "vite --host --mode development",
"app-dev-old": "vite --host --mode development --port 6299",
"build": "vite build --mode production",
"preview": "vite preview --host",
"link-verdant": "pnpm link --global @verdant-web/store && pnpm link --global @verdant-web/common && pnpm link --global @verdant-web/react && pnpm link --global @verdant-web/cli && pnpm link --global @verdant-web/react-router",
"clear": "rm -rf node_modules/.vite",
"icons": "node ./scripts/generateIcons.js",
"typecheck": "tsc --build tsconfig.json"
},
"dependencies": {
"@a-type/ui": "^1.1.16",
"@a-type/utils": "^1.0.8",
"@biscuits/client": "workspace:*",
"@biscuits/error": "workspace:*",
"@biscuits/graphql": "workspace:*",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@gnocchi.biscuits/conversion": "workspace:*",
"@gnocchi.biscuits/verdant": "workspace:*",
"@radix-ui/react-icons": "^1.1.1",
"@react-spring/three": "9.7.3",
"@react-spring/web": "9.7.3",
"@react-three/drei": "9.101.0",
"@react-three/fiber": "8.15.19",
"@react-three/postprocessing": "^2.15.11",
"@tiptap/core": "2.4.0",
"@tiptap/extension-document": "2.4.0",
"@tiptap/extension-link": "2.4.0",
"@tiptap/extension-paragraph": "2.4.0",
"@tiptap/pm": "2.4.0",
"@tiptap/react": "2.4.0",
"@tiptap/starter-kit": "2.4.0",
"@use-gesture/react": "^10.2.24",
"@vercel/analytics": "^0.1.6",
"@verdant-web/react-router": "^0.6.4",
"@verdant-web/store": "^3.12.0",
"@zip.js/zip.js": "^2.7.6",
"classnames": "^2.3.2",
"convert-units": "^3.0.0-beta.4",
"copy-to-clipboard": "^3.3.2",
"csstype": "^3.1.0",
"cuid": "^2.1.8",
"date-fns": "^2.29.3",
"downshift": "9.0.6",
"fractional-indexing": "^3.0.1",
"jotai": "^1.13.0",
"just-mix": "^0.3.3",
"pako": "^2.1.0",
"parse-fraction": "^1.2.1",
"pluralize": "^8.0.0",
"postprocessing": "^6.29.1",
"prosemirror-model": "1.21.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-lazy-with-preload": "^2.2.1",
"react-use-measure": "^2.1.1",
"stopword": "^2.0.8",
"superjson": "^1.12.0",
"suspend-react": "^0.0.8",
"tesseract.js": "^4.0.3",
"three": "0.162.0",
"valtio": "^1.6.1",
"workbox-core": "^7.0.0",
"workbox-expiration": "^7.0.0",
"workbox-navigation-preload": "^7.0.0",
"workbox-precaching": "^7.0.0",
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0",
"workbox-window": "^6.5.4"
},
"devDependencies": {
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@types/convert-units": "^2.3.5",
"@types/dom-screen-wake-lock": "^1.0.0",
"@types/pako": "^2.0.0",
"@types/pluralize": "^0.0.29",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/stopword": "^2.0.0",
"@types/three": "0.162.0",
"@unocss/transformer-variant-group": "^0.58.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"axios": "^1.3.4",
"change-case": "^4.1.2",
"concurrently": "^7.5.0",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"fs-extra": "^11.1.0",
"prettier": "^2.8.4",
"typescript": "5.5.3",
"unocss": "^0.58.0",
"vite": "^5.0.10",
"vite-plugin-checker": "^0.6.2",
"vite-plugin-circular-dependency": "^0.2.1",
"vite-plugin-pwa": "^0.17.4"
}
}
Loading

0 comments on commit 02eaf3a

Please sign in to comment.