chore: add license checker (#23494)

Co-authored-by: andig <cpuidle@gmail.com>
This commit is contained in:
Michael Geers 2025-09-10 18:29:47 +02:00 • committed by GitHub
parent 201a2dd8c9
commit bf6721d326
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 998 additions and 73 deletions

View file

@ -133,6 +133,9 @@ jobs:
version: latest
args: --timeout 5m
- name: License
run: make license
ui:
name: UI
runs-on: depot-ubuntu-24.04-arm
@ -154,6 +157,9 @@ jobs:
- name: Test
run: make test-ui
- name: License
run: make license-ui
- name: Build UI
run: make ui

View file

@ -57,6 +57,20 @@ lint::
lint-ui::
npm run lint
license::
go run github.com/google/go-licenses/v2@latest check \
--ignore github.com/cespare/xxhash \
--ignore github.com/coder/websocket \
--ignore github.com/cronokirby/saferith \
--ignore github.com/modern-go/reflect2 \
--ignore github.com/prometheus/client_golang \
--ignore golang.org/x \
--allowed_licenses=MIT,Apache-2.0,BSD-0-Clause,BSD-2-Clause,BSD-3-Clause,LGPL-2.1,EPL-2.0,MPL-2.0 \
./...
license-ui::
npm run license
test-ui::
npm test

969
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,29 +12,17 @@
"dev": "vite",
"playwright": "playwright test --ui",
"simulator": "vite tests/simulator",
"storybook": "storybook dev -p 6006"
"storybook": "storybook dev -p 6006",
"license": "license-compliance --production --report detailed --allow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause\""
},
"type": "module",
"main": "index.js",
"dependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.13.0",
"@guolao/vue-monaco-editor": "^1.5.5",
"@h2d2/shopicons": "^1.9.0",
"@playwright/test": "^1.55.0",
"@popperjs/core": "^2.11.8",
"@types/bootstrap": "^5.2.10",
"@types/canvas-confetti": "^1.9.0",
"@unhead/vue": "^2.0.14",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/compiler-sfc": "^3.2.30",
"@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.6.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.8.1",
"axios": "^1.11.0",
"body-parser": "^2.2.0",
"bootstrap": "^5.3.8",
"canvas-confetti": "^1.9.3",
"chart.js": "^4.5.0",
@ -42,6 +30,43 @@
"chartjs-plugin-datalabels": "^2.2.0",
"countup.js": "^2.9.0",
"dayjs": "^1.11.18",
"monaco-editor": "^0.52.2",
"smoothscroll-polyfill": "^0.4.4",
"snarkdown": "^2.0.0",
"vue": "^3.2.29",
"vue-chartjs": "^5.3.2",
"vue-i18n": "^11.1.12",
"vue-router": "^4.5.1"
},
"engines": {
"npm": ">=10.0.0",
"node": ">=22.0.0"
},
"license": "MIT",
"repository": "github:evcc-io/evcc",
"devDependencies": {
"@chromatic-com/storybook": "^4.2.0-next.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.13.0",
"@playwright/test": "^1.55.0",
"@storybook/vue3": "^10.0.0-beta.2",
"@storybook/vue3-vite": "^10.0.0-beta.2",
"@types/body-parser": "^1.19.6",
"@types/bootstrap": "^5.2.10",
"@types/canvas-confetti": "^1.9.0",
"@types/kill-port": "^2.0.3",
"@types/smoothscroll-polyfill": "^0.3.4",
"@types/wait-on": "^5.3.4",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/compiler-sfc": "^3.2.30",
"@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.6.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.8.1",
"body-parser": "^2.2.0",
"cross-env": "^10.0.0",
"license-compliance": "^3.0.1",
"eslint": "^9.35.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
@ -52,43 +77,20 @@
"globals": "^16.3.0",
"happy-dom": "^18.0.1",
"kill-port": "^2.0.1",
"monaco-editor": "^0.52.2",
"mqtt": "^5.14.1",
"prettier": "^3.6.2",
"prettier-plugin-sh": "^0.18.0",
"prettier-plugin-sort-json": "^4.1.1",
"rollup-plugin-visualizer": "^6.0.3",
"smoothscroll-polyfill": "^0.4.4",
"snarkdown": "^2.0.0",
"storybook": "^10.0.0-beta.2",
"terser": "^5.44.0",
"typescript": "^5.9.2",
"typescript-eslint-language-service": "^5.0.5",
"vite": "^7.1.5",
"vitest": "^3.2.4",
"vue": "^3.2.29",
"vue-chartjs": "^5.3.2",
"vue-eslint-parser": "^10.2.0",
"vue-hot-reload-api": "^2.3.4",
"vue-i18n": "^11.1.12",
"vue-router": "^4.5.1",
"vue-tsc": "^3.0.6",
"wait-on": "^8.0.4"
},
"engines": {
"npm": ">=10.0.0",
"node": ">=22.0.0"
},
"license": "MIT",
"repository": "github:evcc-io/evcc",
"devDependencies": {
"@chromatic-com/storybook": "^4.2.0-next.1",
"@storybook/vue3": "^10.0.0-beta.2",
"@storybook/vue3-vite": "^10.0.0-beta.2",
"@types/body-parser": "^1.19.6",
"@types/kill-port": "^2.0.3",
"@types/smoothscroll-polyfill": "^0.3.4",
"@types/wait-on": "^5.3.4",
"cross-env": "^10.0.0",
"prettier-plugin-sort-json": "^4.1.1",
"storybook": "^10.0.0-beta.2",
"terser": "^5.44.0"
}
}