Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Report Viewer to vite #1029

Merged
merged 24 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
38c1bd7
Add vite-based report viewer project.
sebinside Mar 29, 2023
048b1a7
Add readme and configs.
sebinside Mar 29, 2023
56f04af
Add pinia instead of vuex. Add other dependencies from old package.json.
sebinside Mar 29, 2023
4646a65
Add entry files, configs, and fonts from old report viewer.
sebinside Mar 29, 2023
ebee4ff
Add model, views, components. 100+ errors to go.
sebinside Mar 29, 2023
988e4ee
Apply code formatting. Convert vuex to pinia store.
sebinside Mar 29, 2023
0b98938
Fix errors in the report viewer model code.
sebinside Mar 29, 2023
3749a43
Quick fixes for errors in report viewer components.
sebinside Mar 29, 2023
243898a
Fix errors in report viewer vue views.
sebinside Mar 29, 2023
80447b2
Remove magic comments to show problems with node require.
sebinside Mar 29, 2023
00b234c
removed path dependency
Kr0nox Apr 7, 2023
21d1045
Removed all instances of require(...)
Kr0nox Apr 8, 2023
6355536
Added husky
Kr0nox Apr 12, 2023
1591f0d
Added testing boilerplates
Kr0nox Apr 13, 2023
efa6b69
fixed typo in husky config
Kr0nox Apr 13, 2023
89ee699
Removed unused dependencies
Kr0nox Apr 14, 2023
0a814c2
Reenabled highlighting
Kr0nox Apr 14, 2023
235aa8a
Removed special vite folder
Kr0nox Apr 14, 2023
1063480
Remove vite folder
Kr0nox Apr 14, 2023
7bbf44d
Adjusted npm run prepare to run husky in right folder
Kr0nox Apr 14, 2023
910733a
Merge remote-tracking branch 'origin/develop' into report-viewer-vite
Kr0nox Apr 14, 2023
96ce1ea
remove test files
Kr0nox Apr 14, 2023
c794087
Fixed build error
Kr0nox Apr 14, 2023
62077c1
Update Readme
Kr0nox Apr 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions report-viewer/.browserslistrc

This file was deleted.

18 changes: 18 additions & 0 deletions report-viewer/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off"
}
}
20 changes: 0 additions & 20 deletions report-viewer/.eslintrc.js

This file was deleted.

30 changes: 19 additions & 11 deletions report-viewer/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

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

test-results/
playwright-report/
4 changes: 4 additions & 0 deletions report-viewer/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
10 changes: 10 additions & 0 deletions report-viewer/.lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"*.ts": [
"prettier --write",
"eslint"
],
"*.vue": [
"prettier --write",
"eslint"
]
}
8 changes: 8 additions & 0 deletions report-viewer/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
11 changes: 8 additions & 3 deletions report-viewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ The JPlag Report Viewer is a Vue 3 + Typescript standalone application that can
Before the first run execute:

- Install necessary dependencies by running `npm install` in the /report-viewer folder.
- Start the application by running the `npm run serve` command in the /report-viewer folder.
- The report viewer is now accessible in your browser under http://localhost:8080/JPlag/
- Start the application by running the `npm run dev` command in the /report-viewer folder.
- The report viewer is now accessible in your browser under http://localhost:8080/

## Project setup
```
Expand All @@ -15,7 +15,7 @@ npm install

### Compiles and hot-reloads for development
```
npm run serve
npm run dev
```

### Compiles and minifies for production
Expand All @@ -28,5 +28,10 @@ npm run build
npm run lint
```

### Format files with prettier
```
npm run format
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
3 changes: 0 additions & 3 deletions report-viewer/babel.config.js

This file was deleted.

1 change: 1 addition & 0 deletions report-viewer/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
16 changes: 16 additions & 0 deletions report-viewer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<noscript>
<strong>We're sorry but the JPlag Report Viewer does not work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
17 changes: 0 additions & 17 deletions report-viewer/jest.config.js

This file was deleted.

Loading