Skip to content

Commit

Permalink
Merge pull request anoma#18 from heliaxdev/refactor/15-rust-wasm-type…
Browse files Browse the repository at this point in the history
…script-packages

Refactor Rust Wasm - Restructuring monorepo
  • Loading branch information
jurevans authored Mar 18, 2022
2 parents 36cb4ec + 49f4490 commit 19d98b5
Show file tree
Hide file tree
Showing 199 changed files with 12,950 additions and 5,667 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy-wallet-at-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
paths:
- "anoma-wallet/**"
- "packages/anoma-wallet/**"
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,17 +13,21 @@ jobs:
uses: actions/checkout@v2

- name: Install dependencies
working-directory: ./anoma-wallet
working-directory: ./packages/anoma-wallet
run: npm install

- uses: jetli/wasm-pack-action@v0.3.0
with:
version: "v0.10.2"

- name: build the site
working-directory: ./anoma-wallet
working-directory: ./packages/anoma-wallet
run: CI=false npm run build

- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2.3
with:
publish-dir: "./anoma-wallet/build"
publish-dir: "./packages/anoma-wallet/build"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Merged PR ${{ github.event.number }} to main"
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/deploy-wallet-at-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy wallet preview to netlify at PR and pushes to it
on:
pull_request:
paths:
- "anoma-wallet/**"
- "packages/anoma-wallet/**"
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -11,17 +11,21 @@ jobs:
uses: actions/checkout@v2

- name: Install dependencies
working-directory: ./anoma-wallet
working-directory: ./packages/anoma-wallet
run: CI=false yarn

- uses: jetli/wasm-pack-action@v0.3.0
with:
version: "v0.10.2"

- name: build the site
working-directory: ./anoma-wallet
working-directory: ./packages/anoma-wallet
run: CI=false yarn build

- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2.3
with:
publish-dir: "./anoma-wallet/build"
publish-dir: "./packages/anoma-wallet/build"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "deploy ${{ github.event.number }} at creating a PR"
Expand Down
13 changes: 0 additions & 13 deletions .vscode/settings.json

This file was deleted.

24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# anoma-apps

This is the `anoma-apps` monorepo. Within it, you will find the following packages:

```bash
anoma-apps/
├── packages/
│ ├── anoma-wallet/ # Main wallet React App
│ ├── anoma-lib/ # Rust lib for generating WASM
│ └── key-management/ # Key management library
```

## Usage

Initialize `yarn` by issuing the following command:

```bash
# First run this command in the root directory of anoma-apps/:
yarn
```

Each package in the repo will have its own set of `yarn` scripts.

More documentation _TBD_
40 changes: 0 additions & 40 deletions anoma-lib/src/types/keypair.rs

This file was deleted.

3 changes: 0 additions & 3 deletions anoma-wallet/.eslintignore

This file was deleted.

This file was deleted.

Loading

0 comments on commit 19d98b5

Please sign in to comment.