@storm-software/projen 0.8.2 → 0.8.3
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 +6 -0
- package/README.md +1 -1
- package/dist/chunk-3HI6WK3M.js +137 -0
- package/dist/{chunk-MD7B7GGE.mjs → chunk-5NY5JR5C.mjs} +205 -148
- package/dist/chunk-EEZAWKQ5.mjs +6 -0
- package/dist/chunk-FVKYD24T.js +15 -0
- package/dist/{chunk-JNHMEBZJ.js → chunk-HQUS2SNL.js} +488 -431
- package/dist/chunk-LYHBU3HI.mjs +15 -0
- package/dist/chunk-RDD7JUBK.js +6 -0
- package/dist/chunk-VHOQB7WG.mjs +63 -0
- package/dist/chunk-VPWBNTCH.mjs +137 -0
- package/dist/chunk-ZH7QZ5EF.js +56 -0
- package/dist/generators.js +5 -4
- package/dist/generators.mjs +4 -3
- package/dist/index.js +21 -4
- package/dist/index.mjs +20 -3
- package/dist/src/components/index.d.mts +2 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.js +5 -0
- package/dist/src/components/index.mjs +5 -0
- package/dist/src/components/nx-workspace.d.mts +112 -0
- package/dist/src/components/nx-workspace.d.ts +112 -0
- package/dist/src/components/nx-workspace.js +747 -0
- package/dist/src/components/nx-workspace.mjs +747 -0
- package/dist/src/generators/init/generator.js +4 -3
- package/dist/src/generators/init/generator.mjs +3 -2
- package/dist/tsup.config.js +5 -2
- package/dist/tsup.config.mjs +5 -2
- package/package.json +16 -15
- package/dist/chunk-23KFTIT2.mjs +0 -0
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-N2YKXZ5R.js +0 -1
- package/dist/chunk-XUV4U54K.mjs +0 -21
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
34
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
35
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
36
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
|
|
42
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/esm_shims.js
|
|
43
|
+
import { fileURLToPath } from "url";
|
|
44
|
+
import path from "path";
|
|
45
|
+
var getFilename, getDirname, __dirname;
|
|
46
|
+
var init_esm_shims = __esm({
|
|
47
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/esm_shims.js"() {
|
|
48
|
+
getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
49
|
+
getDirname = /* @__PURE__ */ __name(() => path.dirname(getFilename()), "getDirname");
|
|
50
|
+
__dirname = /* @__PURE__ */ getDirname();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
__name,
|
|
56
|
+
__require,
|
|
57
|
+
__commonJS,
|
|
58
|
+
__export,
|
|
59
|
+
__reExport,
|
|
60
|
+
__toESM,
|
|
61
|
+
__dirname,
|
|
62
|
+
init_esm_shims
|
|
63
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-VHOQB7WG.mjs";
|
|
5
|
+
|
|
6
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
9
|
+
function normalizeWindowsPath(input = "") {
|
|
10
|
+
if (!input) {
|
|
11
|
+
return input;
|
|
12
|
+
}
|
|
13
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
14
|
+
}
|
|
15
|
+
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
16
|
+
var _UNC_REGEX = /^[/\\]{2}/;
|
|
17
|
+
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
18
|
+
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
19
|
+
var correctPaths = /* @__PURE__ */ __name(function(path) {
|
|
20
|
+
if (!path || path.length === 0) {
|
|
21
|
+
return ".";
|
|
22
|
+
}
|
|
23
|
+
path = normalizeWindowsPath(path);
|
|
24
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
25
|
+
const isPathAbsolute = isAbsolute(path);
|
|
26
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
27
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
28
|
+
if (path.length === 0) {
|
|
29
|
+
if (isPathAbsolute) {
|
|
30
|
+
return "/";
|
|
31
|
+
}
|
|
32
|
+
return trailingSeparator ? "./" : ".";
|
|
33
|
+
}
|
|
34
|
+
if (trailingSeparator) {
|
|
35
|
+
path += "/";
|
|
36
|
+
}
|
|
37
|
+
if (_DRIVE_LETTER_RE.test(path)) {
|
|
38
|
+
path += "/";
|
|
39
|
+
}
|
|
40
|
+
if (isUNCPath) {
|
|
41
|
+
if (!isPathAbsolute) {
|
|
42
|
+
return `//./${path}`;
|
|
43
|
+
}
|
|
44
|
+
return `//${path}`;
|
|
45
|
+
}
|
|
46
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
47
|
+
}, "correctPaths");
|
|
48
|
+
var joinPaths = /* @__PURE__ */ __name(function(...segments) {
|
|
49
|
+
let path = "";
|
|
50
|
+
for (const seg of segments) {
|
|
51
|
+
if (!seg) {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (path.length > 0) {
|
|
55
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
56
|
+
const segLeading = seg[0] === "/";
|
|
57
|
+
const both = pathTrailing && segLeading;
|
|
58
|
+
if (both) {
|
|
59
|
+
path += seg.slice(1);
|
|
60
|
+
} else {
|
|
61
|
+
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
62
|
+
}
|
|
63
|
+
} else {
|
|
64
|
+
path += seg;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return correctPaths(path);
|
|
68
|
+
}, "joinPaths");
|
|
69
|
+
function normalizeString(path, allowAboveRoot) {
|
|
70
|
+
let res = "";
|
|
71
|
+
let lastSegmentLength = 0;
|
|
72
|
+
let lastSlash = -1;
|
|
73
|
+
let dots = 0;
|
|
74
|
+
let char = null;
|
|
75
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
76
|
+
if (index < path.length) {
|
|
77
|
+
char = path[index];
|
|
78
|
+
} else if (char === "/") {
|
|
79
|
+
break;
|
|
80
|
+
} else {
|
|
81
|
+
char = "/";
|
|
82
|
+
}
|
|
83
|
+
if (char === "/") {
|
|
84
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
85
|
+
} else if (dots === 2) {
|
|
86
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
87
|
+
if (res.length > 2) {
|
|
88
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
89
|
+
if (lastSlashIndex === -1) {
|
|
90
|
+
res = "";
|
|
91
|
+
lastSegmentLength = 0;
|
|
92
|
+
} else {
|
|
93
|
+
res = res.slice(0, lastSlashIndex);
|
|
94
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
95
|
+
}
|
|
96
|
+
lastSlash = index;
|
|
97
|
+
dots = 0;
|
|
98
|
+
continue;
|
|
99
|
+
} else if (res.length > 0) {
|
|
100
|
+
res = "";
|
|
101
|
+
lastSegmentLength = 0;
|
|
102
|
+
lastSlash = index;
|
|
103
|
+
dots = 0;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (allowAboveRoot) {
|
|
108
|
+
res += res.length > 0 ? "/.." : "..";
|
|
109
|
+
lastSegmentLength = 2;
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
if (res.length > 0) {
|
|
113
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
114
|
+
} else {
|
|
115
|
+
res = path.slice(lastSlash + 1, index);
|
|
116
|
+
}
|
|
117
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
118
|
+
}
|
|
119
|
+
lastSlash = index;
|
|
120
|
+
dots = 0;
|
|
121
|
+
} else if (char === "." && dots !== -1) {
|
|
122
|
+
++dots;
|
|
123
|
+
} else {
|
|
124
|
+
dots = -1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return res;
|
|
128
|
+
}
|
|
129
|
+
__name(normalizeString, "normalizeString");
|
|
130
|
+
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
131
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
132
|
+
}, "isAbsolute");
|
|
133
|
+
|
|
134
|
+
export {
|
|
135
|
+
correctPaths,
|
|
136
|
+
joinPaths
|
|
137
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
34
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
35
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
36
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
|
|
42
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/cjs_shims.js
|
|
43
|
+
var init_cjs_shims = __esm({
|
|
44
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/cjs_shims.js"() {
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__export = __export; exports.__reExport = __reExport; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
package/dist/generators.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-RDD7JUBK.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkHQUS2SNLjs = require('./chunk-HQUS2SNL.js');
|
|
5
|
+
require('./chunk-3HI6WK3M.js');
|
|
6
|
+
require('./chunk-ZH7QZ5EF.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkHQUS2SNLjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-EEZAWKQ5.mjs";
|
|
2
2
|
import {
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-5NY5JR5C.mjs";
|
|
5
|
+
import "./chunk-VPWBNTCH.mjs";
|
|
6
|
+
import "./chunk-VHOQB7WG.mjs";
|
|
6
7
|
export {
|
|
7
8
|
initGeneratorFn
|
|
8
9
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-RDD7JUBK.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-3GQAWCBQ.js');
|
|
4
|
+
var _chunkFVKYD24Tjs = require('./chunk-FVKYD24T.js');
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
var _chunkHQUS2SNLjs = require('./chunk-HQUS2SNL.js');
|
|
8
|
+
require('./chunk-3HI6WK3M.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkZH7QZ5EFjs = require('./chunk-ZH7QZ5EF.js');
|
|
15
|
+
|
|
16
|
+
// index.ts
|
|
17
|
+
var index_exports = {};
|
|
18
|
+
_chunkZH7QZ5EFjs.__export.call(void 0, index_exports, {
|
|
19
|
+
initGeneratorFn: () => _chunkHQUS2SNLjs.initGeneratorFn
|
|
20
|
+
});
|
|
21
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
22
|
+
_chunkZH7QZ5EFjs.__reExport.call(void 0, index_exports, _chunkZH7QZ5EFjs.__toESM.call(void 0, _chunkFVKYD24Tjs.require_components.call(void 0, )));
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.initGeneratorFn = _chunkHQUS2SNLjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-EEZAWKQ5.mjs";
|
|
2
|
+
import {
|
|
3
|
+
require_components
|
|
4
|
+
} from "./chunk-LYHBU3HI.mjs";
|
|
2
5
|
import {
|
|
3
6
|
initGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5NY5JR5C.mjs";
|
|
8
|
+
import "./chunk-VPWBNTCH.mjs";
|
|
9
|
+
import {
|
|
10
|
+
__export,
|
|
11
|
+
__reExport,
|
|
12
|
+
__toESM,
|
|
13
|
+
init_esm_shims
|
|
14
|
+
} from "./chunk-VHOQB7WG.mjs";
|
|
15
|
+
|
|
16
|
+
// index.ts
|
|
17
|
+
var index_exports = {};
|
|
18
|
+
__export(index_exports, {
|
|
19
|
+
initGeneratorFn: () => initGeneratorFn
|
|
20
|
+
});
|
|
21
|
+
init_esm_shims();
|
|
22
|
+
__reExport(index_exports, __toESM(require_components()));
|
|
6
23
|
export {
|
|
7
24
|
initGeneratorFn
|
|
8
25
|
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { NxWorkspace } from '@aws/pdk/monorepo/components/nx-workspace';
|
|
2
|
+
import { Nx } from '@aws/pdk/monorepo/nx-types';
|
|
3
|
+
import { NxJsonConfiguration } from '@nx/devkit';
|
|
4
|
+
import { Project, JsonFile } from 'projen';
|
|
5
|
+
import { Obj } from 'projen/lib/util';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Default NX outputs to cache
|
|
9
|
+
*/
|
|
10
|
+
declare const NX_DEFAULT_BUILD_OUTPUTS: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Component which manages the workspace specific NX Config for the root monorepo.
|
|
13
|
+
*/
|
|
14
|
+
declare class StormNxWorkspace extends NxWorkspace {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the singleton instance associated with project root.
|
|
17
|
+
*
|
|
18
|
+
* @param scope project instance.
|
|
19
|
+
*/
|
|
20
|
+
static of(scope: Project): NxWorkspace | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Raw nx.json file to support overrides that aren't handled
|
|
23
|
+
* directly.
|
|
24
|
+
*
|
|
25
|
+
* **Attention:** any overrides applied here will not be visible
|
|
26
|
+
* in the properties and only included in final synthesized output,
|
|
27
|
+
* and likely to override native handling.
|
|
28
|
+
* @advanced
|
|
29
|
+
*/
|
|
30
|
+
readonly nxJson: JsonFile;
|
|
31
|
+
/**
|
|
32
|
+
* Automatically infer NxProject targets based on project type.
|
|
33
|
+
* @experimental
|
|
34
|
+
*/
|
|
35
|
+
autoInferProjectTargets: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* List of cacheable operations.
|
|
38
|
+
*/
|
|
39
|
+
cacheableOperations: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Some presets use the extends property to hide some default options in a separate json file.
|
|
42
|
+
* The json file specified in the extends property is located in your node_modules folder.
|
|
43
|
+
* The Nx preset files are specified in the nx package.
|
|
44
|
+
*
|
|
45
|
+
* @default "@storm-software/workspace-tools/config/base.json"
|
|
46
|
+
*/
|
|
47
|
+
extends: string;
|
|
48
|
+
/**
|
|
49
|
+
* Plugins for extending the project graph
|
|
50
|
+
*/
|
|
51
|
+
nxPlugins: NxJsonConfiguration["plugins"];
|
|
52
|
+
/**
|
|
53
|
+
* Default options for `nx affected`
|
|
54
|
+
*/
|
|
55
|
+
affected: Nx.INxAffectedConfig;
|
|
56
|
+
/**
|
|
57
|
+
* Named inputs
|
|
58
|
+
* @see https://nx.dev/reference/nx-json#inputs-&-namedinputs
|
|
59
|
+
*/
|
|
60
|
+
namedInputs: Nx.INamedInputs;
|
|
61
|
+
/**
|
|
62
|
+
* Dependencies between different target names across all projects
|
|
63
|
+
*
|
|
64
|
+
* @see https://nx.dev/reference/nx-json#target-defaults
|
|
65
|
+
*/
|
|
66
|
+
targetDefaults: Nx.ITargetDefaults;
|
|
67
|
+
/**
|
|
68
|
+
* Configuration for Nx releases
|
|
69
|
+
*/
|
|
70
|
+
release: Obj<any>;
|
|
71
|
+
/**
|
|
72
|
+
* The number of parallel tasks to run.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue 5
|
|
75
|
+
*/
|
|
76
|
+
parallel: number;
|
|
77
|
+
/**
|
|
78
|
+
* Should the daemon be used to run tasks?
|
|
79
|
+
*
|
|
80
|
+
* @defaultValue true
|
|
81
|
+
*/
|
|
82
|
+
useDaemonProcess: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Set this to false to disable adding inference plugins when generating new projects
|
|
85
|
+
*
|
|
86
|
+
* @defaultValue true
|
|
87
|
+
*/
|
|
88
|
+
useInferencePlugins: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The default base branch for new projects.
|
|
91
|
+
*
|
|
92
|
+
* @defaultValue "main"
|
|
93
|
+
*/
|
|
94
|
+
defaultBase: string;
|
|
95
|
+
/**
|
|
96
|
+
* The CLI configuration for the workspace.
|
|
97
|
+
*/
|
|
98
|
+
cli: NxJsonConfiguration["cli"] | undefined;
|
|
99
|
+
constructor(project: Project);
|
|
100
|
+
/**
|
|
101
|
+
* Adds a release group to the workspace.
|
|
102
|
+
*
|
|
103
|
+
* @param name The name of the release group
|
|
104
|
+
* @param projects The projects in the release group
|
|
105
|
+
* @param projectsRelationship The relationship between the projects
|
|
106
|
+
* @param releaseTagPattern The release tag pattern
|
|
107
|
+
* @param groupPreVersionCommand The command to run before versioning
|
|
108
|
+
*/
|
|
109
|
+
addReleaseGroup(name: string, projects: string[] | string, projectsRelationship?: "fixed" | "independent", releaseTagPattern?: string, groupPreVersionCommand?: string): void;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { NX_DEFAULT_BUILD_OUTPUTS, StormNxWorkspace };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { NxWorkspace } from '@aws/pdk/monorepo/components/nx-workspace';
|
|
2
|
+
import { Nx } from '@aws/pdk/monorepo/nx-types';
|
|
3
|
+
import { NxJsonConfiguration } from '@nx/devkit';
|
|
4
|
+
import { Project, JsonFile } from 'projen';
|
|
5
|
+
import { Obj } from 'projen/lib/util';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Default NX outputs to cache
|
|
9
|
+
*/
|
|
10
|
+
declare const NX_DEFAULT_BUILD_OUTPUTS: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Component which manages the workspace specific NX Config for the root monorepo.
|
|
13
|
+
*/
|
|
14
|
+
declare class StormNxWorkspace extends NxWorkspace {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the singleton instance associated with project root.
|
|
17
|
+
*
|
|
18
|
+
* @param scope project instance.
|
|
19
|
+
*/
|
|
20
|
+
static of(scope: Project): NxWorkspace | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Raw nx.json file to support overrides that aren't handled
|
|
23
|
+
* directly.
|
|
24
|
+
*
|
|
25
|
+
* **Attention:** any overrides applied here will not be visible
|
|
26
|
+
* in the properties and only included in final synthesized output,
|
|
27
|
+
* and likely to override native handling.
|
|
28
|
+
* @advanced
|
|
29
|
+
*/
|
|
30
|
+
readonly nxJson: JsonFile;
|
|
31
|
+
/**
|
|
32
|
+
* Automatically infer NxProject targets based on project type.
|
|
33
|
+
* @experimental
|
|
34
|
+
*/
|
|
35
|
+
autoInferProjectTargets: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* List of cacheable operations.
|
|
38
|
+
*/
|
|
39
|
+
cacheableOperations: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Some presets use the extends property to hide some default options in a separate json file.
|
|
42
|
+
* The json file specified in the extends property is located in your node_modules folder.
|
|
43
|
+
* The Nx preset files are specified in the nx package.
|
|
44
|
+
*
|
|
45
|
+
* @default "@storm-software/workspace-tools/config/base.json"
|
|
46
|
+
*/
|
|
47
|
+
extends: string;
|
|
48
|
+
/**
|
|
49
|
+
* Plugins for extending the project graph
|
|
50
|
+
*/
|
|
51
|
+
nxPlugins: NxJsonConfiguration["plugins"];
|
|
52
|
+
/**
|
|
53
|
+
* Default options for `nx affected`
|
|
54
|
+
*/
|
|
55
|
+
affected: Nx.INxAffectedConfig;
|
|
56
|
+
/**
|
|
57
|
+
* Named inputs
|
|
58
|
+
* @see https://nx.dev/reference/nx-json#inputs-&-namedinputs
|
|
59
|
+
*/
|
|
60
|
+
namedInputs: Nx.INamedInputs;
|
|
61
|
+
/**
|
|
62
|
+
* Dependencies between different target names across all projects
|
|
63
|
+
*
|
|
64
|
+
* @see https://nx.dev/reference/nx-json#target-defaults
|
|
65
|
+
*/
|
|
66
|
+
targetDefaults: Nx.ITargetDefaults;
|
|
67
|
+
/**
|
|
68
|
+
* Configuration for Nx releases
|
|
69
|
+
*/
|
|
70
|
+
release: Obj<any>;
|
|
71
|
+
/**
|
|
72
|
+
* The number of parallel tasks to run.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue 5
|
|
75
|
+
*/
|
|
76
|
+
parallel: number;
|
|
77
|
+
/**
|
|
78
|
+
* Should the daemon be used to run tasks?
|
|
79
|
+
*
|
|
80
|
+
* @defaultValue true
|
|
81
|
+
*/
|
|
82
|
+
useDaemonProcess: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Set this to false to disable adding inference plugins when generating new projects
|
|
85
|
+
*
|
|
86
|
+
* @defaultValue true
|
|
87
|
+
*/
|
|
88
|
+
useInferencePlugins: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The default base branch for new projects.
|
|
91
|
+
*
|
|
92
|
+
* @defaultValue "main"
|
|
93
|
+
*/
|
|
94
|
+
defaultBase: string;
|
|
95
|
+
/**
|
|
96
|
+
* The CLI configuration for the workspace.
|
|
97
|
+
*/
|
|
98
|
+
cli: NxJsonConfiguration["cli"] | undefined;
|
|
99
|
+
constructor(project: Project);
|
|
100
|
+
/**
|
|
101
|
+
* Adds a release group to the workspace.
|
|
102
|
+
*
|
|
103
|
+
* @param name The name of the release group
|
|
104
|
+
* @param projects The projects in the release group
|
|
105
|
+
* @param projectsRelationship The relationship between the projects
|
|
106
|
+
* @param releaseTagPattern The release tag pattern
|
|
107
|
+
* @param groupPreVersionCommand The command to run before versioning
|
|
108
|
+
*/
|
|
109
|
+
addReleaseGroup(name: string, projects: string[] | string, projectsRelationship?: "fixed" | "independent", releaseTagPattern?: string, groupPreVersionCommand?: string): void;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { NX_DEFAULT_BUILD_OUTPUTS, StormNxWorkspace };
|