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

@ -1,69 +1,70 @@
{
"name": "@workadventure/desktop",
"version": "1.0.0",
"description": "",
"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",
"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"
},
"dependencies": {
"auto-launch": "^5.0.5",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.4.6",
"electron-settings": "^4.0.2",
"electron-updater": "^4.6.5",
"electron-util": "^0.17.2",
"electron-window-state": "^5.0.3"
},
"devDependencies": {
"@types/auto-launch": "^5.0.2",
"@types/jasmine": "^3.5.10",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"electron": "^17.0.1",
"electron-builder": "^22.14.13",
"eslint": "^6.8.0",
"jasmine": "^3.5.0",
"tsup": "^5.11.13",
"typescript": "^3.8.3"
},
"build": {
"appId": "re.workadventu.desktop",
"files": [
"src/**/*",
"assets/**/*"
],
"dmg": {
"icon": false
"name": "@workadventure/desktop",
"version": "1.0.0",
"description": "",
"main": "index.js",
"license": "SEE LICENSE IN LICENSE.txt",
"scripts": {
"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": "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}'"
},
"linux": {
"category": "TODO;TODO",
"packageCategory": "TODO;TODO",
"maintainer": "TODO",
"icon": "assets/icons/TODO.icns",
"description": "TODO",
"target": [
"deb",
"zip",
"AppImage"
],
"artifactName": "${productName}-${version}-${arch}.${ext}"
"dependencies": {
"auto-launch": "^5.0.5",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.4.6",
"electron-settings": "^4.0.2",
"electron-updater": "^4.6.5",
"electron-util": "^0.17.2",
"electron-window-state": "^5.0.3"
},
"win": {
"icon": "assets/icons/TODO.ico",
"artifactName": "${productName}-${version}-setup.${ext}"
"devDependencies": {
"@types/auto-launch": "^5.0.2",
"@types/jasmine": "^3.5.10",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"electron": "^17.0.1",
"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"
},
"publish": {
"provider": "generic",
"url": "TODO"
"build": {
"appId": "re.workadventu.desktop",
"files": [
"src/**/*",
"assets/**/*"
],
"dmg": {
"icon": false
},
"linux": {
"category": "TODO;TODO",
"packageCategory": "TODO;TODO",
"maintainer": "TODO",
"icon": "assets/icons/TODO.icns",
"description": "TODO",
"target": [
"deb",
"zip",
"AppImage"
],
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"win": {
"icon": "assets/icons/TODO.ico",
"artifactName": "${productName}-${version}-setup.${ext}"
},
"publish": {
"provider": "generic",
"url": "TODO"
}
}
}
}

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"