Skip to content

Commit

Permalink
Removed 2 of the pre- commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriztiaan committed Dec 12, 2024
1 parent cfddbcc commit 75863c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demos/angular-supabase-todolist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A step-by-step guide on Supabase<>PowerSync integration is available [here](http
### Notes

- The Angular development server (`pnpm serve`) doesn't support service worker applications
- For Angular, workers need to be configured when instantiating `PowerSyncDatabase`. To do this, copy the worker assets (`pnpm powersync-web copy-assets -o src/assets` - done automatically as `pre-` steps in this demo for serving and building) and ensure the worker paths are specified ([example here](./src/app/powersync.service.ts)).
- For Angular, workers need to be configured when instantiating `PowerSyncDatabase`. To do this, copy the worker assets (`pnpm powersync-web copy-assets -o src/assets` - done automatically in this demo for serving and building) and ensure the worker paths are specified ([example here](./src/app/powersync.service.ts)).

## Development Server

Expand Down
6 changes: 2 additions & 4 deletions demos/angular-supabase-todolist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
"scripts": {
"copy-assets": "pnpm powersync-web copy-assets -o src/assets",
"ng": "ng",
"preserve": "pnpm copy-assets",
"serve": "ng serve",
"serve": "pnpm copy-assets && ng serve",
"start": "http-server -p 8080 -c-1 dist/",
"prebuild": "pnpm copy-assets",
"build": "ng build",
"build": "pnpm copy-assets && ng build",
"format": "prettier --write .",
"test:build": "pnpm build",
"prewatch": "pnpm copy-assets",
Expand Down

0 comments on commit 75863c1

Please sign in to comment.