Skip to content

Commit 7ffd87e

Browse files
committed
now it really is epic
1 parent 97f4ffe commit 7ffd87e

File tree

323 files changed

+17286
-33275
lines changed

Some content is hidden

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

323 files changed

+17286
-33275
lines changed

Diff for: .all-contributorsrc

-585
This file was deleted.

Diff for: .eslintignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules
2-
coverage
32
build
3+
public/build
4+
playwright-report
5+
test-results
6+
server-build
7+
scripts

Diff for: .eslintrc.cjs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/** @type {import('@types/eslint').Linter.BaseConfig} */
2+
module.exports = {
3+
extends: [
4+
'@remix-run/eslint-config',
5+
'@remix-run/eslint-config/node',
6+
'prettier',
7+
],
8+
rules: {
9+
// playwright requires destructuring in fixtures even if you don't use anything 🤷‍♂️
10+
'no-empty-pattern': 'off',
11+
'@typescript-eslint/consistent-type-imports': [
12+
'warn',
13+
{
14+
prefer: 'type-imports',
15+
disallowTypeAnnotations: true,
16+
fixStyle: 'inline-type-imports',
17+
},
18+
],
19+
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
20+
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'],
21+
'import/order': [
22+
'warn',
23+
{
24+
alphabetize: { order: 'asc', caseInsensitive: true },
25+
groups: [
26+
'builtin',
27+
'external',
28+
'internal',
29+
'parent',
30+
'sibling',
31+
'index',
32+
],
33+
},
34+
],
35+
},
36+
}

Diff for: .gitattributes

-1
This file was deleted.

Diff for: .github/workflows/validate.yml

+31-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
name: validate
1+
name: deploy
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
27
on:
38
push:
49
branches:
@@ -8,8 +13,6 @@ on:
813
- 'main'
914
jobs:
1015
setup:
11-
# ignore all-contributors PRs
12-
if: ${{ !contains(github.head_ref, 'all-contributors') }}
1316
strategy:
1417
matrix:
1518
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -23,8 +26,30 @@ jobs:
2326
with:
2427
node-version: 18
2528

26-
- name: npm 8
27-
run: npm install --global npm@8
28-
2929
- name: ▶️ Run setup script
3030
run: npm run setup
31+
32+
- name: ʦ TypeScript
33+
run: npm run typecheck
34+
35+
- name: ⬣ ESLint
36+
run: npm run lint
37+
38+
deploy:
39+
name: 🚀 Deploy
40+
runs-on: ubuntu-latest
41+
# only deploy main branch on pushes
42+
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
43+
44+
steps:
45+
- name: ⬇️ Checkout repo
46+
uses: actions/checkout@v3
47+
48+
- name: 🎈 Setup Fly
49+
uses: superfly/flyctl-actions/[email protected]
50+
51+
- name: 🚀 Deploy
52+
run: flyctl deploy --remote-only
53+
working-directory: ./scripts/deployed
54+
env:
55+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

Diff for: .gitignore

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
.DS_Store
21
node_modules
3-
coverage
4-
build
5-
.idea/
6-
.vscode/
7-
.eslintcache
8-
/playwright-report
9-
/test-results
10-
/playground
2+
3+
workspace/
4+
**/.cache/
5+
**/build/
6+
**/public/build
7+
**/playwright-report
8+
data.db
9+
/playground
10+
**/tsconfig.tsbuildinfo
11+
12+
# in a real app you'd want to not commit the .env
13+
# file as well, but since this is for a workshop
14+
# we're going to keep them around.
15+
# .env

Diff for: .gitpod.yml

-106
This file was deleted.

Diff for: .npmrc

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
registry=https://registry.npmjs.org/
2-
package-lock=true
3-
yes=true
41
legacy-peer-deps=true
2+
registry=https://registry.npmjs.org/

Diff for: .prettierignore

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
node_modules
2-
coverage
3-
build
2+
3+
**/build/**
4+
**/public/build/**
5+
.env
6+
7+
**/package.json
8+
**/tsconfig.json
9+
10+
**/package-lock.json
11+
**/playwright-report/**

Diff for: .prettierrc

+33-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
11
{
2-
"arrowParens": "avoid",
3-
"bracketSpacing": false,
4-
"endOfLine": "lf",
5-
"htmlWhitespaceSensitivity": "css",
6-
"insertPragma": false,
7-
"jsxBracketSameLine": false,
8-
"jsxSingleQuote": false,
9-
"printWidth": 80,
10-
"proseWrap": "always",
11-
"quoteProps": "as-needed",
12-
"requirePragma": false,
13-
"semi": false,
14-
"singleQuote": true,
15-
"tabWidth": 2,
16-
"trailingComma": "all",
17-
"useTabs": false
2+
"arrowParens": "avoid",
3+
"bracketSameLine": false,
4+
"bracketSpacing": true,
5+
"embeddedLanguageFormatting": "auto",
6+
"endOfLine": "lf",
7+
"htmlWhitespaceSensitivity": "css",
8+
"insertPragma": false,
9+
"jsxSingleQuote": false,
10+
"printWidth": 80,
11+
"proseWrap": "always",
12+
"quoteProps": "as-needed",
13+
"requirePragma": false,
14+
"semi": false,
15+
"singleAttributePerLine": false,
16+
"singleQuote": true,
17+
"tabWidth": 2,
18+
"trailingComma": "all",
19+
"useTabs": true,
20+
"overrides": [
21+
{
22+
"files": ["**/*.json"],
23+
"options": {
24+
"useTabs": false
25+
}
26+
},
27+
{
28+
"files": ["**/*.mdx"],
29+
"options": {
30+
"proseWrap": "preserve",
31+
"htmlWhitespaceSensitivity": "ignore"
32+
}
33+
}
34+
]
1835
}

Diff for: .vscode/extensions.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"recommendations": [
33
"dbaeumer.vscode-eslint",
44
"esbenp.prettier-vscode",
5-
"formulahendry.auto-rename-tag",
6-
"VisualStudioExptTeam.vscodeintellicode"
5+
"bradlc.vscode-tailwindcss",
6+
"neotan.vscode-auto-restart-typescript-eslint-servers",
7+
"prisma.prisma",
8+
"qwtel.sqlite-viewer"
79
]
810
}

Diff for: .vscode/settings.kcd.json

-66
This file was deleted.

Diff for: CODE_OF_CONDUCT.md

-1
This file was deleted.

0 commit comments

Comments
 (0)