Skip to content

Commit

Permalink
Merge pull request #77 from JHWelch/vue
Browse files Browse the repository at this point in the history
Migrate frontend to Vue
  • Loading branch information
JHWelch authored Dec 30, 2023
2 parents 1c19bbf + 45146ac commit 9616a19
Show file tree
Hide file tree
Showing 153 changed files with 21,230 additions and 14,132 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
Expand All @@ -21,5 +25,14 @@ module.exports = {
semi: ['error', 'never'],
'space-before-function-paren': ['error', 'always'],
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'vue/multi-word-component-names': 'off',
},
overrides: [
{
files: ['*.vue'],
rules: {
'max-len': 'off',
},
},
],
};
25 changes: 24 additions & 1 deletion .github/workflows/qc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Run Lint
run: npm run lint

test:
test-server:
runs-on: ubuntu-latest

steps:
Expand All @@ -46,7 +46,30 @@ jobs:
cache: 'npm'

- name: Install Dependencies
working-directory: ./server
run: npm ci

- name: Run Tests
working-directory: ./server
run: npm test

test-client:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18.18.0'
cache: 'npm'

- name: Install Dependencies
working-directory: ./client
run: npm ci

- name: Run Tests
working-directory: ./client
run: npm test -- run
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
19 changes: 0 additions & 19 deletions __tests__/controllers/dashboardController.spec.ts

This file was deleted.

20 changes: 0 additions & 20 deletions __tests__/controllers/previousController.spec.ts

This file was deleted.

24 changes: 24 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
Loading

0 comments on commit 9616a19

Please sign in to comment.