-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
We have a fixture which is used for testing generated features. Historically we use it as vercel template fixture. Here migrated it to react-router and removed vercel stuff from it.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
/node_modules/ | ||
|
||
# React Router | ||
/.react-router/ | ||
/build/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
force=true | ||
loglevel=error | ||
audit=false | ||
fund=false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* We use mjs extension as constants in this file is shared with the build script | ||
* and we use `node --eval` to extract the constants. | ||
*/ | ||
export const assetBaseUrl = "/assets/"; | ||
|
||
/** | ||
* @type {import("@webstudio-is/image").ImageLoader} | ||
*/ | ||
export const imageLoader = ({ src }) => { | ||
return src; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"dependencies": { | ||
"@webstudio-is/image": "workspace:*", | ||
"@webstudio-is/react-sdk": "workspace:*", | ||
"@webstudio-is/sdk": "workspace:*", | ||
"@webstudio-is/sdk-components-animation": "workspace:*", | ||
"@webstudio-is/sdk-components-react": "workspace:*", | ||
"@webstudio-is/sdk-components-react-radix": "workspace:*", | ||
"@webstudio-is/sdk-components-react-router": "workspace:*", | ||
"webstudio": "workspace:*" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"customConditions": ["webstudio"] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from "vite"; | ||
// @ts-ignore | ||
import { reactRouter } from "@react-router/dev/vite"; | ||
// @ts-ignore | ||
import { dedupeMeta } from "./proxy-emulator/dedupe-meta"; | ||
|
||
export default defineConfig({ | ||
plugins: [reactRouter(), dedupeMeta], | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* We use mjs extension as constants in this file is shared with the build script | ||
* and we use `node --eval` to extract the constants. | ||
*/ | ||
export const assetBaseUrl = "/assets/"; | ||
|
||
/** | ||
* @type {import("@webstudio-is/image").ImageLoader} | ||
*/ | ||
export const imageLoader = ({ src }) => { | ||
return src; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { type RouteConfig } from "@react-router/dev/routes"; | ||
import { flatRoutes } from "@react-router/fs-routes"; | ||
|
||
export default flatRoutes() satisfies RouteConfig; |