chore: split repo into two workspaces (#932)

* chore: split into two workspaces

* chore(client): only type check services

* chore: add nvmrc
This commit is contained in:
Jonas Holst Damtoft 2021-05-18 15:53:16 +02:00 committed by GitHub
parent e331eda332
commit 29efa33b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
444 changed files with 520 additions and 644 deletions

View File

@ -1,7 +0,0 @@
// ignore external libraries
/client/js/onsenui.js
/client/js/onsenui.min.js
/client/js/angular-onsenui.js
/client/js/angular-onsenui.min.js
/client/js/geometry-polyfill.js
/client/zone/geometry-polyfill.js

View File

@ -18,9 +18,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run ts-check
- run: npm run lint
- run: npm run build
- run: npm test
- run: npm run ts-check -ws
- run: npm run lint -ws
- run: npm run build -ws
- run: npm test -ws
env:
CI: true

View File

@ -25,7 +25,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/armv7/valetudo
asset_path: ./server/build/armv7/valetudo
asset_name: valetudo-armv7
asset_content_type: binary/octet-stream
- name: Upload Valetudo armv7.upx
@ -34,7 +34,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/armv7/valetudo.upx
asset_path: ./server/build/armv7/valetudo.upx
asset_name: valetudo-armv7.upx
asset_content_type: binary/octet-stream
- name: Upload Valetudo armv7 lowmem
@ -43,7 +43,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/armv7/valetudo_lowmem
asset_path: ./server/build/armv7/valetudo_lowmem
asset_name: valetudo-armv7-lowmem
asset_content_type: binary/octet-stream
- name: Upload Valetudo armv7 lowmem.upx
@ -52,7 +52,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/armv7/valetudo_lowmem.upx
asset_path: ./server/build/armv7/valetudo_lowmem.upx
asset_name: valetudo-armv7-lowmem.upx
asset_content_type: binary/octet-stream
- name: Upload Valetudo aarch64
@ -61,7 +61,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/aarch64/valetudo
asset_path: ./server/build/aarch64/valetudo
asset_name: valetudo-aarch64
asset_content_type: binary/octet-stream
- name: Upload Valetudo aarch64.upx

10
.gitignore vendored
View File

@ -1,16 +1,16 @@
# ignore node_modules if installed here (e.g. by npm install)
/node_modules/
node_modules/
# ignore configuration files for local development
/local/
# log and map files for local development (could/should become obsolete
# when more control over file location is possible)
/map
/log
map/
log/
# binary compilation output
/build
build/
# IntelliJ Idea project files
/.idea/
.idea/

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v16.1.0

7
client/.eslintignore Normal file
View File

@ -0,0 +1,7 @@
// ignore external libraries
/lib/js/onsenui.js
/lib/js/onsenui.min.js
/lib/js/angular-onsenui.js
/lib/js/angular-onsenui.min.js
/lib/js/geometry-polyfill.js
/lib/zone/geometry-polyfill.js

View File

Before

Width:  |  Height:  |  Size: 338 B

After

Width:  |  Height:  |  Size: 338 B

View File

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 365 B

View File

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 307 B

View File

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 413 B

View File

Before

Width:  |  Height:  |  Size: 777 B

After

Width:  |  Height:  |  Size: 777 B

View File

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 412 B

View File

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 573 B

View File

Before

Width:  |  Height:  |  Size: 647 B

After

Width:  |  Height:  |  Size: 647 B

View File

Before

Width:  |  Height:  |  Size: 600 B

After

Width:  |  Height:  |  Size: 600 B

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

13
client/jsconfig.json Normal file
View File

@ -0,0 +1,13 @@
{
"compilerOptions": {
"checkJs": true,
"module": "commonJS",
"target": "es6",
"lib": ["es2019", "dom"],
"moduleResolution": "node",
"sourceMap": true,
"alwaysStrict": true,
"resolveJsonModule": true
},
"include": ["lib/services", "global.d.ts"]
}

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 434 KiB

After

Width:  |  Height:  |  Size: 434 KiB

View File

Before

Width:  |  Height:  |  Size: 326 KiB

After

Width:  |  Height:  |  Size: 326 KiB

View File

@ -1,2 +1,2 @@
declare var ons: any;
declare var fn: any;
declare var fn: any;

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 422 B

View File

Before

Width:  |  Height:  |  Size: 840 B

After

Width:  |  Height:  |  Size: 840 B

19
client/package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "valetudo-client",
"version": "2021.04.0",
"description": "Self-contained control webinterface for vacuum robots",
"license": "Apache-2.0",
"author": "",
"engines": {
"node": ">=14"
},
"scripts": {
"lint": "eslint .",
"lint_fix": "eslint . --fix",
"ts-check": "tsc --noEmit -p jsconfig.json",
"build": "tsc -p jsconfig.json"
},
"devDependencies": {
"typescript": "^3.8.3"
}
}

Some files were not shown because too many files have changed in this diff Show More