Skip to content

Commit fc8463b

Browse files
committed
Updated readme with Lerna documentation
1 parent f5c8860 commit fc8463b

File tree

4 files changed

+11
-30
lines changed

4 files changed

+11
-30
lines changed

devops/README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ The NestJS-BFF DevOps directory contains scripts, tooling, and documentation des
2727

2828
```bash
2929
# install dependencies for all sub projects (backend, cli, client), and a Docker MongoDB image
30-
31-
32-
3330
$ npm run install-all-with-docker
3431
```
3532

@@ -47,18 +44,12 @@ $ npm run start-all-with-docker
4744

4845
### Temporary
4946

50-
If you would like to develop and test updates to the companion Nestjs-bff packages, you can run the following commands to create temporary symlinks
51-
52-
```bash
53-
# Initialize the links. Run when pulling a fresh copy of the repo
54-
55-
$ npm run link-initialize
56-
```
47+
If you would like to develop and test updates to the companion Nestjs-bff packages, you can run the following commands to create symlinks
5748

5849
```bash
59-
# Creates a symlink to the local companion packages in the consuming node_modules folder. Run each time the links need refreshing
50+
# Symlink the packages for local development
6051

61-
$ npm run link-all
52+
$ npm run packages:link
6253
```
6354

6455
### Permanent

devops/lerna.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
{
22
"version": "0.4.0-alpha.0",
3-
"packages": [
4-
"../backend",
5-
"../cli",
6-
"../client",
7-
"../packages/*"
8-
],
3+
"packages": [".", "../backend", "../cli", "../client", "../packages/*"],
94
"npmClient": "npm",
105
"command": {
116
"publish": {
12-
"ignoreChanges": [
13-
"*.md"
14-
]
7+
"ignoreChanges": ["*.md"]
158
},
169
"bootstrap": {
17-
"npmClientArgs": [
18-
"--no-package-lock"
19-
]
10+
"npmClientArgs": ["--no-package-lock"]
2011
}
2112
}
2213
}

devops/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "nestjs-bff-devops",
4-
"version": "0.1.0",
4+
"version": "0.4.0",
55
"description": "A Nestjs Backend-For-Frontend with CLI",
66
"author": "ahrnee",
77
"license": "MIT",
@@ -17,15 +17,14 @@
1717
"install-cli": "cd ../cli && npm install && cd ..",
1818
"install-docker-mongodb": "cd ../backend && npm run install-docker-mongodb && cd ..",
1919
"install-client": "cd ../client && npm install && cd ..",
20-
"link-all": "cd ../backend && npm run link && cd ../cli && npm run link && cd ../client && npm run link",
21-
"link-initialize-all": "cd ../packages/global && npm run build-and-link && cd ../backend && npm run build-and-link",
2220
"start-all-with-docker": "concurrently --kill-others \"npm run start-docker-mongodb\" \"npm run start-backend\" \"npm run start-client\"",
2321
"start": "concurrently --kill-others \"npm run start-backend\" \"npm run start-client\"",
2422
"start-backend": "cd ../backend && npm run start",
25-
"start-bff-backend": "ts-node --project ../backend/tsconfig.json -r tsconfig-paths/register ../backend/src/main.ts",
23+
"start-bff-backend": "ts-node --project ../backend -r tsconfig-paths/register ../backend/src/main.ts",
2624
"start-docker-mongodb": "cd ../backend && npm run start-docker-mongodb",
2725
"start-client": "cd ../client && npm run start",
28-
"packages:publish": "tsc --build ../packages"
26+
"packages:link": "tsc --build ../packages && lerna bootstrap",
27+
"packages:publish": "tsc --build ../packages && lerna publish"
2928
},
3029
"dependencies": {},
3130
"devDependencies": {

packages/global/src/commands/auth/create-organization-member.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export class CreateOrganizationMemberCommand {
1212
public readonly displayName: string = '';
1313

1414
@IsString()
15-
@Length(8, 32)
15+
@Length(8, 64)
1616
public readonly password: string = '';
1717
}

0 commit comments

Comments
 (0)