You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This monorepo uses Yarn as it works well with React Native.
26
27
27
28
Install workspace dependencies
29
+
28
30
```bash
29
31
yarn install
30
32
```
31
33
32
34
Build packages
35
+
33
36
```bash
34
37
yarn build:packages
35
38
```
36
39
37
-
38
40
## Versioning
39
41
40
-
41
42
### Development Packages
42
-
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`.
43
+
44
+
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`.
43
45
44
46
### Production Packages
47
+
45
48
Pull requests should contain Changesets for changed packages.
46
49
47
50
Add changesets with
51
+
48
52
```Bash
49
53
yarn changeset add
50
54
```
51
55
52
-
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
56
+
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
53
57
54
58
## React Native Quick SQLite Development
55
59
56
-
Testing live development changes to `@journeyapps/react-native-quick-sqlite` will not work with standard `yarn link` commands. Metro does not work well with symlinks https://github.com/facebook/metro/issues/286.
60
+
Testing live development changes to `@journeyapps/react-native-quick-sqlite` will not work with standard `yarn link` commands. Metro does not work well with symlinks <https://github.com/facebook/metro/issues/286>.
57
61
58
62
The process of releasing development packages for `@journeyapps/react-native-quick-sqlite` for each change can be tedious and slow. A faster (and hackier) method is to use [mtsl](https://www.npmjs.com/package/mtsl) which will watch and copy the package into this workspace's `node_modules`.
59
63
60
64
```bash
61
65
npm install -g mtsl
62
66
```
67
+
63
68
```bash
64
69
mtsl add -s "[source path to your react-native-quick-sqlite repo folder]" -d "[this workspaces root node_modules folder]"/@journeyapps/react-native-quick-sqlite
65
70
```
@@ -68,15 +73,14 @@ mtsl add -s "[source path to your react-native-quick-sqlite repo folder]" -d "[t
- An extension of `packages/powersync-sdk-common` which provides React Native specific implementations of abstracted features.
23
+
24
+
# Development
25
+
26
+
## Git Submodules
27
+
28
+
After cloning this repo be sure to init the Git submodules
29
+
30
+
```bash
31
+
git submodule init && git submodule update
32
+
```
33
+
34
+
This monorepo uses Yarn as it works well with React native.
35
+
36
+
Install workspace dependencies
37
+
38
+
```bash
39
+
yarn install
40
+
```
41
+
42
+
Build packages
43
+
44
+
```bash
45
+
yarn build:packages
46
+
```
47
+
48
+
## Versioning
49
+
50
+
### Development Packages
51
+
52
+
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`.
53
+
54
+
### Production Packages
55
+
56
+
Pull requests should contain Changesets for changed packages.
57
+
58
+
Add changesets with
59
+
60
+
```Bash
61
+
yarn changeset add
62
+
```
63
+
64
+
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
65
+
66
+
## React Native Quick SQLite Development
67
+
68
+
Testing live development changes to `@journeyapps/react-native-quick-sqlite` will not with with standard `yarn link` commands. Metro does not work well with symlinks <https://github.com/facebook/metro/issues/286>.
69
+
70
+
The process of releasing development packages for `@journeyapps/react-native-quick-sqlite` for each change can be tedious and slow. A faster (and hackier) method is to use [mtsl](https://www.npmjs.com/package/mtsl) which will watch and copy the package into this workspace's `node_modules`.
71
+
72
+
```bash
73
+
npm install -g mtsl
74
+
```
75
+
76
+
```bash
77
+
mtsl add -s "[source path to your react-native-quick-sqlite repo folder]" -d "[this workspaces root node_modules folder]"/@journeyapps/react-native-quick-sqlite
0 commit comments