Skip to content

Commit a03ff43

Browse files
committed
chore: update demo docs and styles, add build task with watching for dev
1 parent 8bec78a commit a03ff43

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ Then in the root directory of the project:
4141
npx http-server -p 8000
4242
```
4343

44-
2. Navigate to `http://localhost:8000/docs/local-demo.html`
45-
44+
2. Navigate to `http://localhost:8000/docs`
4645

4746
## Local demo
4847

@@ -55,6 +54,8 @@ The `local-demo.html` file in this directory is a copy of the hosted demo that c
5554
1. Make sure the project is built:
5655
```bash
5756
npm run build:all
57+
# or for continuous watching:
58+
npm run dev:build
5859
```
5960

6061
2. Start up a local web server:

docs/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ h1 {
170170

171171
.pfem__why {
172172
color: #555;
173-
font-style: italic;
174173
margin: 1rem 0;
175174
padding: 1rem 1rem;
176175
padding-left: 1rem;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"build:browser": "esbuild src/index.browser.ts --bundle --format=esm --outfile=dist/index.browser.js --loader:.json=json",
2626
"build:assets": "mkdir -p dist/copydecks && cp -R copydecks/* dist/copydecks/",
2727
"build:all": "npm run build && npm run build:browser && npm run build:assets",
28+
"dev:build": "npm run build:assets && tsc -p tsconfig.json --watch & esbuild src/index.browser.ts --bundle --format=esm --outfile=dist/index.browser.js --loader:.json=json --watch",
2829
"test": "vitest run",
2930
"dev:test": "vitest"
3031
},

0 commit comments

Comments
 (0)