@storm-software/pulumi-tools 0.13.6 → 0.13.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/dist/{chunk-T2MT263A.js → chunk-2BM7Y3LV.js} +3 -3
- package/dist/{chunk-37RYOORY.js → chunk-5EEYPDMF.js} +5 -5
- package/dist/{chunk-FZPGAOD3.mjs → chunk-A25XCW6N.mjs} +1 -1
- package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
- package/dist/{chunk-TIV4DYZT.mjs → chunk-BWKY65JZ.mjs} +1 -1
- package/dist/{chunk-UJEJIE53.mjs → chunk-C6ALXVQ7.mjs} +1 -1
- package/dist/{chunk-Z4G4HEYH.js → chunk-EBN2ORT3.js} +2 -2
- package/dist/{chunk-X3FJVRKM.js → chunk-EO4SOS5G.js} +2 -2
- package/dist/{chunk-HFLZB64V.mjs → chunk-GNUNNN7U.mjs} +1 -1
- package/dist/{chunk-YTX7SXUV.mjs → chunk-I2TGMV22.mjs} +1 -1
- package/dist/{chunk-3DJ44M2X.mjs → chunk-JTU7RFVL.mjs} +1 -1
- package/dist/{chunk-JZAEYOBB.js → chunk-SWA4DUTQ.js} +2 -2
- package/dist/{chunk-2BFARTEO.mjs → chunk-TTXOO5XR.mjs} +4 -4
- package/dist/{chunk-PQIHSZEB.mjs → chunk-V7ZSB5PI.mjs} +60 -18
- package/dist/{chunk-TN5TXK6U.js → chunk-YUJKVR74.js} +2 -2
- package/dist/{chunk-7A4FO6Q5.js → chunk-YXDCLCC4.js} +123 -81
- package/dist/{chunk-LZN2NZ7M.js → chunk-ZDGKQM3R.js} +2 -2
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +11 -11
- package/dist/index.mjs +12 -12
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +5 -5
- package/dist/src/base/providers.mjs +1 -1
- package/dist/src/executors/config/executor.js +4 -4
- package/dist/src/executors/config/executor.mjs +4 -4
- package/dist/src/executors/import/executor.js +4 -4
- package/dist/src/executors/import/executor.mjs +4 -4
- package/dist/src/executors/preview/executor.js +4 -4
- package/dist/src/executors/preview/executor.mjs +4 -4
- package/dist/src/executors/refresh/executor.js +4 -4
- package/dist/src/executors/refresh/executor.mjs +4 -4
- package/dist/src/executors/up/executor.js +4 -4
- package/dist/src/executors/up/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-NPN2DABW.mjs +0 -133
- package/dist/chunk-U5MDCWHX.js +0 -133
package/dist/chunk-U5MDCWHX.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunk7A4FO6Q5js = require('./chunk-7A4FO6Q5.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
|
|
9
|
-
|
|
10
|
-
// src/generators/init/generator.ts
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var _devkit = require('@nx/devkit');
|
|
18
|
-
var _fs = require('fs');
|
|
19
|
-
var _path = require('path');
|
|
20
|
-
async function initGeneratorFn(tree, options, config) {
|
|
21
|
-
const task = _chunk7A4FO6Q5js.initGenerator.call(void 0, tree, options);
|
|
22
|
-
_devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
|
|
23
|
-
root: options.directory || "./deployment",
|
|
24
|
-
projectType: "application",
|
|
25
|
-
sourceRoot: options.directory || "./deployment",
|
|
26
|
-
targets: {
|
|
27
|
-
up: {
|
|
28
|
-
executor: "@nx-extend/pulumi:up",
|
|
29
|
-
options: {}
|
|
30
|
-
},
|
|
31
|
-
preview: {
|
|
32
|
-
executor: "@nx-extend/pulumi:preview",
|
|
33
|
-
options: {}
|
|
34
|
-
},
|
|
35
|
-
refresh: {
|
|
36
|
-
executor: "@nx-extend/pulumi:refresh",
|
|
37
|
-
options: {}
|
|
38
|
-
},
|
|
39
|
-
import: {
|
|
40
|
-
executor: "@nx-extend/pulumi:import",
|
|
41
|
-
options: {}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
tags: ["infra:pulumi"]
|
|
45
|
-
});
|
|
46
|
-
await _devkit.runTasksInSerial.call(void 0,
|
|
47
|
-
generateNewPulumiProject(tree, options, config),
|
|
48
|
-
loginToPulumi(tree, options, config),
|
|
49
|
-
addPulumiDeps(tree, options),
|
|
50
|
-
cleanupProject(tree, options)
|
|
51
|
-
)();
|
|
52
|
-
if (!options.skipFormat) {
|
|
53
|
-
await _devkit.formatFiles.call(void 0, tree);
|
|
54
|
-
}
|
|
55
|
-
return task;
|
|
56
|
-
}
|
|
57
|
-
var generator_default = _chunk7A4FO6Q5js.withRunGenerator.call(void 0,
|
|
58
|
-
"Initialize Storm Pulumi workspace",
|
|
59
|
-
initGeneratorFn
|
|
60
|
-
);
|
|
61
|
-
function generateNewPulumiProject(tree, options, config) {
|
|
62
|
-
return () => {
|
|
63
|
-
const template = _chunkHUKXHFCAjs.getCloudTemplateName.call(void 0, options.provider);
|
|
64
|
-
_chunk7A4FO6Q5js.run.call(void 0,
|
|
65
|
-
config,
|
|
66
|
-
[
|
|
67
|
-
`pulumi new ${template}`,
|
|
68
|
-
`--name=${options.name || "deployment"}`,
|
|
69
|
-
`--dir=${options.directory || "./deployment"}`,
|
|
70
|
-
options.secretsProvider && `--secrets-provider=${options.secretsProvider}`,
|
|
71
|
-
"--generate-only",
|
|
72
|
-
"--yes",
|
|
73
|
-
"--force"
|
|
74
|
-
].filter(Boolean).join(" "),
|
|
75
|
-
_path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
|
|
76
|
-
"inherit"
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function loginToPulumi(tree, options, config) {
|
|
81
|
-
return () => {
|
|
82
|
-
if (!options.login) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (options.login.startsWith("file://")) {
|
|
86
|
-
options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
|
|
87
|
-
}
|
|
88
|
-
_chunk7A4FO6Q5js.run.call(void 0,
|
|
89
|
-
config,
|
|
90
|
-
["pulumi login", options.login].filter(Boolean).join(" "),
|
|
91
|
-
_path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
|
|
92
|
-
"inherit",
|
|
93
|
-
{
|
|
94
|
-
...process.env,
|
|
95
|
-
PULUMI_EXPERIMENTAL: "true"
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function addPulumiDeps(tree, options) {
|
|
101
|
-
return () => {
|
|
102
|
-
const packageJson = _devkit.readJsonFile.call(void 0, `${options.directory}/package.json`);
|
|
103
|
-
if (packageJson) {
|
|
104
|
-
_devkit.addDependenciesToPackageJson.call(void 0, tree, {}, packageJson.dependencies || {})();
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function cleanupProject(tree, options) {
|
|
109
|
-
return () => {
|
|
110
|
-
const indexTsLocation = _path.join.call(void 0,
|
|
111
|
-
tree.root,
|
|
112
|
-
`${options.directory || "./deployment"}/index.ts`
|
|
113
|
-
);
|
|
114
|
-
tree.write(
|
|
115
|
-
`${options.directory}/pulumi.ts`,
|
|
116
|
-
_fs.readFileSync.call(void 0, indexTsLocation).toString()
|
|
117
|
-
);
|
|
118
|
-
_fs.unlinkSync.call(void 0,
|
|
119
|
-
_path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/.gitignore`)
|
|
120
|
-
);
|
|
121
|
-
_fs.unlinkSync.call(void 0,
|
|
122
|
-
_path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/package.json`)
|
|
123
|
-
);
|
|
124
|
-
_fs.unlinkSync.call(void 0,
|
|
125
|
-
_path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/tsconfig.json`)
|
|
126
|
-
);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
exports.initGeneratorFn = initGeneratorFn; exports.generator_default = generator_default;
|