Skip to content

Commit

Permalink
refactor: create separate directories for UIs
Browse files Browse the repository at this point in the history
I will now have multiple UIs to interact with the same underlying data.
I figured keeping everything in a monorepo would be better for now. If I
need to break out into separate repositories, I will do so in the
future.
  • Loading branch information
nicholaschiang committed Nov 23, 2024
1 parent 3fae646 commit eeea807
Show file tree
Hide file tree
Showing 830 changed files with 74 additions and 27 deletions.
50 changes: 37 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
pull_request:
merge_group:

defaults:
run:
working-directory: ./remix-ui

jobs:
lint:
name: ESLint
Expand All @@ -17,14 +21,19 @@ jobs:

- name: Checkout repo
uses: actions/checkout@v3


- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Download deps
Expand Down Expand Up @@ -52,13 +61,18 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Download deps
Expand All @@ -80,13 +94,18 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Download deps
Expand All @@ -107,13 +126,18 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Cache cypress binary
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
branches:
- main

defaults:
run:
working-directory: ./remix-ui

jobs:
deploy:
name: Deploy
Expand All @@ -12,13 +16,18 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Download deps
Expand Down
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
- main
- '*.x'

defaults:
run:
working-directory: ./remix-ui

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
Expand All @@ -34,13 +38,18 @@ jobs:
with:
fetch-depth: 0

- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Download deps
Expand Down Expand Up @@ -74,13 +83,18 @@ jobs:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

- name: Get package manager version
id: get-pnpm-version
run: echo "version=$(cat package.json | jq -r .packageManager)" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
version: ${{ steps.get-pnpm-version.outputs.version }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json
node-version-file: remix-ui/package.json
cache: pnpm

- name: Download deps
Expand Down
10 changes: 5 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
{
"replacements": [
{
"files": ["package.json"],
"files": ["remix-ui/package.json"],
"from": "\"version\": \".*\"",
"to": "\"version\": \"${nextRelease.version}\"",
"results": [
{
"file": "package.json",
"file": "remix-ui/package.json",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
Expand All @@ -29,12 +29,12 @@
"countMatches": true
},
{
"files": ["pyproject.toml"],
"files": ["data-collection/pyproject.toml"],
"from": "^version = \".*\"",
"to": "version = \"${nextRelease.version}\"",
"results": [
{
"file": "pyproject.toml",
"file": "data-collection/pyproject.toml",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
Expand All @@ -49,7 +49,7 @@
[
"@semantic-release/git",
{
"assets": ["package.json", "pyproject.toml", "CHANGELOG.md"],
"assets": ["remix-ui/package.json", "data-collection/pyproject.toml", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version}"
}
]
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit eeea807

Please sign in to comment.