Skip to content

Commit 5a1ea23

Browse files
authored
Merge pull request #63 from K0IN/refactoring
Setup Project structure
2 parents 76b5170 + d407bad commit 5a1ea23

39 files changed

+12592
-12215
lines changed

.hintrc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"extends": [
3-
"development"
4-
],
5-
"hints": {
6-
"axe/language": [
7-
"default",
8-
{
9-
"html-has-lang": "off"
10-
}
2+
"extends": [
3+
"development"
114
],
12-
"typescript-config/is-valid": "off"
13-
}
5+
"hints": {
6+
"axe/language": [
7+
"default",
8+
{
9+
"html-has-lang": "off"
10+
}
11+
],
12+
"typescript-config/is-valid": "off"
13+
}
1414
}

.vscode/extensions.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2-
// See http://go.microsoft.com/fwlink/?LinkId=827846
3-
// for the documentation about the extensions.json format
4-
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher", "ms-vscode.extension-test-runner"]
5-
}
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"amodio.tsl-problem-matcher",
5+
"ms-vscode.extension-test-runner",
6+
"Gruntfuggly.triggertaskonsave"
7+
],
8+
"unwantedRecommendations": [
9+
"k0in.debug-graph"
10+
]
11+
}

.vscode/settings.json

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"out": false, // set this to true to hide the "out" folder with the compiled JS files
5-
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6-
},
7-
"search.exclude": {
8-
"out": true, // set this to false to include "out" folder in search results
9-
"dist": true // set this to false to include "dist" folder in search results
10-
},
11-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12-
"typescript.tsc.autoDetect": "off",
13-
"cSpell.words": [
14-
"Comlink",
15-
"Deno",
16-
"guolao"
17-
]
3+
"files.exclude": {
4+
"out": true,
5+
"dist": true,
6+
".vscode-test": true,
7+
"node_modules": true,
8+
// these all have their own workspace folders
9+
"test_code": true,
10+
"shared": true,
11+
"frontend": true
12+
},
13+
"search.exclude": {
14+
"out": true,
15+
"dist": true,
16+
".vscode-test": true,
17+
"node_modules": true
18+
},
19+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
20+
"typescript.tsc.autoDetect": "off",
21+
"cSpell.words": [
22+
"Comlink",
23+
"Deno",
24+
"guolao"
25+
]
1826
}

.vscode/tasks.json

Lines changed: 48 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,49 @@
1-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2-
// for the documentation about the tasks.json format
31
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$ts-webpack-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never",
13-
"group": "watchers"
14-
},
15-
"group": {
16-
"kind": "build",
17-
"isDefault": true
18-
}
19-
},
20-
{
21-
"type": "npm",
22-
"script": "watch-tests",
23-
"problemMatcher": "$tsc-watch",
24-
"isBackground": true,
25-
"presentation": {
26-
"reveal": "never",
27-
"group": "watchers"
28-
},
29-
"group": "build"
30-
},
31-
{
32-
"label": "tasks: watch-tests",
33-
"dependsOn": [
34-
"npm: watch",
35-
"npm: watch-tests"
36-
],
37-
"problemMatcher": []
38-
}
39-
]
40-
}
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"label": "npm: install",
7+
"script": "install-deps", // this also installs the frontend dependencies
8+
"runOptions": {
9+
"runOn": "folderOpen"
10+
}
11+
},
12+
{
13+
"type": "npm",
14+
"script": "watch",
15+
"problemMatcher": "$ts-webpack-watch",
16+
"isBackground": true,
17+
"presentation": {
18+
"reveal": "never",
19+
"group": "watchers"
20+
},
21+
"group": {
22+
"kind": "build",
23+
"isDefault": true
24+
},
25+
"dependsOn": [
26+
"npm: install"
27+
]
28+
},
29+
{
30+
"type": "npm",
31+
"script": "watch-tests",
32+
"problemMatcher": "$tsc-watch",
33+
"isBackground": true,
34+
"presentation": {
35+
"reveal": "never",
36+
"group": "watchers"
37+
},
38+
"group": "build"
39+
},
40+
{
41+
"label": "tasks: watch-tests",
42+
"dependsOn": [
43+
"npm: watch",
44+
"npm: watch-tests"
45+
],
46+
"problemMatcher": []
47+
}
48+
]
49+
}

debug-graph.code-workspace

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"folders": [
3+
{
4+
"name": "debug-graph",
5+
"path": "."
6+
},
7+
{
8+
"name": "frontend",
9+
"path": "./frontend"
10+
},
11+
{
12+
"name": "test-code",
13+
"path": "./test_code"
14+
},
15+
{
16+
"name": "shared-code",
17+
"path": "./shared"
18+
},
19+
{
20+
"name": "tests",
21+
"path": "./src/test"
22+
}
23+
],
24+
"settings": {
25+
"typescript.tsc.autoDetect": "off",
26+
// "triggerTaskOnSave.tasks": {
27+
// "frontend-build-dev": [
28+
// "frontend/src/**/*.ts",
29+
// "frontend/src/**/*.vue"
30+
// ]
31+
// },
32+
"cSpell.words": [
33+
"Comlink"
34+
]
35+
}
36+
}

frontend/.eslintrc.cjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
5-
root: true,
6-
'extends': [
7-
'plugin:vue/vue3-essential',
8-
'eslint:recommended',
9-
'@vue/eslint-config-typescript',
10-
'@vue/eslint-config-prettier/skip-formatting'
11-
],
12-
parserOptions: {
13-
ecmaVersion: 'latest'
14-
}
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
'@vue/eslint-config-prettier/skip-formatting'
11+
],
12+
parserOptions: {
13+
ecmaVersion: 'latest'
14+
}
1515
}

frontend/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ coverage
1818
/cypress/screenshots/
1919

2020
# Editor directories and files
21-
.vscode/*
22-
!.vscode/extensions.json
2321
.idea
2422
*.suo
2523
*.ntvs*

frontend/.vscode/tasks.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "frontend-install",
6+
"type": "npm",
7+
"script": "install",
8+
"runOptions": {
9+
"runOn": "folderOpen"
10+
}
11+
},
12+
{
13+
"label": "frontend-build-dev",
14+
"type": "npm",
15+
"script": "build:dev"
16+
}
17+
]
18+
}

frontend/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="UTF-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>Vite App</title>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
88
</head>
99

1010
<body>
11-
<div id="app"></div>
12-
<script type="module" src="/src/main.ts"></script>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
1313
</body>
1414

1515
</html>

0 commit comments

Comments
 (0)