@nx/remix 19.6.0-beta.0 → 19.6.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/generators/application/application.impl.js +5 -0
- package/src/generators/application/files/{common → nx-welcome/claimed}/app/nx-welcome.tsx__tmpl__ +191 -211
- package/src/generators/application/files/nx-welcome/not-configured/app/nx-welcome.tsx__tmpl__ +866 -0
- package/src/generators/application/files/nx-welcome/unclaimed/app/nx-welcome.tsx__tmpl__ +864 -0
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/application/files/common/README.md__tmpl__ +0 -54
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Welcome to Nx + Remix!
|
|
2
|
-
|
|
3
|
-
- [Remix Docs](https://remix.run/docs)
|
|
4
|
-
- [Nx Docs](https://nx.dev)
|
|
5
|
-
|
|
6
|
-
## Development
|
|
7
|
-
|
|
8
|
-
From your terminal:
|
|
9
|
-
|
|
10
|
-
```sh
|
|
11
|
-
npx nx dev <%= projectName %>
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
This starts your app in development mode, rebuilding assets on file changes.
|
|
15
|
-
|
|
16
|
-
## Deployment
|
|
17
|
-
|
|
18
|
-
First, build your app for production:
|
|
19
|
-
|
|
20
|
-
```sh
|
|
21
|
-
npx nx build <%= projectName %>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Then run the app in production mode:
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
npx nx start <%= projectName %>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Now you'll need to pick a host to deploy it to.
|
|
31
|
-
|
|
32
|
-
### DIY
|
|
33
|
-
|
|
34
|
-
If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
|
|
35
|
-
|
|
36
|
-
Make sure to deploy the output of `remix build`
|
|
37
|
-
|
|
38
|
-
- `packages/<%= projectName %>/build/`
|
|
39
|
-
- `packages/<%= projectName %>/public/build/`
|
|
40
|
-
|
|
41
|
-
### Using a Template
|
|
42
|
-
|
|
43
|
-
When you ran `npx create-remix@latest` there were a few choices for hosting. You can run that again to create a new project, then copy over your `app/` folder to the new project that's pre-configured for your target server.
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
cd ..
|
|
47
|
-
# create a new project, and pick a pre-configured host
|
|
48
|
-
npx create-remix@latest
|
|
49
|
-
cd my-new-remix-app
|
|
50
|
-
# remove the new project's app (not the old one!)
|
|
51
|
-
rm -rf app
|
|
52
|
-
# copy your app over
|
|
53
|
-
cp -R ../my-old-remix-app/app app
|
|
54
|
-
```
|