Skip to content

Commit 27f5cd9

Browse files
[Docs] Add Capacitor Entry (#755)
1 parent bc4eb49 commit 27f5cd9

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

demos/example-capacitor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PowerSync + Capacitor Example
22

3-
Example demonstrating the use of the [PowerSync SDK for Web](/packages/web/README.md) together with a Capacitor App.
3+
Example demonstrating the use of the [PowerSync SDK for Capacitor](/packages/capacitor/README.md) together with a Capacitor App.
44

55
To see it in action:
66

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
npm-debug.log*
1919

20+
docs/capacitor-sdk/
2021
docs/attachments-sdk/
2122
docs/common-sdk/
2223
docs/node-sdk/

docs/utils/packageMap.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
export const DOC_FOLDER = 'docs';
22

33
enum Packages {
4+
CapacitorSdk = 'capacitor-sdk',
45
ReactNativeSdk = 'react-native-sdk',
56
ReactSdk = 'react-sdk',
67
VueSdk = 'vue-sdk',
78
AttachmentsSdk = 'attachments-sdk',
89
WebSdk = 'web-sdk',
910
TanstackReactQuerySdk = 'tanstack-react-query-sdk',
10-
NodeSdk = 'node-sdk',
11+
NodeSdk = 'node-sdk'
1112
}
1213

1314
interface Package {
@@ -23,6 +24,13 @@ type PackageMap = {
2324
};
2425

2526
export const packageMap: PackageMap = {
27+
[Packages.CapacitorSdk]: {
28+
name: 'Capacitor SDK',
29+
dirName: Packages.CapacitorSdk,
30+
entryPoints: ['../packages/capacitor/src/'],
31+
tsconfig: '../packages/capacitor/tsconfig.json',
32+
id: Packages.CapacitorSdk
33+
},
2634
[Packages.ReactNativeSdk]: {
2735
name: 'React Native SDK',
2836
dirName: Packages.ReactNativeSdk,
@@ -71,5 +79,5 @@ export const packageMap: PackageMap = {
7179
entryPoints: ['../packages/node/src/index.ts'],
7280
tsconfig: '../packages/node/tsconfig.json',
7381
id: Packages.NodeSdk
74-
},
82+
}
7583
};

0 commit comments

Comments
 (0)