Skip to content

Commit

Permalink
[fe] Add top-level command alias for easier monorepo management (Myst…
Browse files Browse the repository at this point in the history
…enLabs#4804)

* Add top-level command alias for easier monorepo management

* Revert index guard
  • Loading branch information
Jordan-Mysten authored Sep 27, 2022
1 parent f0d5239 commit e5afcc0
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/explorer-client-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm --filter sui-explorer lint
run: pnpm explorer lint
- name: Unit Tests
run: pnpm --filter sui-explorer test:unit
run: pnpm explorer test:unit
- name: Build
run: pnpm --filter sui-explorer build
run: pnpm explorer build
end_to_end_static:
name: End-to-end tests (Static)
needs: diff
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Cypress
run: pnpm --filter sui-explorer exec cypress install
run: pnpm explorer exec cypress install
- name: Run e2e tests
uses: cypress-io/github-action@v4
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Cypress
run: pnpm --filter sui-explorer exec cypress install
run: pnpm explorer exec cypress install
- name: Run e2e tests
uses: cypress-io/github-action@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ts-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm --filter @mysten/sui.js test:unit
run: pnpm sdk test:unit
- name: Build
run: pnpm --filter @mysten/sui.js build
run: pnpm sdk build
end_to_end:
name: End-to-end tests
needs: diff
Expand All @@ -52,4 +52,4 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run e2e tests
run: pnpm dlx concurrently --kill-others --success command-1 'cargo run --bin sui-test-validator' 'pnpm --filter @mysten/sui.js test:e2e'
run: pnpm dlx concurrently --kill-others --success command-1 'cargo run --bin sui-test-validator' 'pnpm sdk test:e2e'
2 changes: 1 addition & 1 deletion .github/workflows/wallet-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm --filter sui-wallet-adapter build
run: pnpm wallet-adapter build
14 changes: 4 additions & 10 deletions .github/workflows/wallet-ext-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
needs: diff
if: needs.diff.outputs.isWalletExt == 'true'
runs-on: ubuntu-latest
env:
working-directory: ./apps/wallet
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -32,17 +30,13 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
working-directory: ${{env.working-directory}}
run: pnpm lint
run: pnpm wallet lint
- name: Test
working-directory: ${{env.working-directory}}
run: pnpm test
run: pnpm wallet test
- name: Build
working-directory: ${{env.working-directory}}
run: pnpm build:prod
run: pnpm wallet build:prod
- name: Package
working-directory: ${{env.working-directory}}
run: pnpm pack:zip
run: pnpm wallet pack:zip
- uses: actions/upload-artifact@v3
with:
name: wallet-extension
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
"name": "sui-monorepo",
"private": true,
"license": "Apache-2.0",
"scripts": {
"explorer": "pnpm --filter ./apps/explorer",
"wallet": "pnpm --filter ./apps/wallet",
"wallet-adapter": "pnpm --filter ./sdk/wallet-adapter",
"sdk": "pnpm --filter ./sdk/typescript",
"bcs": "pnpm --filter ./sdk/bcs"
},
"pnpm": {
"overrides": {
"node-notifier": "10.0.0",
Expand Down
4 changes: 2 additions & 2 deletions sdk/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ To get started you need to install [pnpm](https://pnpm.io/), then run the follow
```bash
# Install all dependencies
$ pnpm install
# Run the build for the TypeScript SDK and all of its dependencies.
$ pnpm --filter @mysten/sui.js... build
# Run the build for the TypeScript SDK
$ pnpm sdk build
```

## Type Doc
Expand Down

0 comments on commit e5afcc0

Please sign in to comment.