Skip to content

Commit

Permalink
Mintter ❤️ Tamagui (#1355)
Browse files Browse the repository at this point in the history
- change the frontend structure
- set the foundation for Tamagui to style all Mintter apps
- update all build scripts with the new code structure
  • Loading branch information
horacioh authored Apr 5, 2023
1 parent d254e19 commit f84da56
Show file tree
Hide file tree
Showing 733 changed files with 23,733 additions and 72,751 deletions.
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use nix --max-jobs auto
watch_file shell.nix build/nix/**/*.nix

export TAMAGUI_TARGET="web"
# export GW_GRPC_ENDPOINT="https://gateway.mintter.com"
# export MINTTER_IS_GATEWAY="1"
export GW_GRPC_ENDPOINT="https://gateway.mintter.com"
export MINTTER_IS_GATEWAY="1"

export VITE_MINTTER_GATEWAY_URL="https://mintter.com"
export MINTTER_HOME_PUBID="bafy2bzacea346azbi4r5fxebdvz6wpkak7ati3cf5vywtruw4aabjeoi2332w"
Expand Down
35 changes: 10 additions & 25 deletions .github/workflows/audit-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:
- main
paths:
- '.github/workflows/audit-javascript.yml'
- '**/pnpm-lock.yaml'
- '**/yarn.lock'
- '**/package.json'
pull_request:
branches:
- main
paths:
- '.github/workflows/audit-javascript.yml'
- '**/pnpm-lock.yaml'
- '**/yarn.lock'
- '**/package.json'

concurrency:
Expand All @@ -29,29 +29,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
- name: Install Node.js
uses: actions/setup-node@v3
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
node-version: 19
cache: "yarn"

- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: audit
run: pnpm audit
run: yarn audit
26 changes: 3 additions & 23 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19
cache: "yarn"

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: 'Install native packages'
if: "matrix.config.os == 'ubuntu-latest'"
Expand Down
38 changes: 9 additions & 29 deletions .github/workflows/lint-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true

- name: Lint packages
run: pnpm lint

cache: "yarn"

- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

# - name: Lint packages
# run: yarn lint

- name: Format files (Prettier)
run: pnpm format
run: yarn format

# lint-go:
# runs-on: ubuntu-latest
Expand Down
52 changes: 6 additions & 46 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,30 +111,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19
cache: "yarn"

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: 'Install native packages'
if: "matrix.config.os == 'ubuntu-latest'"
Expand Down Expand Up @@ -320,30 +300,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19
cache: "yarn"

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: Generate static updater manifest
run:
Expand Down
52 changes: 6 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19
cache: "yarn"

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: 'Install native packages'
if: "matrix.config.os == 'ubuntu-latest'"
Expand Down Expand Up @@ -264,30 +244,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19
cache: "yarn"

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: Generate static updater manifest
run:
Expand Down
32 changes: 6 additions & 26 deletions .github/workflows/test-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 19
cache: "yarn"

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Install Dependencies
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: Build Frontend Shared packages
run: pnpm shared:build
# - name: Build Frontend Shared packages
# run: yarn shared:build

- name: Run Frontend packages tests
run: pnpm test
run: yarn test
6 changes: 3 additions & 3 deletions .github/workflows/test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ jobs:
run: |
mkdir -p plz-out/bin/backend
touch plz-out/bin/backend/mintterd-x86_64-unknown-linux-gnu
mkdir -p frontend/app/dist
mkdir -p frontend/apps/desktop/dist
- name: Mock Daemon
if: matrix.os == 'macos-latest'
run: |
mkdir -p plz-out/bin/backend
touch plz-out/bin/backend/mintterd-x86_64-apple-darwin
mkdir -p frontend/app/dist
mkdir -p frontend/apps/desktop/dist
- name: Mock Daemon
if: matrix.os == 'windows-latest'
run: |
mkdir plz-out/bin/backend
echo "" > plz-out/bin/backend/mintterd-x86_64-pc-windows-msvc.exe
mkdir frontend/app/dist
mkdir frontend/apps/desktop/dist
- name: Run tests
uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/udeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
mkdir -p plz-out/bin/backend
touch plz-out/bin/backend/mintterd-x86_64-unknown-linux-gnu
mkdir -p frontend/app/dist
mkdir -p frontend/apps/desktop/dist
- uses: actions-rs/cargo@v1
with:
command: install
Expand Down
Loading

0 comments on commit f84da56

Please sign in to comment.