Skip to content

Commit 8e35212

Browse files
authored
Merge pull request #69 from aliasadidev/refactor
Refactor
2 parents 26f3ec5 + 6d0de54 commit 8e35212

File tree

103 files changed

+22351
-28866
lines changed

Some content is hidden

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

103 files changed

+22351
-28866
lines changed

.eslintrc.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,12 @@
55
"ecmaVersion": 6,
66
"sourceType": "module"
77
},
8-
"plugins": [
9-
"@typescript-eslint"
10-
],
8+
"plugins": ["@typescript-eslint"],
119
"rules": {
1210
"@typescript-eslint/naming-convention": "error",
1311
"@typescript-eslint/semi": "error",
1412
"curly": "error",
1513
"semi": "off"
1614
},
17-
"ignorePatterns": [
18-
"out",
19-
"dist",
20-
"**/*.d.ts"
21-
]
22-
}
15+
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
16+
}

.github/FUNDING.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: aliasadidev

.github/workflows/vscode-extension.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
name: Run unit tests
99
runs-on: windows-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
13-
- name: Install Node.js
14-
uses: actions/setup-node@v1
15-
with:
16-
node-version: 16.x
17-
- run: |
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Install Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 20.x
17+
- run: |
1818
npm install
1919
npm install -g vsce
2020
npm run test
@@ -27,21 +27,20 @@ jobs:
2727
- uses: actions/checkout@v2
2828
- uses: actions/setup-node@v1
2929
with:
30-
node-version: 16.x
30+
node-version: 20.x
3131

3232
- name: Build the front-end
3333
run: |
34-
cd front-end
35-
npm install
36-
npm i @angular/cli@12.1.4 -g
37-
ng build
34+
cd front-end
35+
npm install
36+
npm i @angular/cli@16.2.12 -g
37+
ng build
3838
3939
- name: Build the extension
4040
run: |
41-
npm install
42-
npm install -g vsce
43-
vsce package
41+
npm install
42+
npm install -g vsce
43+
vsce package
4444
4545
- name: Publish to marketplace
4646
run: vsce publish -p ${{ secrets.MARKETPLACE_SECRET }}
47-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist
33
node_modules
44
.vscode-test/
55
*.vsix
6+
front-end/.angular

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
out
2+
dist
3+
node_modules
4+
.vscode-test/
5+
front-end/.angular

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"semi": true,
6+
"bracketSpacing": true,
7+
"arrowParens": "avoid",
8+
"trailingComma": "es5",
9+
"bracketSameLine": true,
10+
"printWidth": 80
11+
}

.vscode/extensions.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// for the documentation about the extensions.json format
44
"recommendations": [
55
"dbaeumer.vscode-eslint",
6-
"amodio.tsl-problem-matcher"
6+
"amodio.tsl-problem-matcher",
7+
"ms-vscode.extension-test-runner",
8+
"esbenp.prettier-vscode"
79
]
8-
}
10+
}

.vscode/launch.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
"name": "Run Extension",
1010
"type": "extensionHost",
1111
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
17-
],
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
1814
"preLaunchTask": "${defaultBuildTask}"
1915
},
2016
{
@@ -32,4 +28,4 @@
3228
"preLaunchTask": "tasks: watch-tests"
3329
}
3430
]
35-
}
31+
}

.vscode/settings.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
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
56
},
67
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
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
810
},
911
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1012
"typescript.tsc.autoDetect": "off",
1113
"editor.formatOnSave": true,
1214
"editor.detectIndentation": false,
13-
"[typescript]": {
14-
"editor.defaultFormatter": "vscode.typescript-language-features"
15-
},
16-
"cSpell.words": [
17-
"nugetpackagemanagergui"
18-
],
15+
"cSpell.words": ["nugetpackagemanagergui"],
1916
"mochaExplorer.require": "ts-node/register",
2017
"mochaExplorer.files": "src/test/**/**.test.ts",
21-
"mochaExplorer.ui": "tdd"
22-
}
18+
"mochaExplorer.ui": "tdd",
19+
"[html]": {
20+
"editor.defaultFormatter": "esbenp.prettier-vscode",
21+
"editor.codeActionsOnSave": {
22+
"source.fixAll.eslint": "always"
23+
},
24+
"editor.formatOnSave": false
25+
},
26+
"[html][typescript]": {
27+
"editor.codeActionsOnSave": {
28+
"source.fixAll.eslint": "explicit"
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)