You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,40 @@
2
2
3
3
Frontend for the [faustjs.org](https://faustjs.org/) website.
4
4
5
+
# Prerequisites
6
+
7
+
-[`nvm` (Node Version Manager)](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating)
8
+
- Cloned repository
9
+
10
+
## Getting started
11
+
12
+
```bash
13
+
$ nvm install # Install the correct version of node
14
+
$ corepack enable# Enable Corepack
15
+
$ corepack install # Install `pnpm` via Corepack
16
+
$ pnpm install # Install project dependencies via `pnpm`
17
+
$ pnpm dev # Start dev server; See `scripts` in `package.json` for more
18
+
```
19
+
20
+
## PNPM Package Manager
21
+
22
+
```bash
23
+
corepack enable
24
+
corepack install
25
+
```
26
+
27
+
This project users [pnpm](https://pnpm.io/). While not significantly different than `npm` here are some basic differences and I'd recommend you checkout the [`pnpm` docs](https://pnpm.io/) for more info.
28
+
29
+
-`npm run dev` => `pnpm dev` or `pnpm run dev` :: commands can be shortened, or use your muscle memory
30
+
-`npx` => `pnpx` or `pnpm dlx` :: either way it still works
31
+
-`pnpm update` :: a whole suite of [native tools](https://pnpm.io/cli/update) to manage dependencies. No need for 3rd party tools to update dependencies.
32
+
5
33
## Linting and Formatting
6
34
7
35
Linting - checks for potential errors and code style. i.e. eslint
8
-
Formatting - checks for spaces, line length, etc. i.e prittier
36
+
Formatting - checks for spaces, line length, etc. i.e prettier
9
37
10
-
Both are run against staged files on commit. If it's failing for a good reaason and you need to bypass you can use the `--no-verify` or `-n` flag. `git commit -nm "my message"`
38
+
Both are run against staged files on commit. If it's failing for a good reason and you need to bypass you can use the `--no-verify` or `-n` flag. `git commit -nm "my message"`
0 commit comments