Skip to content

Commit 1708584

Browse files
committed
migrated to turborepo, tsup & next.js
1 parent 5294ea8 commit 1708584

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+7047
-35911
lines changed

.all-contributorsrc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"projectOwner": "onderonur",
44
"repoType": "github",
55
"repoHost": "https://github.com",
6-
"files": [
7-
"README.md"
8-
],
6+
"files": ["README.md"],
97
"imageSize": 100,
108
"commit": true,
119
"commitConvention": "none",
@@ -15,27 +13,21 @@
1513
"name": "Eugene Fidelin",
1614
"avatar_url": "https://avatars0.githubusercontent.com/u/895071?v=4",
1715
"profile": "https://nl.linkedin.com/in/eugef",
18-
"contributions": [
19-
"code"
20-
]
16+
"contributions": ["code"]
2117
},
2218
{
2319
"login": "Evanc123",
2420
"name": "Evan Cater",
2521
"avatar_url": "https://avatars.githubusercontent.com/u/4010547?v=4",
2622
"profile": "https://github.com/Evanc123",
27-
"contributions": [
28-
"doc"
29-
]
23+
"contributions": ["doc"]
3024
},
3125
{
3226
"login": "groomain",
3327
"name": "Romain",
3428
"avatar_url": "https://avatars.githubusercontent.com/u/3601848?v=4",
3529
"profile": "https://github.com/groomain",
36-
"contributions": [
37-
"example"
38-
]
30+
"contributions": ["example"]
3931
}
4032
],
4133
"contributorsPerLine": 7

.eslintrc.js

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,10 @@
1+
// This configuration only applies to the package manager root.
2+
/** @type {import("eslint").Linter.Config} */
13
module.exports = {
2-
env: {
3-
browser: true,
4-
es6: true,
5-
},
6-
extends: ['react-app', 'plugin:react/recommended', 'airbnb', 'prettier'],
4+
ignorePatterns: ['apps/**', 'packages/**'],
5+
extends: ['@repo/eslint-config/library.js'],
76
parser: '@typescript-eslint/parser',
87
parserOptions: {
9-
ecmaFeatures: {
10-
jsx: true,
11-
},
12-
ecmaVersion: 12,
13-
sourceType: 'module',
14-
},
15-
plugins: ['react', '@typescript-eslint', 'prettier'],
16-
settings: {
17-
'import/resolver': {
18-
node: {
19-
extensions: ['.js', '.jsx', '.ts', '.tsx'],
20-
},
21-
},
22-
},
23-
rules: {
24-
'prettier/prettier': 'warn',
25-
'no-shadow': 'warn',
26-
'no-unused-vars': 'off',
27-
"prefer-destructuring": "warn",
28-
'@typescript-eslint/no-unused-vars': 'warn',
29-
// For optional chaining to not create linting errors
30-
'no-unused-expressions': 'off',
31-
"no-plusplus": "off",
32-
"operator-assignment": "warn",
33-
"object-shorthand": "warn",
34-
'arrow-body-style': 'off',
35-
"radix": "off",
36-
'import/extensions': 'off',
37-
'import/no-extraneous-dependencies': 'off',
38-
'import/order': 'off',
39-
'import/newline-after-import': 'warn',
40-
'no-use-before-define': 'off',
41-
"@typescript-eslint/no-explicit-any": "warn",
42-
'@typescript-eslint/no-use-before-define': 'warn',
43-
'react/jsx-curly-newline': 'off',
44-
'react/jsx-tag-spacing': 'warn',
45-
'react/button-has-type': 'warn',
46-
"react/jsx-fragments": "warn",
47-
'react/jsx-filename-extension': [
48-
'warn',
49-
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
50-
],
8+
project: true,
519
},
5210
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Install
2+
description: Sets up Node.js and runs install
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Node.js
8+
uses: actions/setup-node@v4
9+
with:
10+
node-version: 20
11+
cache: npm
12+
13+
- name: Install dependencies
14+
shell: bash
15+
run: npm ci

.github/workflows/main.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/quality.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Quality
2+
3+
on:
4+
push:
5+
branches:
6+
# TODO: This will be replaced with `main` later.
7+
- monorepo
8+
9+
# To cancel previous workflow when a new one is triggered.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
format:
16+
name: Format
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out
20+
uses: actions/checkout@v4
21+
22+
- name: Install
23+
uses: ./.github/composite-actions/install
24+
25+
- name: Run format check
26+
run: npm run format
27+
28+
lint:
29+
name: Lint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Check out
33+
uses: actions/checkout@v4
34+
35+
- name: Install
36+
uses: ./.github/composite-actions/install
37+
38+
- name: Run lint check
39+
run: npm run lint
40+
41+
typecheck:
42+
name: Typecheck
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Check out
46+
uses: actions/checkout@v4
47+
48+
- name: Install
49+
uses: ./.github/composite-actions/install
50+
51+
- name: Run type check
52+
run: npm run typecheck
53+
54+
build:
55+
name: Build
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Check out
59+
uses: actions/checkout@v4
60+
61+
- name: Install
62+
uses: ./.github/composite-actions/install
63+
64+
- name: Run build
65+
run: npm run build

.gitignore

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
1-
*.log
2-
.DS_Store
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
34
node_modules
4-
.cache
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
528
dist
29+
30+
31+
# Debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# Misc
37+
.DS_Store
38+
*.pem

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx tsdx lint
1+
npx lint-staged
2+
npm run typecheck

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)