Skip to content

Commit

Permalink
feat: remove check since not applicable to new frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Feb 9, 2024
1 parent a84f854 commit b8b8b1a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 34 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ on:
pull_request:

jobs:
check-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install modules
run: cd frontend && npm i
- name: Svelte check
run: cd frontend && npm run check

backend:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -79,11 +70,6 @@ jobs:
cd frontend/
npm run build
- name: Test Frontend
run: |
cd frontend/
npm run test
- name: Test Backend
run: |
cd backend/
Expand Down
3 changes: 1 addition & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "frontend-new",
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"openapi": "npx openapi-typescript-codegen --input http://localhost:8000/openapi.json --output ./src/lib/openapi --client fetch"
},
"devDependencies": {
Expand Down
37 changes: 19 additions & 18 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"resolveJsonModule": true,
/**
* Typecheck JS in `.svelte` and `.js` files by default.
* Disable checkJs if you'd like to use dynamic types in JS.
* Note that setting allowJs false does not prevent the use
* of JS in `.svelte` files.
*/
"allowJs": true,
"checkJs": true,
"isolatedModules": true
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"],
"references": [{ "path": "./tsconfig.node.json" }]
"extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"resolveJsonModule": true,
/**
* Typecheck JS in `.svelte` and `.js` files by default.
* Disable checkJs if you'd like to use dynamic types in JS.
* Note that setting allowJs false does not prevent the use
* of JS in `.svelte` files.
*/
"allowJs": true,
"checkJs": true,
"isolatedModules": true
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"],
"exclude": ["node_modules/*", "venome-molstar/*", "public/*"],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit b8b8b1a

Please sign in to comment.