Skip to content

Commit cae7fdc

Browse files
committed
chore: license attribution in visualizer project, extracted MarkdownBlock component
1 parent bda19f5 commit cae7fdc

11 files changed

Lines changed: 16408 additions & 32 deletions

File tree

packages/license-kit/src/commands/visualize.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export default function visualizeCommandSetup(program: Command): Command {
2525
return curryCommonScanOptions(
2626
program
2727
.command('visualize')
28-
.description('Launch a web license graph visualizer & analyzer app.')
28+
.description(
29+
'Launches a local server providing a web license graph visualizer & analyzer app: calculate permissiveness score (weighted average of points preset for given types), shows an interactive graph of licenses with possibility to select a subgraph, provides browser built-in AI-turbocharged summary of the dependency graph.',
30+
)
2931
.option(
3032
'--port [port]',
3133
'Port on which to launch the app',

packages/license-kit/visualizer/next.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
distDir: '../visualizer-build',
5+
webpack(config) {
6+
config.module.rules.push({
7+
test: /\.md$/,
8+
use: 'raw-loader',
9+
});
10+
11+
return config;
12+
},
513
};
614

715
export default nextConfig;

packages/license-kit/visualizer/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7-
"build": "next build",
7+
"build": "yarn licenses && next build",
8+
"licenses": "yarn workspace license-kit dev report --format markdown --output src/app/licenses/licenses.md --transitive-deps-mode all --dev-deps-mode root-only --include-optional-deps --root $(pwd)",
89
"lint": "next lint",
910
"prepare": "yarn build"
1011
},
@@ -44,6 +45,7 @@
4445
"@types/react-dom": "^19",
4546
"eslint-import-resolver-typescript": "^4.4.4",
4647
"eslint-plugin-react-hooks": "^5.2.0",
48+
"raw-loader": "^4.0.2",
4749
"typescript": "^5"
4850
}
4951
}

0 commit comments

Comments
 (0)