Skip to content

Commit

Permalink
now it really is epic
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Feb 6, 2024
1 parent 97f4ffe commit 7ffd87e
Show file tree
Hide file tree
Showing 323 changed files with 17,286 additions and 33,275 deletions.
585 changes: 0 additions & 585 deletions .all-contributorsrc

This file was deleted.

6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
coverage
build
public/build
playwright-report
test-results
server-build
scripts
36 changes: 36 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/** @type {import('@types/eslint').Linter.BaseConfig} */
module.exports = {
extends: [
'@remix-run/eslint-config',
'@remix-run/eslint-config/node',
'prettier',
],
rules: {
// playwright requires destructuring in fixtures even if you don't use anything 🤷‍♂️
'no-empty-pattern': 'off',
'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: 'type-imports',
disallowTypeAnnotations: true,
fixStyle: 'inline-type-imports',
},
],
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'],
'import/order': [
'warn',
{
alphabetize: { order: 'asc', caseInsensitive: true },
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
},
],
},
}
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

37 changes: 31 additions & 6 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: validate
name: deploy

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -8,8 +13,6 @@ on:
- 'main'
jobs:
setup:
# ignore all-contributors PRs
if: ${{ !contains(github.head_ref, 'all-contributors') }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -23,8 +26,30 @@ jobs:
with:
node-version: 18

- name: npm 8
run: npm install --global npm@8

- name: ▶️ Run setup script
run: npm run setup

- name: ʦ TypeScript
run: npm run typecheck

- name: ⬣ ESLint
run: npm run lint

deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
# only deploy main branch on pushes
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: 🎈 Setup Fly
uses: superfly/flyctl-actions/[email protected]

- name: 🚀 Deploy
run: flyctl deploy --remote-only
working-directory: ./scripts/deployed
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
23 changes: 14 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
.DS_Store
node_modules
coverage
build
.idea/
.vscode/
.eslintcache
/playwright-report
/test-results
/playground

workspace/
**/.cache/
**/build/
**/public/build
**/playwright-report
data.db
/playground
**/tsconfig.tsbuildinfo

# in a real app you'd want to not commit the .env
# file as well, but since this is for a workshop
# we're going to keep them around.
# .env
106 changes: 0 additions & 106 deletions .gitpod.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
registry=https://registry.npmjs.org/
package-lock=true
yes=true
legacy-peer-deps=true
registry=https://registry.npmjs.org/
12 changes: 10 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
node_modules
coverage
build

**/build/**
**/public/build/**
.env

**/package.json
**/tsconfig.json

**/package-lock.json
**/playwright-report/**
49 changes: 33 additions & 16 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
{
"arrowParens": "avoid",
"bracketSpacing": false,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "always",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "always",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleAttributePerLine": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true,
"overrides": [
{
"files": ["**/*.json"],
"options": {
"useTabs": false
}
},
{
"files": ["**/*.mdx"],
"options": {
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore"
}
}
]
}
6 changes: 4 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"formulahendry.auto-rename-tag",
"VisualStudioExptTeam.vscodeintellicode"
"bradlc.vscode-tailwindcss",
"neotan.vscode-auto-restart-typescript-eslint-servers",
"prisma.prisma",
"qwtel.sqlite-viewer"
]
}
66 changes: 0 additions & 66 deletions .vscode/settings.kcd.json

This file was deleted.

1 change: 0 additions & 1 deletion CODE_OF_CONDUCT.md

This file was deleted.

Loading

0 comments on commit 7ffd87e

Please sign in to comment.