From 14aeb6a5dab9995a48aee4c195a5fcf2141607e8 Mon Sep 17 00:00:00 2001 From: alexeh Date: Sat, 11 May 2024 09:14:52 +0300 Subject: [PATCH] Create monorepo --- api/README.md | 30 +++++++++++++++++++++++++++++- api/package.json | 2 +- client/package.json | 2 +- client/pnpm-workspace.yaml | 6 ------ package.json | 9 +++++++++ pnpm-workspaces.yaml | 3 +++ 6 files changed, 43 insertions(+), 9 deletions(-) delete mode 100644 client/pnpm-workspace.yaml create mode 100644 package.json create mode 100644 pnpm-workspaces.yaml diff --git a/api/README.md b/api/README.md index 7bef83f6..f50be280 100644 --- a/api/README.md +++ b/api/README.md @@ -1 +1,29 @@ -4-GROWTH API +# 4-GROWTH API + +This project is built with NestJS. + +## NestJS Version + +The project uses NestJS version 10.0.0. + +## Package Manager + +The project uses `pnpm` as the package manager. + +## Node Version + +The project uses Node.js version 20.10.0 as specified in the `.nvmrc` file. + +## Continuous Integration + +The project uses GitHub Actions for continuous integration. The workflow for API tests is defined in `.github/workflows/api-tests.yml`. This workflow runs end-to-end tests on every push to the `api` directory and can also be manually triggered. + +## Scripts + +Here are some of the npm scripts that you can run: + +- `pnpm build`: Compiles the TypeScript code +- `pnpm start`: Starts the application +- `pnpm start:dev`: Starts the application in watch mode +- `pnpm test`: Runs the tests +- `pnpm test:e2e`: Runs the end-to-end tests \ No newline at end of file diff --git a/api/package.json b/api/package.json index da277e0f..9744ac12 100644 --- a/api/package.json +++ b/api/package.json @@ -1,5 +1,5 @@ { - "name": "api", + "name": "4-growth-api", "version": "0.0.1", "description": "", "author": "", diff --git a/client/package.json b/client/package.json index 4cb4d4e5..2cc640d8 100644 --- a/client/package.json +++ b/client/package.json @@ -1,5 +1,5 @@ { - "name": "4-growth", + "name": "4-growth-client", "version": "0.1.0", "private": true, "scripts": { diff --git a/client/pnpm-workspace.yaml b/client/pnpm-workspace.yaml deleted file mode 100644 index 291c01fd..00000000 --- a/client/pnpm-workspace.yaml +++ /dev/null @@ -1,6 +0,0 @@ -packages: - # include packages in subfolders (e.g. apps/ and packages/) - - "apps/**" - - 'packages/**' - # if required, exclude some directories - - '!**/test/**' \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000..a6a482a4 --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "4-growth", + "private": true, + "scripts": { + "install": "pnpm install", + "start:api": "pnpm --filter 4-growth-api run start", + "start:client": "pnpm --filter 4-growth-client run dev" + } +} diff --git a/pnpm-workspaces.yaml b/pnpm-workspaces.yaml new file mode 100644 index 00000000..1fb2fc1f --- /dev/null +++ b/pnpm-workspaces.yaml @@ -0,0 +1,3 @@ +packages: + - 'api/**' + - 'client/**' \ No newline at end of file