This commit is contained in:
Anton Bracke 2022-02-18 10:26:36 +01:00
parent a86bf32ee2
commit 6e4041560b
No known key found for this signature in database
GPG Key ID: B1222603899C6B25
7 changed files with 114 additions and 64 deletions

View File

@ -166,3 +166,40 @@ jobs:
run: yarn run pretty-check
working-directory: "back"
continuous-integration-desktop:
name: "Continuous Integration Desktop"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: "Install dependencies"
run: yarn install --froze-lockfile
working-directory: "desktop"
- name: "Build"
run: yarn build
working-directory: "desktop"
- name: "Typecheck"
run: yarn typecheck
working-directory: "desktop"
- name: "Lint"
run: yarn lint
working-directory: "desktop"
- name: "Jasmine"
run: yarn test
working-directory: "desktop"
- name: "Prettier"
run: yarn pretty-check
working-directory: "desktop"

1
desktop/.prettierignore Normal file
View File

@ -0,0 +1 @@
src/Messages/generated

4
desktop/.prettierrc.json Normal file
View File

@ -0,0 +1,4 @@
{
"printWidth": 120,
"tabWidth": 4
}

View File

@ -5,14 +5,14 @@
"main": "index.js",
"license": "SEE LICENSE IN LICENSE.txt",
"scripts": {
"tsc": "tsup-node ./src/main.ts",
"dev": "tsup-node ./src/main.ts ./src/sidebar/preload.ts ./src/app/preload.js --watch --onSuccess 'yarn electron dist/main.js'",
"prod": "tsc && node --max-old-space-size=4096 ./dist/server.js",
"runprod": "node --max-old-space-size=4096 ./dist/server.js",
"profile": "tsc && node --prof ./dist/server.js",
"build": "tsup-node ./src/main.ts ./src/sidebar/preload.ts ./src/app/preload.js",
"typecheck": "tsc --noEmit",
"dev": "yarn build --watch --onSuccess 'yarn electron dist/main.js'",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ . --ext .ts",
"fix": "node_modules/.bin/eslint --fix src/ . --ext .ts"
"lint": "yarn eslint src/ . --ext .ts",
"fix": "yarn eslint --fix src/ . --ext .ts",
"pretty": "yarn prettier --write 'src/**/*.{ts,tsx}'",
"pretty-check": "yarn prettier --check 'src/**/*.{ts,tsx}'"
},
"dependencies": {
"auto-launch": "^5.0.5",
@ -32,6 +32,7 @@
"electron-builder": "^22.14.13",
"eslint": "^6.8.0",
"jasmine": "^3.5.0",
"prettier": "^2.5.1",
"tsup": "^5.11.13",
"typescript": "^3.8.3"
},

0
desktop/tests/.gitkeep Normal file
View File

View File

@ -67,6 +67,8 @@
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/* Advanced Options */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
"skipLibCheck": true
}
}

View File

@ -2413,6 +2413,11 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
prettier@^2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
process-nextick-args@~2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"