Skip to content

Commit

Permalink
refactor: separate tooling packages + eslint + tsconfig restructure (#…
Browse files Browse the repository at this point in the history
…138)

* refactor: separate tooling packages + eslint + tsconfig restructure

* chore: simplify github actions and workflows

* chore: setup-node using incorrect cache-dependency-path

* feat: expose a class name utility that can be consumed

* chore: remove unnecessary @react-aria/utils package
  • Loading branch information
PHILLIPS71 authored Jun 19, 2024
1 parent a0b1a36 commit 15250a9
Show file tree
Hide file tree
Showing 208 changed files with 2,764 additions and 3,243 deletions.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

111 changes: 0 additions & 111 deletions .eslintrc

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/build/action.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: '🔺️ '
name: "🔺️ "

runs:
using: 'composite'
using: "composite"
steps:
- name: '🔺️ Cache (store directory)'
- name: "🔺️ Cache (store directory)"
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: '🔺️ Cache'
- name: "🔺️ Cache"
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
Expand Down
9 changes: 0 additions & 9 deletions .github/actions/install/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/actions/lint/action.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ runs:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml

- name: '⚡️ Turbo'
shell: bash
run: pnpm add -g turbo
14 changes: 0 additions & 14 deletions .github/actions/test/action.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/type-check/action.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: '📝 PR Title'

on:
pull_request_target:
branches:
- main

jobs:
main:
Expand Down
30 changes: 12 additions & 18 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: '🔀 Pull Request'

on:
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: pull-request-${{ github.event.pull_request.number }}
Expand All @@ -20,28 +19,23 @@ jobs:
uses: actions/checkout@v4

- name: '💽️ Setup'
uses: ./.github/actions/setup
uses: ./.github/actions/setup-node

- name: '🔺️ Cache'
uses: ./.github/actions/cache
uses: ./.github/actions/cache-node

- name: '📦 Install'
uses: ./.github/actions/install

- name: '🏗️ Build'
uses: ./.github/actions/build
with:
COMMAND: 'build'
shell: bash
run: pnpm install --frozen-lockfile

- name: '🚨️ Lint'
uses: ./.github/actions/lint
shell: bash
run: pnpm lint

- name: '🎨 Format'
shell: bash
run: pnpm format

- name: '🦺 Type Check'
uses: ./.github/actions/type-check
with:
COMMAND: 'type-check'

- name: '🧪 Test'
uses: ./.github/actions/test
with:
COMMAND: 'test'
shell: bash
run: pnpm typecheck
36 changes: 13 additions & 23 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ name: '▶️ Push'

on:
push:
branches:
- main
- chore/**
- feat/**
- fix/**

concurrency:
group: push-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -24,28 +19,23 @@ jobs:
uses: actions/checkout@v4

- name: '💽️ Setup'
uses: ./.github/actions/setup
uses: ./.github/actions/setup-node

- name: '🔺️ Cache'
uses: ./.github/actions/cache
uses: ./.github/actions/cache-node

- name: '📦 Install'
uses: ./.github/actions/install

- name: '🏗️ Build'
uses: ./.github/actions/build
with:
COMMAND: 'build'
shell: bash
run: pnpm install --frozen-lockfile

- name: '🚨️ Lint'
uses: ./.github/actions/lint
shell: bash
run: pnpm lint

- name: '🎨 Format'
shell: bash
run: pnpm format

- name: '🦺 Type Check'
uses: ./.github/actions/type-check
with:
COMMAND: 'type-check'

- name: '🧪 Test'
uses: ./.github/actions/test
with:
COMMAND: 'test'
shell: bash
run: pnpm typecheck
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:
uses: actions/checkout@v4

- name: '💽️ Setup'
uses: ./.github/actions/setup
uses: ./.github/actions/setup-node

- name: '🔺️ Cache'
uses: ./.github/actions/cache
uses: ./.github/actions/cache-node

- name: '📦 Install'
uses: ./.github/actions/install
shell: bash
run: pnpm install --frozen-lockfile

- name: '🏗️ Build'
uses: ./.github/actions/build
with:
COMMAND: 'build'
shell: bash
run: pnpm build

- name: '🏷️ Release'
id: release
Expand All @@ -67,18 +67,18 @@ jobs:
ref: ${{ needs.create-release.outputs.branch }}

- name: '💽️ Setup'
uses: ./.github/actions/setup
uses: ./.github/actions/setup-node

- name: '🔺️ Cache'
uses: ./.github/actions/cache
uses: ./.github/actions/cache-node

- name: '📦 Install'
uses: ./.github/actions/install
shell: bash
run: pnpm install --frozen-lockfile

- name: '🏗️ Build'
uses: ./.github/actions/build
with:
COMMAND: 'build'
shell: bash
run: pnpm build

- name: '🏷️ Publish @giantnodes/theme'
working-directory: packages/theme
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
uses: thomaseizinger/create-pull-request@master
with:
title: 'chore(release): v${{ needs.create-release.outputs.version }}'
labels: '🏷️ Release, 🥳️ LGTM'
labels: '🏷️ Release'
github_token: ${{ secrets.GITHUB_TOKEN }}
head: release/${{ needs.create-release.outputs.version }}
base: main
7 changes: 1 addition & 6 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
registry=https://registry.npmjs.org
node-linker=hoisted

enable-pre-post-scripts=true
strict-peer-dependencies=false

public-hoist-pattern[]=*@giantnodes/theme*
public-hoist-pattern[]=*@react-types/shared*
public-hoist-pattern[]=*tailwind-variants*
Loading

0 comments on commit 15250a9

Please sign in to comment.