dependicus 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +17 -6
- package/package.json +6 -6
package/dist/cli.mjs
CHANGED
|
@@ -1313,12 +1313,12 @@ function createCoreServices(config) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
await runSources(ecosystemSources, ecosystemDeps, scopedStore);
|
|
1315
1315
|
}
|
|
1316
|
-
const
|
|
1317
|
-
await runSources([
|
|
1316
|
+
const universalSources = [
|
|
1318
1317
|
new GitHubSource(githubService),
|
|
1319
1318
|
new WorkspaceSource(providers),
|
|
1320
1319
|
...config.sources ?? []
|
|
1321
|
-
]
|
|
1320
|
+
];
|
|
1321
|
+
for (const [ecosystem, outputs] of byEcosystem) await runSources(universalSources, mergeProviderDependencies(outputs), store.scoped(ecosystem));
|
|
1322
1322
|
return {
|
|
1323
1323
|
providers: providerOutputs,
|
|
1324
1324
|
store
|
|
@@ -1406,11 +1406,11 @@ var upgrade_path_default = "{{#if hasVersionsBetween}}\n<section>\n <h2>Upgra
|
|
|
1406
1406
|
|
|
1407
1407
|
//#endregion
|
|
1408
1408
|
//#region ../site-builder/src/templates/layouts/base.hbs
|
|
1409
|
-
var base_default = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>{{title}} - {{siteName}}</title>\n <link rel=\"stylesheet\" href=\"{{baseHref}}styles.css\">\n</head>\n<body>\n {{> nav baseHref=baseHref groupings=groupings siteName=siteName timestamp=timestamp}}\n <main class=\"dep-flow\">\n {{{content}}}\n </main>\n {{#if scripts}}\n {{{scripts}}}\n {{/if}}\n</body>\n</html>";
|
|
1409
|
+
var base_default = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>{{title}} - {{siteName}}</title>\n <link rel=\"stylesheet\" href=\"{{baseHref}}styles.css\">\n</head>\n<body>\n {{> nav baseHref=baseHref providerPrefix=providerPrefix groupings=groupings siteName=siteName timestamp=timestamp}}\n <main class=\"dep-flow\">\n {{{content}}}\n </main>\n {{#if scripts}}\n {{{scripts}}}\n {{/if}}\n</body>\n</html>";
|
|
1410
1410
|
|
|
1411
1411
|
//#endregion
|
|
1412
1412
|
//#region ../site-builder/src/templates/layouts/index.hbs
|
|
1413
|
-
var layouts_default = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>{{siteName}} - {{title}}</title>\n <style>\n{{{cssContent}}}\n </style>\n</head>\n<body class=\"dep-dashboard\">\n {{> nav baseHref=\"\" groupings=groupings siteName=siteName timestamp=timestamp}}\n {{{content}}}\n\n <script>\n // Bundled browser code (main.ts + formatters.ts + config.ts)\n{{{bundledJs}}}\n <\/script>\n</body>\n</html>";
|
|
1413
|
+
var layouts_default = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>{{siteName}} - {{title}}</title>\n <style>\n{{{cssContent}}}\n </style>\n</head>\n<body class=\"dep-dashboard\">\n {{> nav baseHref=\"\" providerPrefix=providerPrefix groupings=groupings siteName=siteName timestamp=timestamp}}\n {{{content}}}\n\n <script>\n // Bundled browser code (main.ts + formatters.ts + config.ts)\n{{{bundledJs}}}\n <\/script>\n</body>\n</html>";
|
|
1414
1414
|
|
|
1415
1415
|
//#endregion
|
|
1416
1416
|
//#region ../site-builder/src/templates/pages/dependency-detail.hbs
|
|
@@ -1691,12 +1691,14 @@ var HtmlWriter = class {
|
|
|
1691
1691
|
slug: g.slugPrefix ?? g.key
|
|
1692
1692
|
})))
|
|
1693
1693
|
});
|
|
1694
|
+
const defaultProviderPrefix = providers.length > 0 ? `${providers[0].name}/` : "";
|
|
1694
1695
|
return this.templateService.render("layouts/index", {
|
|
1695
1696
|
title: "Dependency Report",
|
|
1696
1697
|
siteName: this.siteName,
|
|
1697
1698
|
cssContent,
|
|
1698
1699
|
bundledJs,
|
|
1699
1700
|
content,
|
|
1701
|
+
providerPrefix: defaultProviderPrefix,
|
|
1700
1702
|
timestamp: (/* @__PURE__ */ new Date()).toLocaleString(),
|
|
1701
1703
|
groupings: this.groupings.map((g) => ({
|
|
1702
1704
|
label: g.label,
|
|
@@ -2011,7 +2013,16 @@ async function createDependicus(config) {
|
|
|
2011
2013
|
};
|
|
2012
2014
|
},
|
|
2013
2015
|
refreshLocal(dependencies, store) {
|
|
2014
|
-
|
|
2016
|
+
const byEcosystem = /* @__PURE__ */ new Map();
|
|
2017
|
+
for (const dep of dependencies) {
|
|
2018
|
+
const list = byEcosystem.get(dep.ecosystem) ?? [];
|
|
2019
|
+
list.push(dep);
|
|
2020
|
+
byEcosystem.set(dep.ecosystem, list);
|
|
2021
|
+
}
|
|
2022
|
+
for (const [ecosystem, deps] of byEcosystem) {
|
|
2023
|
+
const scoped = store.scoped(ecosystem);
|
|
2024
|
+
for (const source of config.sources ?? []) source.refreshLocal?.(deps, scoped);
|
|
2025
|
+
}
|
|
2015
2026
|
},
|
|
2016
2027
|
async generateSite(providers, store) {
|
|
2017
2028
|
await mkdir(outputDir, { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dependicus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Dependency governance for monorepos: pnpm, bun, yarn, npm, mise, uv, Go, and Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"audit",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"typedoc": "^0.28.17",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
59
59
|
"vitest": "^4.0.18",
|
|
60
|
-
"@dependicus/
|
|
60
|
+
"@dependicus/github-issues": "0.1.0",
|
|
61
61
|
"@dependicus/linear": "0.1.0",
|
|
62
|
+
"@dependicus/provider-go": "0.1.0",
|
|
63
|
+
"@dependicus/core": "0.1.0",
|
|
62
64
|
"@dependicus/provider-rust": "0.1.0",
|
|
63
|
-
"@dependicus/site-builder": "0.1.0",
|
|
64
65
|
"@dependicus/provider-mise": "0.1.0",
|
|
65
66
|
"@dependicus/providers-python": "0.1.0",
|
|
66
|
-
"@dependicus/
|
|
67
|
-
"@dependicus/
|
|
68
|
-
"@dependicus/provider-go": "0.1.0"
|
|
67
|
+
"@dependicus/site-builder": "0.1.0",
|
|
68
|
+
"@dependicus/providers-node": "0.1.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"dependicus": "node dist/bin.mjs",
|