mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-11 08:46:16 +00:00
refactor: app deployment
This commit is contained in:
45
README.md
45
README.md
@@ -1,5 +1,30 @@
|
||||
# Open StApps Monorepo
|
||||
|
||||
Refer to the [contribution guide](./CONTRIBUTING.md)
|
||||
|
||||
## Projects
|
||||
|
||||
### Apps
|
||||
|
||||
| Name | Version | License | Readme |
|
||||
| -------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------- |
|
||||
| Core | [](https://npmjs.com/package/@openstapps/app) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`frontend/app`](./frontend/app/README.md) |
|
||||
| Backend | [](https://npmjs.com/package/@openstapps/backend) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`backend/backend`](./backend/backend/README.md) |
|
||||
| Proxy | [](https://npmjs.com/package/@openstapps/proxy) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`backend/proxy`](./backend/proxy/README.md) |
|
||||
| Database | [](https://npmjs.com/package/@openstapps/database) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`backend/database`](./backend/database/README.md) |
|
||||
|
||||
### Libraries
|
||||
|
||||
| Name | Version | License | Readme |
|
||||
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
||||
| Core | [](https://npmjs.com/package/@openstapps/core) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`packages/core`](./packages/core/README.md) |
|
||||
| API | [](https://npmjs.com/package/@openstapps/api) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`packages/api`](./packages/api/README.md) |
|
||||
| API Plugin | [](https://npmjs.com/package/@openstapps/api-plugin) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`packages/api-plugin`](./packages/api-plugin/README.md) |
|
||||
| Logger | [](https://npmjs.com/package/@openstapps/logger) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`packages/logger`](./packages/logger/README.md) |
|
||||
| Core Tools | [](https://npmjs.com/package/@openstapps/core-tools) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [`packages/core-tools`](./packages/core-tools/README.md) |
|
||||
|
||||
## Publishing
|
||||
|
||||
## Remote caching
|
||||
|
||||
Turbo supports remote caching, which massively speeds up build processes.
|
||||
@@ -7,6 +32,7 @@ Turbo supports remote caching, which massively speeds up build processes.
|
||||
### Connecting to the remote cache locally
|
||||
|
||||
`.env.local`
|
||||
|
||||
```dotenv
|
||||
TURBO_API=http://example:3000
|
||||
TURBO_TEAM=openstapps
|
||||
@@ -16,11 +42,12 @@ TURBO_TOKEN=abc123
|
||||
### Connecting to the remote cache in GitLab Pipelines
|
||||
|
||||
You will need to define
|
||||
* `TURBO_API`
|
||||
* `TURBO_TEAM`
|
||||
* `TURBO_TOKEN`
|
||||
Like you did locally as described in [this](https://turbo.build/repo/docs/ci/gitlabci#remote-caching)
|
||||
guide.
|
||||
|
||||
- `TURBO_API`
|
||||
- `TURBO_TEAM`
|
||||
- `TURBO_TOKEN`
|
||||
Like you did locally as described in [this](https://turbo.build/repo/docs/ci/gitlabci#remote-caching)
|
||||
guide.
|
||||
|
||||
### Hosting a cache
|
||||
|
||||
@@ -29,10 +56,12 @@ Self-hosting via Docker is extremely simple, just follow
|
||||
or in short:
|
||||
|
||||
`.env`
|
||||
|
||||
```dotenv
|
||||
PORT=...
|
||||
TURBO_TOKEN=...
|
||||
```
|
||||
|
||||
```shell
|
||||
docker run --env-file=.env -p 3000:3000 fox1t/turborepo-remote-cache
|
||||
```
|
||||
@@ -42,11 +71,11 @@ docker run --env-file=.env -p 3000:3000 fox1t/turborepo-remote-cache
|
||||
#### Why is this package bloating the app?
|
||||
|
||||
```shell
|
||||
pnpm why -P -r --filter @openstapps/app PACKAGE
|
||||
pnpm why --prod -r --filter @openstapps/app PACKAGE
|
||||
```
|
||||
|
||||
#### Licenses
|
||||
|
||||
```shell
|
||||
pnpm licenses -P --filter PROJECT
|
||||
```
|
||||
pnpm licenses --prod --filter PROJECT
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user