Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Jun 22, 2024
1 parent 112cdc3 commit c8f316c
Show file tree
Hide file tree
Showing 43 changed files with 11,379 additions and 8,541 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/codeqa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code QA

on:
- push

defaults:
run:
shell: bash

jobs:
frontend:
name: "Frontend: Lint"
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci --prefer-offline
- run: npm run codegen

- run: npm run lint
- run: npm run typecheck
18 changes: 7 additions & 11 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy Pull Request

'on': pull_request
on:
- pull_request

jobs:
build_and_preview:
Expand All @@ -10,17 +11,11 @@ jobs:
name: branch-deploy
url: ${{ steps.deploy.outputs.details_url }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
cache: npm
- run: npm ci --prefer-offline
- run: npm run codegen
- run: npm run build
Expand All @@ -37,6 +32,7 @@ jobs:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROJECT_5641153190345267944 }}'
expires: 30d
projectId: project-5641153190345267944

- name: Create Sentry release
uses: getsentry/action-release@v1
env:
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ jobs:
runs-on: ubuntu-latest
environment:
name: production
url: https://v4.the-tricktionary.com
url: https://the-tricktionary.com
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
cache: npm
- run: npm ci --prefer-offline
- run: npm run codegen
- run: npm run build
Expand Down
16 changes: 0 additions & 16 deletions apollo.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion codegen.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
overwrite: true
schema:
- https://api.the-tricktionary.com/
- https://api.the-tricktionary.com/graphql
config:
scalars:
Timestamp: number
Expand All @@ -13,6 +13,7 @@ generates:
config:
# flattenGeneratedTypes: true
exportFragmentSpreadSubTypes: true
vueCompositionApiImportFrom: 'vue'
documents:
- './src/**/*.{gql,graphql}'
- './src/**/!(*.d).{ts,vue}'
50 changes: 50 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import love from 'eslint-config-love'
import pluginVue from 'eslint-plugin-vue'
import parser from '@typescript-eslint/parser'

export default [
{
ignores: [
'node_modules/',
'dist/',
'src/graphql/index.ts',
'.vscode/',
'**/generated',
'**/graphql.schema.json',
'**/local.settings.json',
]
},
love,
...pluginVue.configs['flat/recommended'],
{
languageOptions: {
parserOptions: {
parser,
extraFileExtensions: ['.vue'],
sourceType: 'module',
},
},
},
{
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/only-throw-error': 'off'
}
},
{
files: ['**/*.vue'],
rules: {
'no-unused-vars': 'off',
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'vue/max-attributes-per-line': ['warn', { singleline: 5 }],
'vue/multi-word-component-names': 'off'
}
}
]
Loading

0 comments on commit c8f316c

Please sign in to comment.