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

[workspaces] Add lerna #72

Merged
merged 3 commits into from
Oct 5, 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- Unify device types across menu-bar, cli and eas-shared package. ([#66](https://github.com/expo/orbit/pull/66) by [@gabrieldonadel](https://github.com/gabrieldonadel))
- Upgrade react-native-svg to 13.14.0 and remove patch. ([#70](https://github.com/expo/orbit/pull/70) by [@gabrieldonadel](https://github.com/gabrieldonadel))
- Upgrade react-native to 0.72.5. ([#71](https://github.com/expo/orbit/pull/71) by [@gabrieldonadel](https://github.com/gabrieldonadel))
- Setup Lerna. ([#72](https://github.com/expo/orbit/pull/72) by [@gabrieldonadel](https://github.com/gabrieldonadel))

## 0.1.3 — 2023-09-21

Expand Down
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
- [node](https://nodejs.org/) (node 12 or higher is recommended)
- [yarn](https://yarnpkg.com/)
3. Install the Node packages (`yarn install`)
4. Inside the `packages/common-types` directory, run `yarn build`
5. Inside the `packages/eas-shared` directory, run `yarn build`
6. Inside the `apps/cli` directory run `yarn archive` to generate the standalone executable used by the `menu-bar`
7. Finally, run `yarn update-cli` inside the `apps/menu-bar` directory to update the local cli file
4. Build `common-types`, `eas-shared` and `cli` by running `yarn build` at the root of the project
5. Inside the `apps/cli` directory run `yarn archive` to generate the standalone executable used by the `menu-bar`
6. Finally, run `yarn update-cli` inside the `apps/menu-bar` directory to update the local cli file

> In step (6), if you are running Node 20, or another version of Node not supported by `pkg`, you can run `yarn archive:node18` instead
> In step (5), if you are running Node 20, or another version of Node not supported by `pkg`, you can run `yarn archive:node18` instead

## 🏎️ Start the Development environment

Expand Down
3 changes: 2 additions & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"clean": "rimraf build ./tsconfig.tsbuildinfo",
"prepare": "yarn run clean && yarn run build",
"watch": "tsc --watch --preserveWatchOutput",
"codesign": "codesign --options=runtime --sign \"Developer ID Application: 650 Industries, Inc. (C8D8QTF339)\" --entitlements ./macos/entitlements.plist --force ./dist/orbit-cli-arm64 ./dist/orbit-cli-x64"
"codesign": "codesign --options=runtime --sign \"Developer ID Application: 650 Industries, Inc. (C8D8QTF339)\" --entitlements ./macos/entitlements.plist --force ./dist/orbit-cli-arm64 ./dist/orbit-cli-x64",
"typecheck": "tsc"
},
"dependencies": {
"commander": "^10.0.1",
Expand Down
3 changes: 2 additions & 1 deletion apps/menu-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "react-native start",
"test": "jest",
"update-cli": "mkdir -p cli && cp -R ../cli/dist/ cli/",
"gql": "graphql-codegen --config codegen.ts"
"gql": "graphql-codegen --config codegen.ts",
"typecheck": "tsc"
},
"dependencies": {
"@apollo/client": "^3.8.1",
Expand Down
5 changes: 5 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.0",
"npmClient": "yarn"
}
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
"private": true,
"name": "monorepo",
"version": "1.0.0",
"workspaces": {
"packages": [
"apps/*",
"packages/*"
]
},
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"build": "lerna run build",
"watch": "lerna run watch --stream",
"typecheck": "lerna run typecheck",
"postinstall": "patch-package"
},
"dependencies": {
"@tsconfig/node12": "1.0.7"
},
"devDependencies": {
"lerna": "^7.3.0",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0"
}
Expand Down
1 change: 1 addition & 0 deletions packages/eas-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@expo/spawn-async": "^1.7.2",
"axios": "0.27.2",
"bplist-parser": "^0.3.0",
"common-types": "1.0.0",
"debug": "^4.3.4",
"env-paths": "2.2.0",
"exec-async": "2.2.0",
Expand Down
Loading