Skip to content

Commit

Permalink
experimental: add docker template to CLI (#4744)
Browse files Browse the repository at this point in the history
Here added first react-router template which additionally adds docker
support. For now only adds Dockerfile + .dockerignore. Will add support
for image transforms separately.

Mostly duplicated defaults template

- replaced remix packages with react-router ones
- replaced `return redirect()` with `throw redirect()`

The template for now is self contained. Will split base react-router
template when will add more integrations.
  • Loading branch information
TrySound authored Jan 19, 2025
1 parent 7f114f4 commit 1f48985
Show file tree
Hide file tree
Showing 51 changed files with 2,668 additions and 77 deletions.
4 changes: 4 additions & 0 deletions fixtures/react-router-docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.react-router
build
node_modules
README.md
6 changes: 6 additions & 0 deletions fixtures/react-router-docker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
/node_modules/

# React Router
/.react-router/
/build/
3 changes: 3 additions & 0 deletions fixtures/react-router-docker/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
force=true
# to support using NODE_OPTIONS for windows tests
shell-emulator=true
3 changes: 3 additions & 0 deletions fixtures/react-router-docker/.template/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
force=true
# to support using NODE_OPTIONS for windows tests
shell-emulator=true
12 changes: 12 additions & 0 deletions fixtures/react-router-docker/.template/package.json
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:*"
}
}
5 changes: 5 additions & 0 deletions fixtures/react-router-docker/.template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"customConditions": ["webstudio"]
}
}
3 changes: 3 additions & 0 deletions fixtures/react-router-docker/.webstudio/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"projectId": "d845c167-ea07-4875-b08d-83e97c09dcce"
}
Loading

0 comments on commit 1f48985

Please sign in to comment.