Skip to content

Commit 1b1dd24

Browse files
authored
Merge pull request #288 from aiko-chan-ai/electron-v3-ts
TypeScript rewrite
2 parents bba4bfa + be6dbdc commit 1b1dd24

File tree

320 files changed

+18611
-33638
lines changed

Some content is hidden

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

320 files changed

+18611
-33638
lines changed

.eslintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:import/recommended",
12+
"plugin:import/electron",
13+
"plugin:import/typescript"
14+
],
15+
"parser": "@typescript-eslint/parser"
16+
}

.github/workflows/build.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,33 @@ jobs:
2020
steps:
2121
- name: Check out Git repository
2222
uses: actions/checkout@v4
23-
24-
- name: Install Python 3.13.2
25-
uses: actions/setup-python@v5
26-
with:
27-
python-version: '3.13.2'
28-
29-
- name: Install setuptools
30-
run: |
31-
python -m pip install --upgrade pip
32-
pip install setuptools
3323

3424
- name: Install Node.js
3525
uses: actions/setup-node@v4
3626
with:
37-
node-version: '22.x'
27+
node-version: '24.x'
28+
29+
- name: Install dependencies
30+
run: npm run requirement
31+
32+
- name: Build VencordExtension
33+
run: npm run vencord
34+
35+
- name: Build JS Code
36+
run: npm run build:ts
3837

3938
- name: Build/release Electron app
4039
uses: samuelmeuli/[email protected]
4140
with:
4241
github_token: ${{ secrets.github_token }}
4342
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
43+
44+
- name: Upload multiple files
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: nekocord-build-${{ matrix.os }}
48+
path: |
49+
dist/*.exe
50+
dist/*.AppImage
51+
dist/*.dmg
52+

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
pull_request:
7+
branches:
8+
- '*'
9+
jobs:
10+
eslint:
11+
name: ESLint
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Install Node.js v24
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 24
24+
25+
- run: npm install --verbose
26+
27+
- run: npm run lint
28+
29+
- run: npm run test:typescript

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ out
9191
.nuxt
9292
/dist
9393
/Vencord
94-
test.js
95-
/AppAssets/assets
94+
/build
95+
/VencordExtension
9696

9797
# Gatsby files
9898
.cache/

.prettierrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "all",
10+
"bracketSpacing": true,
11+
"bracketSameLine": false,
12+
"arrowParens": "avoid",
13+
"proseWrap": "preserve",
14+
"htmlWhitespaceSensitivity": "css",
15+
"endOfLine": "lf",
16+
"embeddedLanguageFormatting": "auto"
17+
}

AppAssets/ApplicationFlags.js

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

AppAssets/Bitfield.js

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

0 commit comments

Comments
 (0)