@h-rig/dependency-graph-plugin 0.0.6-alpha.133

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/README.md ADDED
@@ -0,0 +1 @@
1
+ # @h-rig/dependency-graph-plugin
@@ -0,0 +1 @@
1
+ export * from "./plugin";
@@ -0,0 +1,28 @@
1
+ // @bun
2
+ // packages/dependency-graph-plugin/src/plugin.ts
3
+ import { definePlugin } from "@rig/core";
4
+ import { buildDependencyGraphModel } from "@rig/core/dependency-graph";
5
+ var DEPENDENCY_GRAPH_PLUGIN_NAME = "@rig/dependency-graph-plugin";
6
+ function projectDependencyGraph(tasks, options = {}) {
7
+ return buildDependencyGraphModel(tasks, options);
8
+ }
9
+ var dependencyGraphPlugin = definePlugin({
10
+ name: DEPENDENCY_GRAPH_PLUGIN_NAME,
11
+ version: "0.0.0-alpha.1",
12
+ provides: [],
13
+ requires: [],
14
+ contributes: {
15
+ cliCommands: [
16
+ {
17
+ id: "dependency-graph.show",
18
+ command: "rig graph",
19
+ description: "Render or export the task dependency graph projection."
20
+ }
21
+ ]
22
+ }
23
+ });
24
+ export {
25
+ projectDependencyGraph,
26
+ dependencyGraphPlugin,
27
+ DEPENDENCY_GRAPH_PLUGIN_NAME
28
+ };
@@ -0,0 +1,6 @@
1
+ import type { TaskSummary } from "@rig/contracts";
2
+ import { type BuildDependencyGraphModelOptions, type DependencyGraphModel } from "@rig/core/dependency-graph";
3
+ export declare const DEPENDENCY_GRAPH_PLUGIN_NAME = "@rig/dependency-graph-plugin";
4
+ export declare function projectDependencyGraph(tasks: readonly TaskSummary[], options?: BuildDependencyGraphModelOptions): DependencyGraphModel;
5
+ export declare const dependencyGraphPlugin: import("@rig/core").RigPluginWithRuntime;
6
+ export default dependencyGraphPlugin;
@@ -0,0 +1,30 @@
1
+ // @bun
2
+ // packages/dependency-graph-plugin/src/plugin.ts
3
+ import { definePlugin } from "@rig/core";
4
+ import { buildDependencyGraphModel } from "@rig/core/dependency-graph";
5
+ var DEPENDENCY_GRAPH_PLUGIN_NAME = "@rig/dependency-graph-plugin";
6
+ function projectDependencyGraph(tasks, options = {}) {
7
+ return buildDependencyGraphModel(tasks, options);
8
+ }
9
+ var dependencyGraphPlugin = definePlugin({
10
+ name: DEPENDENCY_GRAPH_PLUGIN_NAME,
11
+ version: "0.0.0-alpha.1",
12
+ provides: [],
13
+ requires: [],
14
+ contributes: {
15
+ cliCommands: [
16
+ {
17
+ id: "dependency-graph.show",
18
+ command: "rig graph",
19
+ description: "Render or export the task dependency graph projection."
20
+ }
21
+ ]
22
+ }
23
+ });
24
+ var plugin_default = dependencyGraphPlugin;
25
+ export {
26
+ projectDependencyGraph,
27
+ dependencyGraphPlugin,
28
+ plugin_default as default,
29
+ DEPENDENCY_GRAPH_PLUGIN_NAME
30
+ };
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@h-rig/dependency-graph-plugin",
3
+ "version": "0.0.6-alpha.133",
4
+ "type": "module",
5
+ "description": "First-party dependency graph projection plugin for Rig.",
6
+ "license": "UNLICENSED",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/src/index.d.ts",
14
+ "import": "./dist/src/index.js"
15
+ },
16
+ "./plugin": {
17
+ "types": "./dist/src/plugin.d.ts",
18
+ "import": "./dist/src/plugin.js"
19
+ }
20
+ },
21
+ "engines": {
22
+ "bun": ">=1.3.11"
23
+ },
24
+ "main": "./dist/src/index.js",
25
+ "module": "./dist/src/index.js",
26
+ "types": "./dist/src/index.d.ts",
27
+ "dependencies": {
28
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.133",
29
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.133"
30
+ }
31
+ }