Package updates and related
This commit is contained in:
24
README.md
24
README.md
@@ -31,35 +31,45 @@
|
||||
|
||||
|
||||
# How to build and deploy SvelteKit:
|
||||
* Copy the contents of the "build" directory to ./npm_deploy/build/
|
||||
Copy the contents of the "build" directory to ./npm_deploy/build/
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
If this is just a quick build update then only the build directory needs to be copied (rsync).
|
||||
```bash
|
||||
rsync -vhrz --exclude 'node_modules' ~/OSIT_dev/ae_app_svelte_tailwind_skeleton/build/ ~/OSIT_dev/ae_env_node_app/npm_deploy/build/
|
||||
rsync -vhrz --exclude 'node_modules' ~/OSIT_dev/ae_app_svelte_tailwind_skeleton/build/ ~/OSIT_dev/ae_env_node_app/npm_deploy/build/ --delete
|
||||
|
||||
rsync -vhrz --exclude 'node_modules' ~/OSIT_dev/ae_app_svelte_tailwind_skeleton/build/ scott@linode.oneskyit.com:/srv/env/prod_aether_sveltekit/npm_deploy/build/
|
||||
rsync -vhrz ~/OSIT_dev/ae_env_node_app/npm_deploy/build/ scott@linode.oneskyit.com:/srv/env/prod_aether_sveltekit/npm_deploy/build/ --delete
|
||||
```
|
||||
|
||||
* Copy the new package.json file to ./npm_deploy/
|
||||
* Copy the root node_modules directory to ./npm_deploy/build/node_modules/ after running te omit dev command
|
||||
If this includes package updates we need to copy the new package.json. Manually copy the new package.json file to ./npm_deploy/. This also needs to be copied to the server.
|
||||
```bash
|
||||
# copy/paste, rsync, or cp
|
||||
```
|
||||
|
||||
Run the --omit dev to clear out the node_modules directory. Copy the root node_modules directory to ./npm_deploy/build/node_modules/ after running te omit dev command.
|
||||
```bash
|
||||
npm ci --omit dev
|
||||
```
|
||||
|
||||
* Run the npm update to fix the node_modules directory and package.json
|
||||
Everything should be ready to run on the development server and production server.
|
||||
|
||||
|
||||
# Rebuild the node_modules directory and manually install extra Svelte packages
|
||||
Run the npm update to fix the node_modules directory and package.json
|
||||
```bash
|
||||
npm update
|
||||
```
|
||||
|
||||
Other installs?:
|
||||
Are both still needed? I know at least one of these is. 2024-07-23
|
||||
```bash
|
||||
npm install -D svelte-highlight
|
||||
npm install --save-dev svelte-highlight
|
||||
npm install --save-dev typescript-svelte-plugin
|
||||
```
|
||||
|
||||
|
||||
# Set up and run
|
||||
## Build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user