Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime): detach custom dependency, support node_module caching #1658

Merged
merged 15 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(server): support node_modules cache in server
  • Loading branch information
maslow committed Nov 27, 2023
commit 153f387407ad1b8744afb3a52bebb4a2fa16b3ae
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"Chakra",
"chatgpt",
"ciphertext",
"cloudbin",
"clsx",
"coll",
"compat",
Expand Down Expand Up @@ -105,6 +106,7 @@
"statefulset",
"storageclass",
"Streamable",
"stylelint",
"tailwindcss",
"tanstack",
"telepresence",
Expand All @@ -125,8 +127,7 @@
"withs",
"xmlparser",
"zcube",
"zustand",
"stylelint"
"zustand"
],
"i18n-ally.localesPaths": "web/public/locales",
"i18n-ally.enabledParsers": [
Expand Down
4 changes: 0 additions & 4 deletions runtimes/nodejs/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

set -e

# npm init
# echo "npm init -y"
# npm init -y

# skip init if $DEPENDENCIES is empty
if [ -z "$DEPENDENCIES" ]; then
echo "No dependencies to install."
Expand Down
14 changes: 6 additions & 8 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
- app storage management
- app log management
- app instance management
- app billing management
- app domain management
- app certificate management
- app metrics management

# Development

Expand All @@ -21,8 +25,6 @@
- [Telepresence](https://www.telepresence.io) for local development
- [MongoDb](https://docs.mongodb.com) basic use
- [MinIO](https://min.io) object storage
- [APISIX](https://apisix.apache.org) gateway
- [nestjs-i18n](https://nestjs-i18n.com/) i18n

## Prerequisites

Expand All @@ -44,15 +46,11 @@ telepresence connect -n laf-system
telepresence intercept laf-server -p 3000:3000 -e $(pwd)/.env

npm install
npm run watch
npm run dev
```

> Clean up

```bash
telepresence leave laf-server
```

## Troubleshooting

- `telepresence helm install` failed for `arm64 / Apple Chip` cluster, please upgrade your telepresence to `v2.11.1` or later.
```
Loading