Skip to content

Commit 0b40bdd

Browse files
committed
scripts
1 parent 34a8a56 commit 0b40bdd

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -340,22 +340,13 @@ Missing features that aren't currently planned:
340340
In one terminal, run:
341341

342342
```sh
343-
npm install
344-
cd example
345-
npm install
346-
# Involves signing into Convex if necessary and deploying to a Convex.
347-
npm run dev:convex
343+
npm run setup
344+
npm run example
348345
```
349346

350-
And in another terminal, run the frontend:
351-
352-
```sh
353-
cd example
354-
npm run dev:frontend
355-
```
356-
357-
Or both:
347+
To make changes to the component and rebuild automatically:
358348

359349
```sh
350+
npm run setup
360351
npm run dev
361352
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
],
2121
"type": "module",
2222
"scripts": {
23-
"example": "npm run setup && cd example && npm run dev",
23+
"example": "cd example && npm run dev",
2424
"dev": "run-p 'example' 'build:watch'",
25-
"setup": "npm i && npm run build && cd example && npm i",
25+
"setup": "npm i && npm run build && cd example && npm i && npx convex dev --once",
2626
"build": "npm run build:esm && npm run build:cjs",
2727
"build:watch": "cd src && npx chokidar '../tsconfig.json' '*.ts' 'blocknote/**/*.ts' 'tiptap/**/*.ts' 'react/**/*.ts' 'component/**/*.ts' 'client/**/*.ts' -c 'npm run build' --initial",
2828
"build:esm": "tsc --project ./esm.json && npm run copy:dts:esm && echo '{\\n \"type\": \"module\"\\n}' > dist/esm/package.json",

0 commit comments

Comments
 (0)