chore: split repo into two workspaces (#932)
* chore: split into two workspaces * chore(client): only type check services * chore: add nvmrc
@ -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
|
||||
8
.github/workflows/nodejs.yml
vendored
@ -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
|
||||
|
||||
10
.github/workflows/release.yml
vendored
@ -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
@ -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/
|
||||
|
||||
7
client/.eslintignore
Normal 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
|
||||
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
|
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 307 B |
|
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 777 B |
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 647 B After Width: | Height: | Size: 647 B |
|
Before Width: | Height: | Size: 600 B After Width: | Height: | Size: 600 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
13
client/jsconfig.json
Normal 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"]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 434 KiB After Width: | Height: | Size: 434 KiB |
|
Before Width: | Height: | Size: 326 KiB After Width: | Height: | Size: 326 KiB |
2
global.d.ts → client/lib/global.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
declare var ons: any;
|
||||
declare var fn: any;
|
||||
declare var fn: any;
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 840 B After Width: | Height: | Size: 840 B |
19
client/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||