Skip to content

Commit

Permalink
chore: added dependencies license report generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Apr 6, 2024
1 parent b275c0a commit 3bda913
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
db/*
cache/*
dist/*
license_report/*
tmp_core_tsc/*
*.ignore.*
/start_*.bat
Expand Down
11 changes: 11 additions & 0 deletions .license-reportrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"output": "html",
"fields": [
"name",
"licenseType",
"link",
"installedVersion",
"definedVersion",
"author"
]
}
3 changes: 2 additions & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"typecheck": "tsc -p tsconfig.json --noEmit",
"lint": "eslint ./**",
"lint:count": "eslint ./** -f ../scripts/lint-formatter.js",
"lint:fix": "eslint ./** --fix"
"lint:fix": "eslint ./** --fix",
"license_report": "npx license-report > ../license_report/core.html"
},
"keywords": [],
"author": "André Tabarra",
Expand Down
3 changes: 2 additions & 1 deletion nui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "vite build --mode production",
"dev": "vite build --watch --mode development",
"browser": "vite dev --port 40121 --strictPort --mode devNuiBrowser",
"typecheck": "tsc -p tsconfig.json --noEmit"
"typecheck": "tsc -p tsconfig.json --noEmit",
"license_report": "npx license-report > ../license_report/nui.html"
},
"keywords": [],
"author": "André Tabarra",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"test": "bash ./scripts/test_build.sh",
"typecheck": "npm run typecheck --workspaces",
"locale:rebase": "node scripts/locale-utils.js rebase",
"locale:check": "node scripts/locale-utils.js check --color"
"locale:check": "node scripts/locale-utils.js check --color",
"license_report": "rimraf license_report && mkdir license_report && npm run license_report --workspaces"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "vite build",
"typecheck": "tsc -p tsconfig.json --noEmit",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"license_report": "npx license-report > ../license_report/panel.html"
},
"dependencies": {
"@fontsource-variable/inter": "^5.0.17",
Expand Down
3 changes: 2 additions & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "The shared package contains stuff used in more than one package, no build step required.",
"main": "index.js",
"scripts": {
"typecheck": "tsc -p tsconfig.json --noEmit"
"typecheck": "tsc -p tsconfig.json --noEmit",
"license_report": "npx license-report > ../license_report/shared.html"
},
"keywords": [],
"author": "André Tabarra",
Expand Down

0 comments on commit 3bda913

Please sign in to comment.