-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add react router entry point (#459)
* feat: add react router entry point Signed-off-by: Logan McAnsh <[email protected]> * feat: update package name for react router example template Signed-off-by: Logan McAnsh <[email protected]> * chore: adjust more things, add tests for RR Signed-off-by: Logan McAnsh <[email protected]> * Update tsup.config.ts * Update react-router.ts * chore: update pnpm Signed-off-by: Logan McAnsh <[email protected]> * chore: use @total-typescript/tsconfig/bundler/no-dom/library for tsconfig Signed-off-by: Logan McAnsh <[email protected]> * chore: use @total-typescript/tsconfig/bundler/dom/app for examples Signed-off-by: Logan McAnsh <[email protected]> * chore: remove console logs Signed-off-by: Logan McAnsh <[email protected]> * chore: rename some exports and fix react router tests Signed-off-by: Logan McAnsh <[email protected]> * chore: update tsconfig and refactor remix handlers for improved compatibility Signed-off-by: Logan McAnsh <[email protected]> * chore: update loader function to return data directly instead of using defer Signed-off-by: Logan McAnsh <[email protected]> * Create spicy-donuts-sing.md Signed-off-by: Logan McAnsh <[email protected]> --------- Signed-off-by: Logan McAnsh <[email protected]>
- Loading branch information
Showing
42 changed files
with
1,500 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@mcansh/remix-fastify": patch | ||
--- | ||
|
||
feat: add react router entry point |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ yalc.lock | |
# added during build | ||
/packages/*/LICENSE | ||
.tsup | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
{ | ||
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"extends": "@total-typescript/tsconfig/bundler/dom/app", | ||
"compilerOptions": { | ||
"lib": ["DOM", "DOM.Iterable", "ES2022"], | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"types": ["@remix-run/node"], | ||
"jsx": "react-jsx", | ||
"moduleResolution": "Bundler", | ||
"resolveJsonModule": true, | ||
"target": "ES2022", | ||
"strict": true, | ||
"allowJs": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"~/*": ["./app/*"] | ||
}, | ||
|
||
// Remix takes care of building everything in `remix build`. | ||
"noEmit": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,21 +17,22 @@ | |
"dependencies": { | ||
"@fastify/static": "^8.0.2", | ||
"@mcansh/remix-fastify": "workspace:*", | ||
"@remix-run/node": "*", | ||
"@remix-run/react": "*", | ||
"@remix-run/node": "^2.14.0", | ||
"@remix-run/react": "^2.14.0", | ||
"chalk": "^5.3.0", | ||
"fastify": "^5.0.0", | ||
"fastify": "^5.1.0", | ||
"get-port": "^7.1.0", | ||
"isbot": "^5.1.17", | ||
"react": "19.0.0-rc-100dfd7dab-20240701", | ||
"react-dom": "19.0.0-rc-100dfd7dab-20240701", | ||
"react": "19.0.0-rc.1", | ||
"react-dom": "19.0.0-rc.1", | ||
"source-map-support": "^0.5.21" | ||
}, | ||
"devDependencies": { | ||
"@fastify/middie": "^9.0.2", | ||
"@remix-run/dev": "*", | ||
"@remix-run/eslint-config": "*", | ||
"@tailwindcss/vite": "4.0.0-alpha.28", | ||
"@remix-run/dev": "^2.14.0", | ||
"@remix-run/eslint-config": "^2.14.0", | ||
"@tailwindcss/vite": "4.0.0-alpha.34", | ||
"@total-typescript/tsconfig": "^1.0.4", | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]", | ||
"chokidar": "^4.0.1", | ||
|
@@ -41,10 +42,10 @@ | |
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-tailwindcss": "^0.6.8", | ||
"tailwindcss": "4.0.0-alpha.28", | ||
"tailwindcss": "4.0.0-alpha.34", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.4.9", | ||
"vite-tsconfig-paths": "^5.0.1" | ||
"vite": "^5.4.11", | ||
"vite-tsconfig-paths": "^5.1.2" | ||
}, | ||
"overrides": { | ||
"@types/react": "$@types/react", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,22 @@ | ||
{ | ||
"extends": "@total-typescript/tsconfig/bundler/dom/app", | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.tsx", | ||
"**/.server/**/*.ts", | ||
"**/.server/**/*.tsx", | ||
"**/.client/**/*.ts", | ||
"**/.client/**/*.tsx" | ||
"**/.client/**/*.tsx", | ||
".react-router/types/**/*" | ||
], | ||
"compilerOptions": { | ||
"lib": ["DOM", "DOM.Iterable", "ES2022"], | ||
"types": ["@remix-run/node", "vite/client"], | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"jsx": "react-jsx", | ||
"moduleResolution": "Bundler", | ||
"resolveJsonModule": true, | ||
"target": "ES2022", | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"allowJs": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"~/*": ["./app/*"] | ||
}, | ||
|
||
// Remix takes care of building everything in `remix build`. | ||
"noEmit": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.