Skip to content

Commit

Permalink
Use local version of lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Jan 18, 2022
1 parent 25e1e1b commit 10257e7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
18 changes: 7 additions & 11 deletions .github/CONTRIBUTING.MD
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,25 @@ The framework development environment uses [lerna](https://lerna.js.org/) for ma

**Steps:**
1. Install docker.
2. Install lerna
```
npm install -g lerna
```
3. Start the databases.
2. Start the databases.
```sh
npm run start-docker # use `npm run stop-docker` to stop them
```
4. Install the root dependencies.
3. Install the root dependencies.
```
npm install
```
5. Install the dependencies of each package and build each package.
4. Install the dependencies of each package and build each package.
```
lerna bootstrap
npm run bootstrap
```
6. Check code format.
5. Check code format.
```
npm run lint
```
7. Run all the tests.
6. Run all the tests.
```
lerna run --no-bail test
npm run test
```

Tests can also be run individually for each package using `npm run test` or `npm run dev:test` (watch mode) at the root of the package directory.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install global dependencies (lerna, pm2, codecov)
run: npm install -g [email protected] pm2 codecov
- name: Install global dependencies (pm2, codecov)
run: npm install -g pm2 codecov
- name: Install project dependencies
run: npm install
- name: Install package dependencies and build packages
run: lerna bootstrap
run: npm run bootstrap
- name: Create CLI symlink in the global folder
run: npm link
working-directory: packages/cli
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"start-docker": "docker-compose build && docker-compose up -d",
"stop-docker": "docker-compose down",
"bootstrap": "lerna bootstrap",
"clean": "lerna clean"
"clean": "lerna clean",
"test": "lerna run --no-bail test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 10257e7

Please sign in to comment.