Skip to content

Commit

Permalink
Update dependencies of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
willybrauner committed Oct 18, 2023
1 parent 46889fb commit e21f34d
Show file tree
Hide file tree
Showing 11 changed files with 947 additions and 1,396 deletions.
2 changes: 1 addition & 1 deletion examples/example-client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<script type="module" src="./src/index.tsx"></script>
</body>
</html>
12 changes: 6 additions & 6 deletions examples/example-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"dependencies": {
"@cher-ami/router": "^3.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"gsap": "^3.12.2"
},
"devDependencies": {
"@types/node": "^20.8.2",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.8",
"@types/node": "^20.8.7",
"@types/react": "^18.2.29",
"@types/react-dom": "^18.2.13",
"@vitejs/plugin-react": "^4.1.0",
"gsap": "^3.12.2",
"typescript": "^5.2.2",
"vite": "^4.4.10"
"vite": "^4.5.0"
}
}
1 change: 1 addition & 0 deletions examples/example-client/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
30 changes: 16 additions & 14 deletions examples/example-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{
"compilerOptions": {

"module": "esnext",
"target": "esnext",
"lib": ["es2015.promise", "es6", "dom", "esnext"],
"jsx": "react",
"moduleResolution": "node",
"types": ["node"],
"declaration": true,
"isolatedModules": false,
"noImplicitAny": false,
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"preserveConstEnums": true,
"strictNullChecks": false
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["./**/*"],
"exclude": ["dist"]
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
9 changes: 9 additions & 0 deletions examples/example-client/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
8 changes: 3 additions & 5 deletions examples/example-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
"build:scripts": "vite build -c vite.scripts.config.ts",
"build:static": "vite build --outDir dist/static",
"build": "npm run build:client && npm run build:server && npm run build:scripts && npm run build:static && npm run generate",
"serve": "NODE_ENV=production node server",
"generate": "node dist/_scripts/exe-prerender.js",
"preview": "serve dist/static"
},
"dependencies": {
"@cher-ami/router": "^3.1.2",
"gsap": "^3.12.2",
"isomorphic-unfetch": "^4.0.2",
"path-to-regexp": "^6.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"gsap": "^3.12.2"
},
"devDependencies": {
"@types/node": "^20.8.2",
Expand All @@ -30,6 +27,7 @@
"@wbe/mfs": "^0.1.1",
"chalk": "^5.3.0",
"compression": "^1.7.4",
"isomorphic-unfetch": "^4.0.2",
"cross-fetch": "^4.0.0",
"express": "^4.18.2",
"fs-extra": "^11.1.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/example-ssr/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { GlobalDataContext } from "~/store/GlobalDataContext";
/**
* Client side
*/
const root = hydrateRoot(
hydrateRoot(
document.getElementById("root"),
<Router
routes={routes}
Expand Down
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,27 @@
"path-to-regexp": "^6.2.1"
},
"devDependencies": {
"tsup": "^7.2.0",
"@babel/core": "*",
"@babel/preset-env": "^7.22.20",
"@babel/preset-react": "*",
"@babel/preset-typescript": "*",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@size-limit/preset-big-lib": "^9.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.2",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.8",
"babel-jest": "*",
"@types/jest": "^29.5.6",
"@types/node": "^20.8.7",
"@types/react": "^18.2.29",
"@types/react-dom": "^18.2.13",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"regenerator-runtime": "^0.14.0",
"size-limit": "^9.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"husky": {
Expand Down
Loading

0 comments on commit e21f34d

Please sign in to comment.