-
Notifications
You must be signed in to change notification settings - Fork 61
Isolate demos folder
#784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LucDeCaf
wants to merge
80
commits into
main
Choose a base branch
from
isolate-demos
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Isolate demos folder
#784
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
3f45e44
create scripts for managing demos
LucDeCaf 810d3d8
add demos/**/package.json.bak to gitignore
LucDeCaf 5bc741a
fix spelling
LucDeCaf f0b5c13
apply scripts to react-supabase-todolist + add tsconfig override
LucDeCaf b5e39dc
remove references from react-supabase-todolist/tsconfig.json
LucDeCaf d368c11
run use latest on react supabase todolist
LucDeCaf 18a900f
add script to split references out of tsconfig
LucDeCaf 74dd68b
cleanup
LucDeCaf 95f2bc5
isolate example-node
LucDeCaf db5f592
add gitignore to example-node
LucDeCaf c5d22c9
isolate example-vite and example-vite-encryption
LucDeCaf 7f664ee
isolate react-supabase-todolist family of demos
LucDeCaf 8db8d07
gen overrides for react-supabase-todolist demos
LucDeCaf f0b6324
isolate example-webpack
LucDeCaf ddbbb94
isolate example-vue
LucDeCaf 45f3b42
update scripts to work better with workspaces
LucDeCaf 84d8c85
update tsconfigs and package.jsons
LucDeCaf 34296fd
fix rn bundling not working properly
LucDeCaf 3fc0d6e
fix react package test
LucDeCaf cb00fed
actually fix react test
LucDeCaf c373280
further debugging of this project
LucDeCaf 181ecbb
update lockfiles and demo test script
LucDeCaf d217a1d
update script with more error logging
LucDeCaf b2dfc80
update scripts + update django demo + fix tsconfig.workspace.json han…
LucDeCaf f102635
consolidate tsconfig.workspace.jsons into toplevel tsconfig.demo.json
LucDeCaf b7ffcea
upgrade packages on demo test
LucDeCaf a546d55
specify cwd in pnpm upgrade
LucDeCaf 341a5cc
update pnpm workspaces and isolated-demo-test script
LucDeCaf 80d74c3
Update react tests to properly capture some errors
LucDeCaf 3aefd18
update react-native-supabase-group-chat build config to match behavio…
LucDeCaf 1c251e9
convert `demos-use-latest.ts` into `bump-demo-packages.ts`
LucDeCaf 371fe71
Migrate old PowerChat demo to use newer package versions and features
LucDeCaf c670e18
Fix fonts breaking on android
LucDeCaf 080f9b3
Update lockfile
LucDeCaf d6c361f
Formatting
LucDeCaf 206833b
Clean up noise
LucDeCaf 6a442a0
Expo doctor
LucDeCaf cc1757f
Final parity changes
LucDeCaf 2bb871d
Use pnpm v9
LucDeCaf f2fd930
Final changes
LucDeCaf f21dacd
Move lib to library, since Prettier was struggling to detect files
LucDeCaf 056cf87
Merge branch 'isolate-demos' into 'chore/migrate-powerchat-demo' and …
LucDeCaf 6def8e6
update lockfile post-merge
LucDeCaf 94fbcbb
add dotenv as dedicated dev dependency and use async iterator polyfill
LucDeCaf 6807713
Merge pull request #789 from powersync-ja/chore/migrate-powerchat-demo
LucDeCaf dc22c20
Update demo to work in new workspace config
LucDeCaf 13205df
Update demo to work in new workspace config
LucDeCaf 52a83fc
Update opsqlite demo proj to work better w/ monorepos
LucDeCaf 71e5e5c
Merge branch 'isolate-demos' of github.com:powersync-ja/powersync-js …
LucDeCaf 192aea7
Update ios dir to work in new workspace config
LucDeCaf be20288
Update ios script to install Pods before running
LucDeCaf 4472b0c
Un-update install script, update readme
LucDeCaf 4d0703c
Add angular demo lockfile
LucDeCaf e350018
Add lockfiles and project configs for electron and capacitor demos
LucDeCaf 18d39a7
Add lockfile + resolve phantom deps
LucDeCaf 19f8b1b
Freeze tanstack db versions due to breaking API changes between minor…
LucDeCaf 53d83c9
Add lockfile
LucDeCaf 9c262f3
Update READMEs to reflect new way of using demos
LucDeCaf 1b0b77c
Update example-electron-node README and pnpm config
LucDeCaf 0267713
Merge branch 'main' into 'isolate-demos'
LucDeCaf 34c2478
Update global lockfile post-merge
LucDeCaf 595f01d
Update tests to install Playwright dependencies
LucDeCaf e088e7d
Remove demo lockfiles from Git tracking
LucDeCaf 1c13ba3
Fix incorrectly resolved version changes
LucDeCaf 981e150
Remove unneeded metro configs
LucDeCaf 33c2884
Update scripts and use tsc instead of tsx
LucDeCaf ee6690a
Update demo script documentation and add `pnpm demos:update` script
LucDeCaf 67c6a37
Add timeout to failing test
LucDeCaf 80c3199
Merge branch 'main' into isolate-demos
LucDeCaf ae64cc8
Fix reverted wa-sqlite versions
LucDeCaf c52715e
Fix reverted react-native-quick-sqlite versions
LucDeCaf 50d8d99
Update lockfile
LucDeCaf 8815270
Merge branch 'main' into isolate-demos
LucDeCaf c0f623d
Remove unneeded `pnpm upgrade` call
LucDeCaf 98762d7
Revert accidental package version change
LucDeCaf b6a7ec9
Update demo packages and update script
LucDeCaf 21fbf58
Final final touches
LucDeCaf b94c29f
Remove comment
LucDeCaf ff2da74
Update demo packages, update scripts
LucDeCaf 6d87bd9
Update bump-demo-script.ts
LucDeCaf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| **/assets/** | ||
| **/bin/** | ||
| **/ios/** | ||
| demos/**/pnpmfile.cjs | ||
|
|
||
| pnpm-lock.yaml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| packages: | ||
| - . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| @journeyapps:registry=https://registry.npmjs.org/ | ||
| @journeyapps:registry=https://registry.npmjs.org/ | ||
| node-linker=hoisted |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| packages: | ||
| - . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN | ||
| include ':capacitor-android' | ||
| project(':capacitor-android').projectDir = new File('../../../node_modules/@capacitor/android/capacitor') | ||
| project(':capacitor-android').projectDir = new File('../node_modules/.pnpm/@capacitor+android@7.4.4_@capacitor+core@7.4.4/node_modules/@capacitor/android/capacitor') | ||
|
|
||
| include ':capacitor-community-sqlite' | ||
| project(':capacitor-community-sqlite').projectDir = new File('../../../node_modules/@capacitor-community/sqlite/android') | ||
| project(':capacitor-community-sqlite').projectDir = new File('../node_modules/.pnpm/@capacitor-community+sqlite@7.0.2_@capacitor+core@7.4.4/node_modules/@capacitor-community/sqlite/android') | ||
|
|
||
| include ':capacitor-splash-screen' | ||
| project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/@capacitor/splash-screen/android') | ||
| project(':capacitor-splash-screen').projectDir = new File('../node_modules/.pnpm/@capacitor+splash-screen@7.0.3_@capacitor+core@7.4.4/node_modules/@capacitor/splash-screen/android') | ||
|
|
||
| include ':powersync-capacitor' | ||
| project(':powersync-capacitor').projectDir = new File('../../../packages/capacitor/android') | ||
| project(':powersync-capacitor').projectDir = new File('../node_modules/.pnpm/@powersync+capacitor@0.1.3_@capacitor-community+sqlite@7.0.2_@capacitor+core@7.4.4__@powersyn_smncg5wuctchvueg7u47nvgl4i/node_modules/@powersync/capacitor/android') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| packages: | ||
| - . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node-linker=hoisted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| packages: | ||
| - . | ||
| onlyBuiltDependencies: | ||
| - better-sqlite3 | ||
| - electron |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| declare module 'better-sqlite3'; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,21 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ES6", | ||
| "allowJs": true, | ||
| "module": "ESNext", | ||
| "skipLibCheck": true, | ||
| "noImplicitAny": true, | ||
| "sourceMap": true, | ||
| "baseUrl": ".", | ||
| "outDir": "dist", | ||
| "moduleResolution": "bundler", | ||
| "paths": { | ||
| "*": ["node_modules/*"] | ||
| } | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "references": [ | ||
| { | ||
| "path": "../../packages/node" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| "compilerOptions": { | ||
| "target": "ES6", | ||
| "allowJs": true, | ||
| "module": "ESNext", | ||
| "skipLibCheck": true, | ||
| "noImplicitAny": true, | ||
| "sourceMap": true, | ||
| "baseUrl": ".", | ||
| "outDir": "dist", | ||
| "moduleResolution": "bundler", | ||
| "paths": { | ||
| "*": [ | ||
| "node_modules/*" | ||
| ] | ||
| } | ||
| }, | ||
| "include": [ | ||
| "src/**/*" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node-linker=hoisted |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use
@types/better-sqlite3for this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, it looks like we need to use

"moduleResolution": "bundler"intsconfig.json, which causes the following error when trying to run the project (even when installing@types/better-sqlite3: