@powerlines/plugin-pulumi 0.2.295 → 0.3.0

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/index.cjs CHANGED
@@ -1,6 +1,10 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
+ let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
5
+ let __powerlines_plugin_alloy_yaml_components_yaml_file = require("@powerlines/plugin-alloy/yaml/components/yaml-file");
3
6
  let __pulumi_pulumi_automation = require("@pulumi/pulumi/automation");
7
+ let __stryke_fs_package_fns = require("@stryke/fs/package-fns");
4
8
  let __stryke_helpers = require("@stryke/helpers");
5
9
  let __stryke_path_join = require("@stryke/path/join");
6
10
  let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
@@ -8,7 +12,7 @@ let defu = require("defu");
8
12
  defu = require_rolldown_runtime.__toESM(defu);
9
13
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
10
14
 
11
- //#region src/index.ts
15
+ //#region src/index.tsx
12
16
  /**
13
17
  * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
14
18
  *
@@ -23,20 +27,36 @@ const plugin = (options = {}) => {
23
27
  async config() {
24
28
  return { deploy: { pulumi: (0, defu.default)(options, {
25
29
  projectName: this.config.name,
26
- workDir: (0, __stryke_path_join.joinPaths)(this.artifactsPath, "infrastructure"),
27
30
  settings: {}
28
31
  }) } };
29
32
  },
30
33
  async configResolved() {
31
34
  if (!options.stack) this.config.pulumi.stackName ??= (0, __pulumi_pulumi_automation.fullyQualifiedStackName)((0, __stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getOrganizationName)(this) || "default"), `${(0, powerlines_plugin_utils.getWorkspaceName)(this) ? `${(0, __stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getWorkspaceName)(this))}-` : ""}${(0, __stryke_string_format_kebab_case.kebabCase)(this.config.name)}`, this.config.mode);
32
35
  },
36
+ async prepare() {
37
+ const _self$ = this;
38
+ await (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_yaml_components_yaml_file.YamlFile, {
39
+ get path() {
40
+ return (0, __stryke_path_join.joinPaths)(_self$.infrastructurePath, "Pulumi.yaml");
41
+ },
42
+ get data() {
43
+ return { runtime: {
44
+ name: "nodejs",
45
+ options: { packagemanager: (0, __stryke_fs_package_fns.getPackageManager)(_self$.workspaceConfig.workspaceRoot) }
46
+ } };
47
+ }
48
+ }));
49
+ },
33
50
  deploy: {
34
51
  order: "post",
35
52
  async handler() {
36
53
  this.info(`Deploying Pulumi stack: ${this.config.pulumi.stack?.name || this.config.pulumi.stackName}`);
37
54
  if (!options.stack && !options.program && !options.projectName || !options.workDir) throw new Error(`Pulumi plugin requires either an inline program or a working directory to be specified.`);
38
55
  let stack = options.stack;
39
- stack ??= await __pulumi_pulumi_automation.LocalWorkspace.createOrSelectStack((0, __stryke_helpers.omit)(this.config.pulumi, ["options", "settings"]));
56
+ stack ??= await __pulumi_pulumi_automation.LocalWorkspace.createOrSelectStack({
57
+ workDir: (0, __stryke_path_join.joinPaths)(this.infrastructurePath),
58
+ ...(0, __stryke_helpers.omit)(this.config.pulumi, ["options", "settings"])
59
+ });
40
60
  if (this.config.pulumi.settings && Object.keys(this.config.pulumi.settings).length > 0) await stack.workspace.saveStackSettings(stack.name, this.config.pulumi.settings);
41
61
  await stack.refresh({ onOutput: this.debug.bind(this) });
42
62
  if (this.config.pulumi.destroy) await stack.destroy({ onOutput: this.debug.bind(this) });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAqCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;IAwCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAqCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;IAwCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
package/dist/index.mjs CHANGED
@@ -1,11 +1,15 @@
1
+ import { createComponent } from "@alloy-js/core/jsx-runtime";
2
+ import { render } from "@powerlines/plugin-alloy/render";
3
+ import { YamlFile } from "@powerlines/plugin-alloy/yaml/components/yaml-file";
1
4
  import { LocalWorkspace, fullyQualifiedStackName } from "@pulumi/pulumi/automation";
5
+ import { getPackageManager } from "@stryke/fs/package-fns";
2
6
  import { omit } from "@stryke/helpers";
3
7
  import { joinPaths } from "@stryke/path/join";
4
8
  import { kebabCase } from "@stryke/string-format/kebab-case";
5
9
  import defu from "defu";
6
10
  import { getOrganizationName, getWorkspaceName } from "powerlines/plugin-utils";
7
11
 
8
- //#region src/index.ts
12
+ //#region src/index.tsx
9
13
  /**
10
14
  * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
11
15
  *
@@ -20,20 +24,36 @@ const plugin = (options = {}) => {
20
24
  async config() {
21
25
  return { deploy: { pulumi: defu(options, {
22
26
  projectName: this.config.name,
23
- workDir: joinPaths(this.artifactsPath, "infrastructure"),
24
27
  settings: {}
25
28
  }) } };
26
29
  },
27
30
  async configResolved() {
28
31
  if (!options.stack) this.config.pulumi.stackName ??= fullyQualifiedStackName(kebabCase(getOrganizationName(this) || "default"), `${getWorkspaceName(this) ? `${kebabCase(getWorkspaceName(this))}-` : ""}${kebabCase(this.config.name)}`, this.config.mode);
29
32
  },
33
+ async prepare() {
34
+ const _self$ = this;
35
+ await render(this, createComponent(YamlFile, {
36
+ get path() {
37
+ return joinPaths(_self$.infrastructurePath, "Pulumi.yaml");
38
+ },
39
+ get data() {
40
+ return { runtime: {
41
+ name: "nodejs",
42
+ options: { packagemanager: getPackageManager(_self$.workspaceConfig.workspaceRoot) }
43
+ } };
44
+ }
45
+ }));
46
+ },
30
47
  deploy: {
31
48
  order: "post",
32
49
  async handler() {
33
50
  this.info(`Deploying Pulumi stack: ${this.config.pulumi.stack?.name || this.config.pulumi.stackName}`);
34
51
  if (!options.stack && !options.program && !options.projectName || !options.workDir) throw new Error(`Pulumi plugin requires either an inline program or a working directory to be specified.`);
35
52
  let stack = options.stack;
36
- stack ??= await LocalWorkspace.createOrSelectStack(omit(this.config.pulumi, ["options", "settings"]));
53
+ stack ??= await LocalWorkspace.createOrSelectStack({
54
+ workDir: joinPaths(this.infrastructurePath),
55
+ ...omit(this.config.pulumi, ["options", "settings"])
56
+ });
37
57
  if (this.config.pulumi.settings && Object.keys(this.config.pulumi.settings).length > 0) await stack.workspace.saveStackSettings(stack.name, this.config.pulumi.settings);
38
58
  await stack.refresh({ onOutput: this.debug.bind(this) });
39
59
  if (this.config.pulumi.destroy) await stack.destroy({ onOutput: this.debug.bind(this) });
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n fullyQualifiedStackName,\n LocalWorkspace\n} from \"@pulumi/pulumi/automation\";\nimport { omit } from \"@stryke/helpers\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getOrganizationName, getWorkspaceName } from \"powerlines/plugin-utils\";\nimport {\n PulumiPluginContext,\n PulumiPluginCreateStackInlineOptions,\n PulumiPluginCreateStackLocalOptions,\n PulumiPluginCreateStackOptions,\n PulumiPluginExistingStackOptions,\n PulumiPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n pulumi?: PulumiPluginOptions;\n }\n}\n\n/**\n * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.\n *\n * @see https://www.pulumi.com\n *\n * @param options - The Pulumi plugin user configuration options.\n * @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.\n */\nexport const plugin = <\n TContext extends PulumiPluginContext = PulumiPluginContext\n>(\n options: PulumiPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"pulumi\",\n async config() {\n return {\n deploy: {\n pulumi: defu(options, {\n projectName: this.config.name,\n workDir: joinPaths(this.artifactsPath, \"infrastructure\"),\n settings: {}\n })\n }\n };\n },\n async configResolved() {\n if (!(options as PulumiPluginExistingStackOptions).stack) {\n (this.config.pulumi as PulumiPluginCreateStackOptions).stackName ??=\n fullyQualifiedStackName(\n kebabCase(getOrganizationName(this) || \"default\"),\n `${\n getWorkspaceName(this)\n ? `${kebabCase(getWorkspaceName(this))}-`\n : \"\"\n }${kebabCase(this.config.name)}`,\n this.config.mode\n );\n }\n },\n deploy: {\n order: \"post\",\n async handler() {\n this.info(\n `Deploying Pulumi stack: ${\n (this.config.pulumi as PulumiPluginExistingStackOptions).stack\n ?.name ||\n (this.config.pulumi as PulumiPluginCreateStackOptions).stackName\n }`\n );\n\n if (\n (!(options as PulumiPluginExistingStackOptions).stack &&\n !(options as PulumiPluginCreateStackInlineOptions).program &&\n !(options as PulumiPluginCreateStackInlineOptions).projectName) ||\n !(options as PulumiPluginCreateStackLocalOptions).workDir\n ) {\n throw new Error(\n `Pulumi plugin requires either an inline program or a working directory to be specified.`\n );\n }\n\n let stack = (options as PulumiPluginExistingStackOptions).stack;\n stack ??= await LocalWorkspace.createOrSelectStack(\n omit(this.config.pulumi as PulumiPluginCreateStackOptions, [\n \"options\",\n \"settings\"\n ]) as Parameters<typeof LocalWorkspace.createOrSelectStack>[0]\n );\n\n if (\n this.config.pulumi.settings &&\n Object.keys(this.config.pulumi.settings).length > 0\n ) {\n await stack.workspace.saveStackSettings(\n stack.name,\n this.config.pulumi.settings\n );\n }\n\n await stack.refresh({ onOutput: this.debug.bind(this) });\n\n if (this.config.pulumi.destroy) {\n await stack.destroy({ onOutput: this.debug.bind(this) });\n }\n\n const result = await stack.up({\n onOutput: this.debug.bind(this)\n });\n\n this.info(\n `Successfully deployed ${stack.name} (v${result.summary.version}): ${result.summary.message}`\n );\n }\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"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AAK,KAAK,EAChC,CAAC;AAEF,SAAK,KACH,yBAAyB,MAAM,KAAK,KAAK,OAAO,QAAQ,QAAQ,KAAK,OAAO,QAAQ,UACrF;;GAEJ;EACF;;AAGH,kBAAe"}
1
+ {"version":3,"file":"index.mjs","names":["render","YamlFile","fullyQualifiedStackName","LocalWorkspace","getPackageManager","omit","joinPaths","kebabCase","defu","getOrganizationName","getWorkspaceName","plugin","options","name","config","deploy","pulumi","projectName","settings","configResolved","stack","stackName","mode","prepare","_self$","_$createComponent","path","infrastructurePath","data","runtime","packagemanager","workspaceConfig","workspaceRoot","order","handler","info","program","workDir","Error","createOrSelectStack","Object","keys","length","workspace","saveStackSettings","refresh","onOutput","debug","bind","destroy","result","up","summary","version","message"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { YamlFile } from \"@powerlines/plugin-alloy/yaml/components/yaml-file\";\nimport {\n fullyQualifiedStackName,\n LocalWorkspace\n} from \"@pulumi/pulumi/automation\";\nimport { getPackageManager } from \"@stryke/fs/package-fns\";\nimport { omit } from \"@stryke/helpers\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getOrganizationName, getWorkspaceName } from \"powerlines/plugin-utils\";\nimport {\n PulumiPluginContext,\n PulumiPluginCreateStackInlineOptions,\n PulumiPluginCreateStackLocalOptions,\n PulumiPluginCreateStackOptions,\n PulumiPluginExistingStackOptions,\n PulumiPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n pulumi?: PulumiPluginOptions;\n }\n}\n\n/**\n * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.\n *\n * @see https://www.pulumi.com\n *\n * @param options - The Pulumi plugin user configuration options.\n * @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.\n */\nexport const plugin = <\n TContext extends PulumiPluginContext = PulumiPluginContext\n>(\n options: PulumiPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"pulumi\",\n async config() {\n return {\n deploy: {\n pulumi: defu(options, {\n projectName: this.config.name,\n settings: {}\n })\n }\n };\n },\n async configResolved() {\n if (!(options as PulumiPluginExistingStackOptions).stack) {\n (this.config.pulumi as PulumiPluginCreateStackOptions).stackName ??=\n fullyQualifiedStackName(\n kebabCase(getOrganizationName(this) || \"default\"),\n `${\n getWorkspaceName(this)\n ? `${kebabCase(getWorkspaceName(this))}-`\n : \"\"\n }${kebabCase(this.config.name)}`,\n this.config.mode\n );\n }\n },\n async prepare() {\n await render(\n this,\n <YamlFile\n path={joinPaths(this.infrastructurePath, \"Pulumi.yaml\")}\n data={{\n runtime: {\n name: \"nodejs\",\n options: {\n packagemanager: getPackageManager(\n this.workspaceConfig.workspaceRoot\n )\n }\n }\n }}\n />\n );\n },\n deploy: {\n order: \"post\",\n async handler() {\n this.info(\n `Deploying Pulumi stack: ${\n (this.config.pulumi as PulumiPluginExistingStackOptions).stack\n ?.name ||\n (this.config.pulumi as PulumiPluginCreateStackOptions).stackName\n }`\n );\n\n if (\n (!(options as PulumiPluginExistingStackOptions).stack &&\n !(options as PulumiPluginCreateStackInlineOptions).program &&\n !(options as PulumiPluginCreateStackInlineOptions).projectName) ||\n !(options as PulumiPluginCreateStackLocalOptions).workDir\n ) {\n throw new Error(\n `Pulumi plugin requires either an inline program or a working directory to be specified.`\n );\n }\n\n let stack = (options as PulumiPluginExistingStackOptions).stack;\n stack ??= await LocalWorkspace.createOrSelectStack({\n workDir: joinPaths(this.infrastructurePath),\n ...(omit(this.config.pulumi as PulumiPluginCreateStackOptions, [\n \"options\",\n \"settings\"\n ]) as Parameters<typeof LocalWorkspace.createOrSelectStack>[0])\n });\n\n if (\n this.config.pulumi.settings &&\n Object.keys(this.config.pulumi.settings).length > 0\n ) {\n await stack.workspace.saveStackSettings(\n stack.name,\n this.config.pulumi.settings\n );\n }\n\n await stack.refresh({ onOutput: this.debug.bind(this) });\n\n if (this.config.pulumi.destroy) {\n await stack.destroy({ onOutput: this.debug.bind(this) });\n }\n\n const result = await stack.up({\n onOutput: this.debug.bind(this)\n });\n\n this.info(\n `Successfully deployed ${stack.name} (v${result.summary.version}): ${result.summary.message}`\n );\n }\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwDA,MAAaW,UAGXC,UAA+B,EAAE,KACZ;AACrB,QAAO;EACLC,MAAM;EACN,MAAMC,SAAS;AACb,UAAO,EACLC,QAAQ,EACNC,QAAQR,KAAKI,SAAS;IACpBK,aAAa,KAAKH,OAAOD;IACzBK,UAAU,EAAC;IACZ,CAAA,EACH,EACD;;EAEH,MAAMC,iBAAiB;AACrB,OAAI,CAAEP,QAA6CQ,MAChD,MAAKN,OAAOE,OAA0CK,cACrDnB,wBACEK,UAAUE,oBAAoB,KAAK,IAAI,UAAU,EACjD,GACEC,iBAAiB,KAAK,GAClB,GAAGH,UAAUG,iBAAiB,KAAK,CAAC,CAAA,KACpC,KACHH,UAAU,KAAKO,OAAOD,KAAK,IAC9B,KAAKC,OAAOQ,KACb;;EAGP,MAAMC,UAAU;GAAA,MAAAC,SAAA;AACd,SAAMxB,OACJ,MAAIyB,gBACHxB,UAAQ;IAAA,IACPyB,OAAI;AAAA,YAAEpB,UAAUkB,OAAKG,oBAAoB,cAAc;;IAAA,IACvDC,OAAI;A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ugin-pulumi",
3
- "version": "0.2.295",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
6
6
  "repository": {
@@ -89,6 +89,7 @@
89
89
  "files": ["dist/**/*"],
90
90
  "keywords": ["pulumi", "powerlines", "storm-software", "powerlines-plugin"],
91
91
  "dependencies": {
92
+ "@powerlines/plugin-alloy": "^0.25.0",
92
93
  "@pulumi/pulumi": "^3.225.1",
93
94
  "@stryke/fs": "^0.33.53",
94
95
  "@stryke/helpers": "^0.9.51",
@@ -97,14 +98,14 @@
97
98
  "@stryke/type-checks": "^0.5.34",
98
99
  "@stryke/types": "^0.10.48",
99
100
  "defu": "^6.1.4",
100
- "powerlines": "^0.40.2",
101
+ "powerlines": "^0.40.3",
101
102
  "typescript": "^5.9.3"
102
103
  },
103
104
  "devDependencies": {
104
- "@powerlines/plugin-plugin": "^0.12.266",
105
+ "@powerlines/plugin-plugin": "^0.12.267",
105
106
  "@types/node": "^25.3.5"
106
107
  },
107
108
  "publishConfig": { "access": "public" },
108
109
  "types": "./dist/index.d.cts",
109
- "gitHead": "9d8c7149d35ca03f3ce533b404084b720eecf1a4"
110
+ "gitHead": "50b8a5ce8e5dbafd182ff7c8659469af86eef47c"
110
111
  }