@powerlines/plugin-pulumi 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var automation=require('@pulumi/pulumi/automation'),index=require('@stryke/helpers/index'),join=require('@stryke/path/join'),kebabCase=require('@stryke/string-format/kebab-case'),r=require('defu'),contextHelpers=require('powerlines/plugin-utils/context-helpers'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var r__default=/*#__PURE__*/_interopDefault(r);/*****************************************
2
+ *
3
+ * ⚡ Built by Storm Software
4
+ *
5
+ *****************************************/
6
+
7
+ var e=Object.defineProperty;var o=(t,i)=>e(t,"name",{value:i,configurable:true});const p=o((t={})=>({name:"pulumi",async config(){return {deploy:{pulumi:r__default.default(t,{workDir:join.joinPaths(this.artifactsPath,"infrastructure")})}}},async configResolved(){this.config.deploy.pulumi.stackName??=automation.fullyQualifiedStackName(kebabCase.kebabCase(contextHelpers.getOrganizationName(this)||"default"),kebabCase.kebabCase(this.config.name),this.config.mode),this.pulumi=await automation.LocalWorkspace.createOrSelectStack(index.omit(this.config.deploy.pulumi,["options"]),this.config.deploy.pulumi.options);},deploy:{order:"post",async handler(){await this.pulumi.refresh({onOutput:this.debug.bind(this)}),this.config.deploy.pulumi.destroy&&await this.pulumi.destroy({onOutput:this.debug.bind(this)});const i=await this.pulumi.up({onOutput:this.debug.bind(this)});this.info(`Successfully deployed ${this.config.deploy.pulumi.stackName} (v${i.summary.version}): ${i.summary.message}`);}}}),"plugin");var N=p;exports.default=N;exports.plugin=p;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
@@ -0,0 +1,33 @@
1
+ import { P as PulumiPluginContext, a as PulumiPluginOptions, b as Plugin } from './index-EdAx48bl.cjs';
2
+ export { d as PulumiPluginResolvedConfig, c as PulumiPluginUserConfig } from './index-EdAx48bl.cjs';
3
+ import '@pulumi/pulumi/automation';
4
+ import '@storm-software/build-tools/types';
5
+ import '@storm-software/config-tools/types';
6
+ import '@storm-software/config/types';
7
+ import '@stryke/types/base';
8
+ import '@stryke/types/configuration';
9
+ import '@stryke/types/file';
10
+ import 'vite';
11
+ import '@stryke/env/get-env-paths';
12
+ import '@stryke/types/package-json';
13
+ import 'jiti';
14
+ import 'oxc-parser';
15
+ import 'semver';
16
+ import 'unplugin';
17
+ import '@stryke/types/tsconfig';
18
+ import 'typescript';
19
+ import '@stryke/json/types';
20
+ import 'node:fs';
21
+ import '@stryke/types/array';
22
+
23
+ /**
24
+ * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
25
+ *
26
+ * @see https://www.pulumi.com
27
+ *
28
+ * @param options - The Pulumi plugin user configuration options.
29
+ * @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.
30
+ */
31
+ declare const plugin: <TContext extends PulumiPluginContext = PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>;
32
+
33
+ export { PulumiPluginContext, PulumiPluginOptions, plugin as default, plugin };
@@ -0,0 +1,33 @@
1
+ import { P as PulumiPluginContext, a as PulumiPluginOptions, b as Plugin } from './index-EdAx48bl.js';
2
+ export { d as PulumiPluginResolvedConfig, c as PulumiPluginUserConfig } from './index-EdAx48bl.js';
3
+ import '@pulumi/pulumi/automation';
4
+ import '@storm-software/build-tools/types';
5
+ import '@storm-software/config-tools/types';
6
+ import '@storm-software/config/types';
7
+ import '@stryke/types/base';
8
+ import '@stryke/types/configuration';
9
+ import '@stryke/types/file';
10
+ import 'vite';
11
+ import '@stryke/env/get-env-paths';
12
+ import '@stryke/types/package-json';
13
+ import 'jiti';
14
+ import 'oxc-parser';
15
+ import 'semver';
16
+ import 'unplugin';
17
+ import '@stryke/types/tsconfig';
18
+ import 'typescript';
19
+ import '@stryke/json/types';
20
+ import 'node:fs';
21
+ import '@stryke/types/array';
22
+
23
+ /**
24
+ * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
25
+ *
26
+ * @see https://www.pulumi.com
27
+ *
28
+ * @param options - The Pulumi plugin user configuration options.
29
+ * @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.
30
+ */
31
+ declare const plugin: <TContext extends PulumiPluginContext = PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>;
32
+
33
+ export { PulumiPluginContext, PulumiPluginOptions, plugin as default, plugin };
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import {fullyQualifiedStackName,LocalWorkspace}from'@pulumi/pulumi/automation';import {omit}from'@stryke/helpers/index';import {joinPaths}from'@stryke/path/join';import {kebabCase}from'@stryke/string-format/kebab-case';import r from'defu';import {getOrganizationName}from'powerlines/plugin-utils/context-helpers';export*from'./types';/*****************************************
2
+ *
3
+ * ⚡ Built by Storm Software
4
+ *
5
+ *****************************************/
6
+
7
+ var e=Object.defineProperty;var o=(t,i)=>e(t,"name",{value:i,configurable:true});const p=o((t={})=>({name:"pulumi",async config(){return {deploy:{pulumi:r(t,{workDir:joinPaths(this.artifactsPath,"infrastructure")})}}},async configResolved(){this.config.deploy.pulumi.stackName??=fullyQualifiedStackName(kebabCase(getOrganizationName(this)||"default"),kebabCase(this.config.name),this.config.mode),this.pulumi=await LocalWorkspace.createOrSelectStack(omit(this.config.deploy.pulumi,["options"]),this.config.deploy.pulumi.options);},deploy:{order:"post",async handler(){await this.pulumi.refresh({onOutput:this.debug.bind(this)}),this.config.deploy.pulumi.destroy&&await this.pulumi.destroy({onOutput:this.debug.bind(this)});const i=await this.pulumi.up({onOutput:this.debug.bind(this)});this.info(`Successfully deployed ${this.config.deploy.pulumi.stackName} (v${i.summary.version}): ${i.summary.message}`);}}}),"plugin");var S=p;export{S as default,p as plugin};
@@ -0,0 +1 @@
1
+ 'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
@@ -0,0 +1,20 @@
1
+ export { P as PulumiPluginContext, a as PulumiPluginOptions, d as PulumiPluginResolvedConfig, c as PulumiPluginUserConfig } from '../index-EdAx48bl.cjs';
2
+ import '@pulumi/pulumi/automation';
3
+ import '@storm-software/build-tools/types';
4
+ import '@storm-software/config-tools/types';
5
+ import '@storm-software/config/types';
6
+ import '@stryke/types/base';
7
+ import '@stryke/types/configuration';
8
+ import '@stryke/types/file';
9
+ import 'vite';
10
+ import '@stryke/env/get-env-paths';
11
+ import '@stryke/types/package-json';
12
+ import 'jiti';
13
+ import 'oxc-parser';
14
+ import 'semver';
15
+ import 'unplugin';
16
+ import '@stryke/types/tsconfig';
17
+ import 'typescript';
18
+ import '@stryke/json/types';
19
+ import 'node:fs';
20
+ import '@stryke/types/array';
@@ -0,0 +1,20 @@
1
+ export { P as PulumiPluginContext, a as PulumiPluginOptions, d as PulumiPluginResolvedConfig, c as PulumiPluginUserConfig } from '../index-EdAx48bl.js';
2
+ import '@pulumi/pulumi/automation';
3
+ import '@storm-software/build-tools/types';
4
+ import '@storm-software/config-tools/types';
5
+ import '@storm-software/config/types';
6
+ import '@stryke/types/base';
7
+ import '@stryke/types/configuration';
8
+ import '@stryke/types/file';
9
+ import 'vite';
10
+ import '@stryke/env/get-env-paths';
11
+ import '@stryke/types/package-json';
12
+ import 'jiti';
13
+ import 'oxc-parser';
14
+ import 'semver';
15
+ import 'unplugin';
16
+ import '@stryke/types/tsconfig';
17
+ import 'typescript';
18
+ import '@stryke/json/types';
19
+ import 'node:fs';
20
+ import '@stryke/types/array';
@@ -0,0 +1 @@
1
+ export*from'./plugin';
@@ -0,0 +1 @@
1
+ 'use strict';
@@ -0,0 +1,20 @@
1
+ import '@pulumi/pulumi/automation';
2
+ export { P as PulumiPluginContext, a as PulumiPluginOptions, d as PulumiPluginResolvedConfig, c as PulumiPluginUserConfig } from '../index-EdAx48bl.cjs';
3
+ import '@storm-software/build-tools/types';
4
+ import '@storm-software/config-tools/types';
5
+ import '@storm-software/config/types';
6
+ import '@stryke/types/base';
7
+ import '@stryke/types/configuration';
8
+ import '@stryke/types/file';
9
+ import 'vite';
10
+ import '@stryke/env/get-env-paths';
11
+ import '@stryke/types/package-json';
12
+ import 'jiti';
13
+ import 'oxc-parser';
14
+ import 'semver';
15
+ import 'unplugin';
16
+ import '@stryke/types/tsconfig';
17
+ import 'typescript';
18
+ import '@stryke/json/types';
19
+ import 'node:fs';
20
+ import '@stryke/types/array';
@@ -0,0 +1,20 @@
1
+ import '@pulumi/pulumi/automation';
2
+ export { P as PulumiPluginContext, a as PulumiPluginOptions, d as PulumiPluginResolvedConfig, c as PulumiPluginUserConfig } from '../index-EdAx48bl.js';
3
+ import '@storm-software/build-tools/types';
4
+ import '@storm-software/config-tools/types';
5
+ import '@storm-software/config/types';
6
+ import '@stryke/types/base';
7
+ import '@stryke/types/configuration';
8
+ import '@stryke/types/file';
9
+ import 'vite';
10
+ import '@stryke/env/get-env-paths';
11
+ import '@stryke/types/package-json';
12
+ import 'jiti';
13
+ import 'oxc-parser';
14
+ import 'semver';
15
+ import 'unplugin';
16
+ import '@stryke/types/tsconfig';
17
+ import 'typescript';
18
+ import '@stryke/json/types';
19
+ import 'node:fs';
20
+ import '@stryke/types/array';
File without changes
package/package.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "name": "@powerlines/plugin-pulumi",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
6
+ "repository": {
7
+ "type": "github",
8
+ "url": "https://github.com/storm-software/powerlines.git",
9
+ "directory": "packages/plugin-pulumi"
10
+ },
11
+ "homepage": "https://stormsoftware.com",
12
+ "bugs": {
13
+ "url": "https://stormsoftware.com/support",
14
+ "email": "support@stormsoftware.com"
15
+ },
16
+ "author": {
17
+ "name": "Storm Software",
18
+ "email": "contact@stormsoftware.com",
19
+ "url": "https://stormsoftware.com"
20
+ },
21
+ "maintainers": [
22
+ {
23
+ "name": "Storm Software",
24
+ "email": "contact@stormsoftware.com",
25
+ "url": "https://stormsoftware.com"
26
+ }
27
+ ],
28
+ "contributors": [
29
+ {
30
+ "name": "Storm Software",
31
+ "email": "contact@stormsoftware.com",
32
+ "url": "https://stormsoftware.com"
33
+ }
34
+ ],
35
+ "funding": {
36
+ "type": "github",
37
+ "url": "https://github.com/sponsors/storm-software"
38
+ },
39
+ "license": "Apache-2.0",
40
+ "private": false,
41
+ "main": "dist/index.cjs",
42
+ "module": "dist/index.js",
43
+ "exports": {
44
+ "./package.json": "./package.json",
45
+ ".": {
46
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
47
+ "require": {
48
+ "types": "./dist/index.d.cts",
49
+ "default": "./dist/index.cjs"
50
+ },
51
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
52
+ },
53
+ "./index": {
54
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
55
+ "require": {
56
+ "types": "./dist/index.d.cts",
57
+ "default": "./dist/index.cjs"
58
+ },
59
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
60
+ },
61
+ "./plugin": {
62
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
63
+ "require": {
64
+ "types": "./dist/index.d.cts",
65
+ "default": "./dist/index.cjs"
66
+ },
67
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
68
+ },
69
+ "./types": {
70
+ "import": {
71
+ "types": "./dist/types/index.d.ts",
72
+ "default": "./dist/types/index.js"
73
+ },
74
+ "require": {
75
+ "types": "./dist/types/index.d.cts",
76
+ "default": "./dist/types/index.cjs"
77
+ },
78
+ "default": {
79
+ "types": "./dist/types/index.d.ts",
80
+ "default": "./dist/types/index.js"
81
+ }
82
+ },
83
+ "./types/*": {
84
+ "import": {
85
+ "types": "./dist/types/*.d.ts",
86
+ "default": "./dist/types/*.js"
87
+ },
88
+ "require": {
89
+ "types": "./dist/types/*.d.cts",
90
+ "default": "./dist/types/*.cjs"
91
+ },
92
+ "default": {
93
+ "types": "./dist/types/*.d.ts",
94
+ "default": "./dist/types/*.js"
95
+ }
96
+ }
97
+ },
98
+ "typings": "dist/index.d.ts",
99
+ "files": ["dist/**/*"],
100
+ "keywords": ["pulumi", "powerlines", "storm-software", "powerlines-plugin"],
101
+ "dependencies": {
102
+ "@stryke/type-checks": "^0.3.12",
103
+ "@stryke/path": "^0.19.2",
104
+ "@stryke/fs": "^0.32.13",
105
+ "@stryke/helpers": "^0.9.4",
106
+ "@stryke/string-format": "^0.12.2",
107
+ "@pulumi/pulumi": "^3.207.0",
108
+ "defu": "^6.1.4",
109
+ "powerlines": "^0.22.0",
110
+ "typescript": "^5.9.3"
111
+ },
112
+ "devDependencies": {
113
+ "@powerlines/nx": "^0.10.12",
114
+ "@types/node": "^22.19.1"
115
+ },
116
+ "publishConfig": { "access": "public" },
117
+ "gitHead": "30a4cf4f1c707fe159b55f65f1e87b14d679614d"
118
+ }