Skip to content

Commit 7d2391c

Browse files
committed
refactor: change whole project structure
1 parent ba3f205 commit 7d2391c

File tree

570 files changed

+6743
-6456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

570 files changed

+6743
-6456
lines changed

.eslintrc.js

-131
This file was deleted.

.eslintrc.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es2021": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"extends": [
8+
"plugin:@typescript-eslint/recommended",
9+
"standard"
10+
],
11+
"plugins": [
12+
"@typescript-eslint"
13+
],
14+
"rules": {
15+
"indent": "off",
16+
"@typescript-eslint/indent": [
17+
"error",
18+
2,
19+
{
20+
"SwitchCase": 1,
21+
"ignoredNodes": [
22+
"TSTypeParameterInstantiation"
23+
]
24+
}
25+
],
26+
"comma-dangle": "off",
27+
"@typescript-eslint/comma-dangle": [
28+
"error",
29+
"always-multiline"
30+
],
31+
"semi": "off",
32+
"@typescript-eslint/semi": [
33+
"error",
34+
"never"
35+
],
36+
"no-redeclare": "off",
37+
"standard/no-callback-literal": "off",
38+
"@typescript-eslint/no-redeclare": [
39+
"error"
40+
],
41+
"@typescript-eslint/member-delimiter-style": [
42+
"error",
43+
{
44+
"multiline": {
45+
"delimiter": "none"
46+
}
47+
}
48+
],
49+
"@typescript-eslint/ban-types": 0,
50+
"@typescript-eslint/ban-ts-comment": 0,
51+
"@typescript-eslint/explicit-function-return-type": 0,
52+
"@typescript-eslint/explicit-module-boundary-types": 0,
53+
"@typescript-eslint/no-empty-function": 0,
54+
"@typescript-eslint/no-empty-interface": 0,
55+
"@typescript-eslint/no-explicit-any": 0,
56+
"@typescript-eslint/no-non-null-assertion": 0,
57+
"@typescript-eslint/no-unused-expressions": 2,
58+
"@typescript-eslint/no-unused-vars": 0,
59+
"import/no-absolute-path": 0,
60+
"space-before-function-paren": 0,
61+
"no-useless-constructor": 0,
62+
"no-unused-vars": 0,
63+
"no-use-before-define": 0
64+
}
65+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"private": true,
33
"devDependencies": {
4+
"conventional-changelog": "^3.1.24",
5+
"conventional-recommended-bump": "^6.1.0",
46
"@actions/core": "1.2.4"
57
}
68
}

.gitignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
2+
*/dist/*
23
dist/*
34
dist/web/*
45
dist/test/*
@@ -20,4 +21,10 @@ static/semantic
2021
*.log
2122
*.bin
2223
/temp
23-
/definitions
24+
/definitions
25+
26+
nat-api
27+
p2p.network
28+
29+
30+
*/build/output/*

.vscode/launch.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"type": "node",
1010
"request": "launch",
1111
"preLaunchTask": "dev",
12-
"program": "${workspaceFolder}/dist/index.js",
13-
"args": ["--remote-debugging-port=9300"],
12+
"program": "${workspaceFolder}/xmcl-electron-app/dist/index.js",
13+
"args": ["--remote-debugging-port=9300", "--trace-uncaught", "--trace-deprecation"],
1414
"sourceMaps": true,
15-
"outFiles": ["${workspaceFolder}/dist/*.js"],
16-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
15+
"outFiles": ["${workspaceFolder}/xmcl-electron-app/dist/*.js"],
16+
"runtimeExecutable": "${workspaceFolder}/xmcl-electron-app/node_modules/.bin/electron",
1717
"protocol": "inspector",
18+
"cwd": "${workspaceFolder}/xmcl-electron-app/dist",
1819
"env": {
1920
"NODE_ENV": "development"
2021
}

.vscode/settings.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@
3636
"i18n-ally.keystyle": "nested",
3737
"i18n-ally.sortKeys": true,
3838
"cSpell.words": [
39-
"Minecraft",
39+
"Curseforge",
4040
"logined",
4141
"logining",
42+
"Minecraft",
4243
"mojang",
43-
"xmcl"
44+
"xmcl",
45+
"Modpack"
4446
],
45-
"cSpell.enabled": true
47+
"cSpell.enabled": true,
48+
"cmake.configureOnOpen": false
4649
}

.vscode/tasks.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"script": "dev:main",
2222
"group": "build",
2323
"isBackground": true,
24+
"options": {
25+
"env": {
26+
"LAUNCH_BY": "vscode"
27+
}
28+
},
2429
"problemMatcher": [
2530
{
2631
"pattern": [
@@ -34,7 +39,7 @@
3439
"background": {
3540
"activeOnStart": true,
3641
"beginsPattern": ".",
37-
"endsPattern": "Electron app started",
42+
"endsPattern": "electron main ready",
3843
}
3944
}
4045
]

0 commit comments

Comments
 (0)