Skip to content
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

add root watch commands for mobile platforms #108

Merged
merged 5 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions x/examples/outline-connectivity-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ If at any point you run into issues during development, try `yarn reset`.

`yarn watch`

If you just want to develop ios or android, you can run `yarn watch:ios` or `yarn watch:android` respectively.

### Build

> TODO: how to generate credentials
Expand Down
5 changes: 4 additions & 1 deletion x/examples/outline-connectivity-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "A cross-platform connectivity test app using the Outline SDK",
"devDependencies": {
"@yarnpkg/sdks": "^3.0.0-rc.48",
"concurrently": "^8.2.2",
"typescript": "^5.1.6"
},
"engines": {
Expand All @@ -24,7 +25,9 @@
"setup:vscode": "yarn sdks vscode",
"shared_backend": "yarn workspace shared_backend",
"shared_frontend": "yarn workspace shared_frontend",
"watch": "yarn workspaces foreach -piv run watch"
"watch": "yarn workspaces foreach -piv run watch",
"watch:android": "concurrently -n frontend,android 'yarn app_mobile watch:frontend' 'yarn workspaces foreach -piv run watch:android'",
"watch:ios": "concurrently -n frontend,ios 'yarn app_mobile watch:frontend' 'yarn workspaces foreach -piv run watch:ios'"
},
"version": "0.0.0",
"workspaces": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"clean": "rm -rf output",
"go": "go",
"setup": "yarn build",
"watch": "nodemon --exec 'yarn build' --ext go"
"watch": "nodemon --exec 'yarn build' --ext go",
"watch:android": "nodemon --exec 'yarn build:android' --ext go",
"watch:ios": "nodemon --exec 'yarn build:ios' --ext go"
}
}
21 changes: 21 additions & 0 deletions x/examples/outline-connectivity-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,26 @@ __metadata:
languageName: node
linkType: hard

"concurrently@npm:^8.2.2":
version: 8.2.2
resolution: "concurrently@npm:8.2.2"
dependencies:
chalk: ^4.1.2
date-fns: ^2.30.0
lodash: ^4.17.21
rxjs: ^7.8.1
shell-quote: ^1.8.1
spawn-command: 0.0.2
supports-color: ^8.1.1
tree-kill: ^1.2.2
yargs: ^17.7.2
bin:
conc: dist/bin/concurrently.js
concurrently: dist/bin/concurrently.js
checksum: 8ac774df06869773438f1bf91025180c52d5b53139bc86cf47659136c0d97461d0579c515d848d1e945d4e3e0cafe646b2ea18af8d74259b46abddcfe39b2c6c
languageName: node
linkType: hard

"console-control-strings@npm:^1.1.0":
version: 1.1.0
resolution: "console-control-strings@npm:1.1.0"
Expand Down Expand Up @@ -2608,6 +2628,7 @@ __metadata:
resolution: "outline_sdk_connectivity_test@workspace:."
dependencies:
"@yarnpkg/sdks": ^3.0.0-rc.48
concurrently: ^8.2.2
lit: ^2.7.6
typescript: ^5.1.6
languageName: unknown
Expand Down