diff --git a/x/examples/outline-connectivity-app/README.md b/x/examples/outline-connectivity-app/README.md index 10708c19..560f50a0 100644 --- a/x/examples/outline-connectivity-app/README.md +++ b/x/examples/outline-connectivity-app/README.md @@ -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 diff --git a/x/examples/outline-connectivity-app/package.json b/x/examples/outline-connectivity-app/package.json index cf26addb..1652a117 100644 --- a/x/examples/outline-connectivity-app/package.json +++ b/x/examples/outline-connectivity-app/package.json @@ -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": { @@ -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": [ diff --git a/x/examples/outline-connectivity-app/shared_backend/package.json b/x/examples/outline-connectivity-app/shared_backend/package.json index 25acb1e3..6ad59850 100644 --- a/x/examples/outline-connectivity-app/shared_backend/package.json +++ b/x/examples/outline-connectivity-app/shared_backend/package.json @@ -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" } } diff --git a/x/examples/outline-connectivity-app/yarn.lock b/x/examples/outline-connectivity-app/yarn.lock index fbad2c9e..fef74a6c 100644 --- a/x/examples/outline-connectivity-app/yarn.lock +++ b/x/examples/outline-connectivity-app/yarn.lock @@ -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" @@ -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