Frontend for the faustjs.org website.
nvm
(Node Version Manager)- Cloned repository
$ nvm install # Install the correct version of node
$ corepack enable # Enable Corepack
$ corepack install # Install `pnpm` via Corepack
$ pnpm install # Install project dependencies via `pnpm`
$ pnpm dev # Start dev server; See `scripts` in `package.json` for more
corepack enable
corepack install
This project users pnpm. While not significantly different than npm
here are some basic differences and I'd recommend you checkout the pnpm
docs for more info.
npm run dev
=>pnpm dev
orpnpm run dev
:: commands can be shortened, or use your muscle memorynpx
=>pnpx
orpnpm dlx
:: either way it still workspnpm update
:: a whole suite of native tools to manage dependencies. No need for 3rd party tools to update dependencies.
Linting - checks for potential errors and code style. i.e. eslint Formatting - checks for spaces, line length, etc. i.e prettier
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"
Docs are MDX in the docs
folder. Here are a couple things you should know!
-
Our MDX supports Github Flavored Markdown (GFM).
-
Images should be stored along side the doc that uses them.
-
Shared Images can be stored in a shared folder @
docs/images
-
Callouts: These are similar to block quotes or an aside but for various warnings, info, pro times, etc.
-
Code Blocks:
-
Required
- Specify a language:
```js
or`const inlineCode = [1,2,3];{:js}`
- Commands for a users terminal =
bash
- env files =
ini
- JavaScript =
js
- TypeScript =
ts
- GraphQL =
gql
- JSON =
json
- For a full list see: https://shiki.style/languages
- Commands for a users terminal =
- Add line numbers to any complex code.
ini
andbash
don't need to show line numbers generally.```js showLineNumbers
- Complete files should have a file names
```js title="pages/_app.js
- Specify a language:
-
Optional
-
Lines can be highlighted in code blocks
```js {1,3-5}
. There are a variety of advanced highlighting methods, see: https://rehype-pretty.pages.dev/#highlight-lines -
Lines may be diffed in a code block:
```js console.log('hewwo') // [!code --] console.log('hello') // [!code ++] console.log('goodbye') ```
-
-