Skip to content

Commit

Permalink
feat: improving turborepo processes (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
bclark-p44 authored Nov 11, 2022
1 parent 081b0db commit a6f7a05
Show file tree
Hide file tree
Showing 428 changed files with 6,744 additions and 8,772 deletions.
7 changes: 7 additions & 0 deletions .changeset/two-peaches-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'eslint-config-manifest': patch
'jest-preset-manifest': patch
'tsconfig-manifest': patch
---

Adding configuration packages
24 changes: 12 additions & 12 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"buildCommand": "build:packages",
"buildCommand": "turbo run build --filter='./packages/**/*'",
"node": "16",
"packages": [
"/packages/design-tokens",
"/packages/react",
"/packages/react-components/react-button",
"/packages/react-components/react-layout",
"/packages/react-components/react-popover",
"/packages/react-components/react-tooltip",
"/packages/react-components/react-typography",
"/packages/react-utilities/react-styles",
"/packages/react-utilities/react-types",
"/packages/react-utilities/react-utils",
"/packages/react-button",
"/packages/react-layout",
"/packages/react-popover",
"/packages/react-tooltip",
"/packages/react-typography",
"/packages/react-styles",
"/packages/react-types",
"/packages/react-utils",
"/packages/system",
"/packages/theme"
"/packages/theme",
"/packages/utils"
],
"sandboxes": [
"/examples/create-react-app",
"/examples/create-react-app-typescript"
"/examples/create-react-app"
]
}
19 changes: 0 additions & 19 deletions .eslintignore

This file was deleted.

50 changes: 0 additions & 50 deletions .eslintrc.js

This file was deleted.

155 changes: 17 additions & 138 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,160 +1,39 @@
name: ci
name: CI

on:
pull_request:
push:
branches:
- main
- 'main'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
ci:
name: Build and Validate
runs-on: 'ubuntu-latest'
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

steps:
- name: Checkout repository
- name: Check out code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
fetch-depth: 2

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Load yarn cache
uses: actions/cache@v3
id: yarn-cache
- name: Setup Node
uses: 'actions/setup-node@v3'
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 16.14.x
cache: 'yarn'

- name: Install dependencies
if: steps.yarn_cache.outputs.cache-hit != 'true'
run: yarn install --immutable
run: yarn

- name: Build
run: yarn build

- name: Store build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: |
packages/**/esm/**/*
packages/**/lib/**/*
packages/**/dts/**/*
format:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn_cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: packages/

- name: Format
run: yarn format

lint:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn_cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: packages/

- name: Lint
run: yarn lint

test:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn_cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: packages/

- name: Test
run: yarn test
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: pr
name: PR

on: pull_request

jobs:
conventional:
name: conventional pr title
name: Conventional PR Title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
Loading

0 comments on commit a6f7a05

Please sign in to comment.