-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improving turborepo processes (#147)
- Loading branch information
1 parent
081b0db
commit a6f7a05
Showing
428 changed files
with
6,744 additions
and
8,772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.