add build command to readme
This commit is contained in:
parent
94bdd44192
commit
149c235cc3
21
README.md
21
README.md
@ -35,6 +35,20 @@ Snort supports the following NIP's:
|
|||||||
### Running
|
### Running
|
||||||
|
|
||||||
This repository is a yarn workspace. To install dependencies, run `yarn` from the project root.
|
This repository is a yarn workspace. To install dependencies, run `yarn` from the project root.
|
||||||
|
|
||||||
|
To build the `nostr` package, use either
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ yarn build
|
||||||
|
```
|
||||||
|
|
||||||
|
or, to automatically rebuild the `nostr` package if you are working on those files
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd packages/nostr
|
||||||
|
$ yarn watch
|
||||||
|
```
|
||||||
|
|
||||||
To run the application, use either
|
To run the application, use either
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@ -47,3 +61,10 @@ or
|
|||||||
$ cd packages/app
|
$ cd packages/app
|
||||||
$ yarn start
|
$ yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The `nostr` package must be built (this produces a `packages/nostr/dist` folder) in order to run the main application (`packages/app`).
|
||||||
|
|
||||||
|
If you encounter the below error, it indicates that the `nostr` package has not been built:
|
||||||
|
```
|
||||||
|
Module not found: Error: Can't resolve '@snort/nostr'
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user