-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename types lib * init getting started section * setup turbo; make lint and build work * refresh remix on changes in ui lib * update docs * fix lint and typecheck commands across monorepo * fix tests * use turbo to run lint, typecheck, tests and build * fix ui lint * use turbo for building * remove not needed steps * fix docs deploy build dir path
- Loading branch information
Showing
61 changed files
with
1,156 additions
and
432 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -58,9 +58,6 @@ jobs: | |
- name: 📥 Install Dependencies | ||
run: pnpm install | ||
|
||
- name: 📦 Build libs | ||
run: pnpm build:ui | ||
|
||
- name: 🔬 Lint | ||
run: pnpm lint | ||
|
||
|
@@ -86,9 +83,6 @@ jobs: | |
- name: 📥 Install Dependencies | ||
run: pnpm install | ||
|
||
- name: 📦 Build libs | ||
run: pnpm build:ui | ||
|
||
- name: 🔎 Type check | ||
run: pnpm typecheck | ||
|
||
|
@@ -143,7 +137,7 @@ jobs: | |
run: pnpm test:e2e | ||
|
||
build: | ||
name: 🏗️ Build apps | ||
name: 🏗️ Build | ||
needs: [changes] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -164,8 +158,14 @@ jobs: | |
- name: 📥 Install Dependencies | ||
run: pnpm install | ||
|
||
- name: 🏗️ Build apps | ||
run: pnpm build:apps | ||
- name: 🏗️ Build | ||
run: pnpm build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: needs.changes.outputs.docs == 'true' | ||
with: | ||
name: docs-artifacts | ||
path: ./apps/docs/build | ||
|
||
deploy-nestjs: | ||
name: 🐯 Deploy NestJS App | ||
|
@@ -217,26 +217,15 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
- name: Download docs artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: 📥 Install Dependencies | ||
run: pnpm install | ||
|
||
- name: 🏗️ Build | ||
run: pnpm build:docs | ||
name: docs-artifacts | ||
path: ./build | ||
|
||
- name: 🚀 Deploy to Chromatic | ||
uses: chromaui/action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
storybookBuildDir: ./apps/docs/build | ||
storybookBuildDir: ./build |
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 |
---|---|---|
|
@@ -3,6 +3,10 @@ node_modules | |
dist | ||
build | ||
public/build | ||
.next | ||
|
||
## Monorepo | ||
.turbo | ||
|
||
# Environment variables | ||
.env | ||
|
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 @@ | ||
auto-install-peers = true |
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,5 @@ | ||
{ | ||
"files.associations": { | ||
"turbo.json": "jsonc" | ||
} | ||
} |
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
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,18 +1,4 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
module.exports = { | ||
extends: [ | ||
'@repo/eslint-config/base', | ||
'@repo/eslint-config/react', | ||
'plugin:storybook/recommended', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.stories.tsx'], | ||
rules: { | ||
// For some reason it shows errors for imports from @repo/ui, even though they are resolved correctly. | ||
// Both develop and build work fine, so I'm disabling it for now. | ||
'import/no-unresolved': 'off', | ||
}, | ||
}, | ||
], | ||
extends: ['@repo/eslint-config/storybook'], | ||
} |
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
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,18 +1,5 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declaration": false, | ||
"declarationMap": false, | ||
"incremental": true, | ||
"jsx": "preserve", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"module": "esnext", | ||
"noEmit": true, | ||
"resolveJsonModule": true, | ||
"target": "es5", | ||
"skipLibCheck": true | ||
}, | ||
"extends": "@repo/tsconfig/react-app.json", | ||
"include": ["."], | ||
"exclude": ["dist", "build", "node_modules"] | ||
} |
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,8 @@ | ||
{ | ||
"extends": ["//"], | ||
"pipeline": { | ||
"build": { | ||
"outputs": ["build/**"] | ||
} | ||
} | ||
} |
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,4 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: ['@repo/eslint-config/base'], | ||
env: { | ||
node: true, | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
project: 'apps/nestjs/tsconfig.json', | ||
}, | ||
}, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['jest.config.js', 'jest-e2e.config.js'], | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
}, | ||
}, | ||
], | ||
extends: ['@repo/eslint-config/nest'], | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
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.