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
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
A web site ([bloomlibrary.org](https://bloomlibrary.org)) for sharing literacy materials, especially templates for translation into minority languages.
1
+
A crowd-sourced web site ([bloomlibrary.org](https://bloomlibrary.org)) for sharing literacy materials, especially templates for translation into minority languages.
2
2
3
3
Language speakers find books in their own language, and book creators find shellbooks to translate. They upload these to share them with the world.
4
4
@@ -8,17 +8,16 @@ Language speakers find books in their own language, and book creators find shell
8
8
9
9
10
10
## Get dependencies
11
-
You'll need nodejs and yarn. Please install [volta](https://github.com/volta-cli/volta) so that you automatically use the correct version of nodejs and yarn that this project requires, as specified in `package.json`.
12
-
Finally, run `yarn` in a command line (e.g. in VSCode) to install the library dependencies.
11
+
This project uses [Vite+](https://viteplus.dev) (the `vp` CLI) to manage the Node.js runtime and the pnpm package manager, so you don't need to install those separately. Install `vp` (see the [Vite+ docs](https://viteplus.dev)), then run `vp install` in a command line (e.g. in VSCode). That selects the correct Node.js version (from `.node-version`) and the pinned pnpm (from `package.json`), and installs the library dependencies.
13
12
14
13
## Run locally
15
-
To run the site locally, do `yarn dev`
14
+
To run the site locally, do `vp run dev`
16
15
17
16
## Storybook
18
-
To see various components/scenarios, do `yarn storybook`
17
+
To see various components/scenarios, do `vp run storybook`
19
18
20
19
## Unit Tests
21
-
To run the unit tests, do `yarn test`
20
+
To run the unit tests, do `vp run test`
22
21
23
22
24
23
### Pointing to Prod, Dev, or Local
@@ -33,8 +32,8 @@ BloomLibrary depends upon on the [bloom-player](https://github.com/BloomBooks/bl
33
32
This is installed as a normal dependency. However, sometimes during the development process you may wish to run your own local build of bloom-player.
34
33
35
34
If you need to do that, there are a couple options:
36
-
### A) yarn link
37
-
One option is to ```yarn link``` ([docs](https://classic.yarnpkg.com/lang/en/docs/cli/link/)) to the local bloom-player source code on the same computer.
35
+
### A) pnpm link
36
+
One option is to ```pnpm link``` ([docs](https://pnpm.io/cli/link)) to the local bloom-player source code on the same computer.
38
37
39
38
### B) manual copy
40
39
Another option is to manually copy the bloom-player's `/dist` folder build to BloomLibrary's `node_modules/bloom-player/dist`.
0 commit comments