Skip to content

Commit

Permalink
Use pnpm as a package manager
Browse files Browse the repository at this point in the history
[pnpm](https://github.com/pnpm/pnpm) is a package manager optimized for monorepos.
It is faster than NPM and consumes less disk storage than Yarn.

Disk consumption:
- Yarn
```sh
$ du -sh ~/workspace/acre/acre
2.2G    /Users/jakub/workspace/acre/acre
```
- pnpM
```sh
$  du -sh ~/workspace/acre/acre
875M    /Users/jakub/workspace/acre/acre
```

To install pnpm with Homebrew run `brew install pnpm`, for other installation options
please see the [documentation](https://pnpm.io/installation).

To install the packages dependencies run:
```sh
pnpm install
```
  • Loading branch information
nkuba committed Nov 23, 2023
1 parent 530bb86 commit fabc0c2
Show file tree
Hide file tree
Showing 4 changed files with 15,915 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ Bitcoin Liquid Staking

## Development

### pnpm

This project uses [pnpm](https://pnpm.io/) as a package manager.

#### Install

To install pnpm with Homebrew run `brew install pnpm`, for other installation options
please see the [documentation](https://pnpm.io/installation).

#### Package Dependencies

To install the packages dependencies run:
```sh
pnpm install
```

### Pre-commit Hooks

Developers are encouraged to use [pre-commit](https://pre-commit.com/) hooks to
Expand Down Expand Up @@ -34,3 +50,4 @@ pre-commit run --all-files
# Execute hooks for specific files (e.g. Acre.sol):
pre-commit run --files ./core/contracts/Acre.sol
```

Loading

0 comments on commit fabc0c2

Please sign in to comment.