Skip to content

Commit cd492a3

Browse files
Switch to pnpm (#62)
Faster and streamlines the initial repo setup. Also made some changes to improve running demos in "prod" mode to test on embedded devices.
2 parents 2a540d4 + a8d8c35 commit cd492a3

File tree

12 files changed

+4755
-749
lines changed

12 files changed

+4755
-749
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ build
1010
releases
1111
.tmp
1212
.env
13+
*.tgz
14+
# This project uses `pnpm` for package management
15+
package-lock.json

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict = true

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,28 @@ Solid.
1313
## Setup & Commands
1414

1515
```
16-
# Install renderer dependencies
17-
npm install
18-
19-
# Install example dependencies
20-
cd examples
21-
npm install
16+
# Install renderer + example dependencies
17+
pnpm install
2218
2319
# Build Renderer
24-
npm run build
20+
pnpm build
2521
2622
# Build Renderer (watch mode)
27-
npm run watch
23+
pnpm watch
2824
2925
# Run unit tests
30-
npm test
26+
pnpm test
3127
3228
# Build API Documentation (builds into ./docs folder)
33-
npm run typedoc
29+
pnpm typedoc
3430
3531
# Launch test examples in dev mode (includes Build Renderer (watch mode))
36-
npm start
32+
pnpm start
3733
3834
# Launch test examples in production mode
3935
# IMPORTANT: To run test examples on embedded devices that use older browser versions
4036
# you MUST run the examples in this mode.
41-
npm run prod
37+
pnpm start:prod
4238
```
4339

4440
## Test Examples

RELEASE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ git checkout main
1414
git stash -u
1515
1616
# Run the build once to make sure it completes without errors
17-
npm run build
17+
pnpm run build
1818
1919
# Mark the version update
2020
# This creates a new tagged commit for the version
21-
npm version <release-increment> # patch/minor/major
21+
pnpm version <release-increment> # patch/minor/major
2222
2323
# Publish the package to NPM
24-
npm publish --access public
24+
pnpm publish --access public
2525
2626
# Push version commit to github
2727
git push

examples/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ URL parameters.
66
## Setup
77

88
```
9-
npm install
9+
pnpm install
1010
1111
# Run code in dev mode (includes building Renderer in watch mode)
12-
npm start
12+
pnpm start
1313
1414
# Build and run in production mode (vite builds the bundle files in the ./dist folder)
15-
npm run build && npm run preview
15+
pnpm start:prod
1616
```
1717

1818
**Very Important:** When making changes to the Renderer, the Renderer must be
19-
re-built before you will see the changes appear. `npm start` will run the
19+
re-built before you will see the changes appear. `pnpm start` will run the
2020
Renderer's build process in watch mode, but a build of the Renderer must be
2121
run before building these examples in production mode.
2222

@@ -25,10 +25,10 @@ run before building these examples in production mode.
2525
cd ..
2626
2727
# Build once
28-
npm run build
28+
pnpm build
2929
3030
# Build in watch mode
31-
npm run watch
31+
pnpm watch
3232
```
3333

3434
## URL Params

0 commit comments

Comments
 (0)