@shell-shock/nx 0.0.6 → 0.0.7
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 +1 -1
- package/dist/base-executor-BEOdY15z.cjs +107 -0
- package/dist/base-executor-BEOdY15z.cjs.map +1 -0
- package/dist/{src/base/base-executor.schema.d.cts → base-executor-C986ypeP.d.mts} +19 -5
- package/dist/base-executor-C986ypeP.d.mts.map +1 -0
- package/dist/{src/base/base-executor.schema.d.mts → base-executor-Dm4OV5-b.d.cts} +19 -5
- package/dist/base-executor-Dm4OV5-b.d.cts.map +1 -0
- package/dist/base-executor-WGeWcQ9x.mjs +68 -0
- package/dist/base-executor-WGeWcQ9x.mjs.map +1 -0
- package/dist/executor-4-xDAK3Q.d.cts +94 -0
- package/dist/executor-4-xDAK3Q.d.cts.map +1 -0
- package/dist/{executors/build/schema.d.cts → executor-96dASirt.d.cts} +14 -5
- package/dist/executor-96dASirt.d.cts.map +1 -0
- package/dist/executor-BAfZ_2mt.mjs +24 -0
- package/dist/executor-BAfZ_2mt.mjs.map +1 -0
- package/dist/executor-BB0fklpZ.mjs +24 -0
- package/dist/executor-BB0fklpZ.mjs.map +1 -0
- package/dist/executor-BaLNOEzG.d.mts +94 -0
- package/dist/executor-BaLNOEzG.d.mts.map +1 -0
- package/dist/executor-BbNRVowe.d.cts +94 -0
- package/dist/executor-BbNRVowe.d.cts.map +1 -0
- package/dist/executor-Bbdfz3vU.d.mts +94 -0
- package/dist/executor-Bbdfz3vU.d.mts.map +1 -0
- package/dist/executor-BdDn8ZPU.cjs +36 -0
- package/dist/executor-BdDn8ZPU.cjs.map +1 -0
- package/dist/executor-BpeEDqH7.cjs +36 -0
- package/dist/executor-BpeEDqH7.cjs.map +1 -0
- package/dist/executor-C5QxZhO7.mjs +24 -0
- package/dist/executor-C5QxZhO7.mjs.map +1 -0
- package/dist/executor-COGLRU0m.cjs +35 -0
- package/dist/executor-COGLRU0m.cjs.map +1 -0
- package/dist/executor-CiTDecl1.d.cts +94 -0
- package/dist/executor-CiTDecl1.d.cts.map +1 -0
- package/dist/executor-CqzPUm3D.mjs +24 -0
- package/dist/executor-CqzPUm3D.mjs.map +1 -0
- package/dist/executor-D-CbgdfW.d.cts +94 -0
- package/dist/executor-D-CbgdfW.d.cts.map +1 -0
- package/dist/{executors/build/schema.d.mts → executor-D2Vww0YS.d.mts} +14 -5
- package/dist/executor-D2Vww0YS.d.mts.map +1 -0
- package/dist/executor-DZVLtlig.d.mts +94 -0
- package/dist/executor-DZVLtlig.d.mts.map +1 -0
- package/dist/executor-Df7WIF5r.cjs +36 -0
- package/dist/executor-Df7WIF5r.cjs.map +1 -0
- package/dist/executor-Dih1DtWS.cjs +36 -0
- package/dist/executor-Dih1DtWS.cjs.map +1 -0
- package/dist/executor-MgQPT_ao.d.mts +94 -0
- package/dist/executor-MgQPT_ao.d.mts.map +1 -0
- package/dist/executor-yO6eAP0j.mjs +24 -0
- package/dist/executor-yO6eAP0j.mjs.map +1 -0
- package/dist/executors/build/executor.cjs +6 -1
- package/dist/executors/build/executor.d.cts +2 -10
- package/dist/executors/build/executor.d.mts +2 -10
- package/dist/executors/build/executor.mjs +4 -1
- package/dist/executors/clean/executor.cjs +6 -1
- package/dist/executors/clean/executor.d.cts +2 -10
- package/dist/executors/clean/executor.d.mts +2 -10
- package/dist/executors/clean/executor.mjs +4 -1
- package/dist/executors/docs/executor.cjs +6 -1
- package/dist/executors/docs/executor.d.cts +2 -10
- package/dist/executors/docs/executor.d.mts +2 -10
- package/dist/executors/docs/executor.mjs +4 -1
- package/dist/executors/lint/executor.cjs +6 -1
- package/dist/executors/lint/executor.d.cts +2 -10
- package/dist/executors/lint/executor.d.mts +2 -10
- package/dist/executors/lint/executor.mjs +4 -1
- package/dist/executors/prepare/executor.cjs +6 -1
- package/dist/executors/prepare/executor.d.cts +2 -10
- package/dist/executors/prepare/executor.d.mts +2 -10
- package/dist/executors/prepare/executor.mjs +4 -1
- package/dist/executors-0N4uK0Ll.mjs +0 -0
- package/dist/executors-BJFR9wj9.cjs +0 -0
- package/dist/executors-Dvb23_Uh.d.cts +1 -0
- package/dist/executors-DxVudqU1.d.mts +1 -0
- package/dist/executors.cjs +13 -1
- package/dist/executors.d.cts +8 -11
- package/dist/executors.d.mts +8 -11
- package/dist/executors.mjs +9 -1
- package/dist/index-BbciquDs.d.mts +8 -0
- package/dist/index-BbciquDs.d.mts.map +1 -0
- package/dist/index-COXDf824.d.cts +8 -0
- package/dist/index-COXDf824.d.cts.map +1 -0
- package/dist/index.cjs +15 -1
- package/dist/index.d.cts +8 -11
- package/dist/index.d.mts +8 -12
- package/dist/index.mjs +10 -1
- package/dist/plugin/index.cjs +3 -1
- package/dist/plugin/index.d.cts +1 -6
- package/dist/plugin/index.d.mts +1 -6
- package/dist/plugin/index.mjs +3 -1
- package/dist/plugin-BbxHKJnF.mjs +8 -0
- package/dist/plugin-BbxHKJnF.mjs.map +1 -0
- package/dist/plugin-jIPJzmTp.cjs +14 -0
- package/dist/plugin-jIPJzmTp.cjs.map +1 -0
- package/dist/src/base/base-executor.schema.d.ts +3 -3
- package/dist/src/base/base-executor.schema.json +4 -4
- package/dist/src/base-executor-BEOdY15z.cjs +107 -0
- package/dist/src/base-executor-BEOdY15z.cjs.map +1 -0
- package/dist/{base/base-executor.schema.d.cts → src/base-executor-C986ypeP.d.mts} +19 -5
- package/dist/src/base-executor-C986ypeP.d.mts.map +1 -0
- package/dist/{base/base-executor.schema.d.mts → src/base-executor-Dm4OV5-b.d.cts} +19 -5
- package/dist/src/base-executor-Dm4OV5-b.d.cts.map +1 -0
- package/dist/src/base-executor-WGeWcQ9x.mjs +68 -0
- package/dist/src/base-executor-WGeWcQ9x.mjs.map +1 -0
- package/dist/src/executor-4-xDAK3Q.d.cts +94 -0
- package/dist/src/executor-4-xDAK3Q.d.cts.map +1 -0
- package/dist/src/{executors/build/schema.d.cts → executor-96dASirt.d.cts} +14 -5
- package/dist/src/executor-96dASirt.d.cts.map +1 -0
- package/dist/src/executor-BAfZ_2mt.mjs +24 -0
- package/dist/src/executor-BAfZ_2mt.mjs.map +1 -0
- package/dist/src/executor-BB0fklpZ.mjs +24 -0
- package/dist/src/executor-BB0fklpZ.mjs.map +1 -0
- package/dist/src/executor-BaLNOEzG.d.mts +94 -0
- package/dist/src/executor-BaLNOEzG.d.mts.map +1 -0
- package/dist/src/executor-BbNRVowe.d.cts +94 -0
- package/dist/src/executor-BbNRVowe.d.cts.map +1 -0
- package/dist/src/executor-Bbdfz3vU.d.mts +94 -0
- package/dist/src/executor-Bbdfz3vU.d.mts.map +1 -0
- package/dist/src/executor-BdDn8ZPU.cjs +36 -0
- package/dist/src/executor-BdDn8ZPU.cjs.map +1 -0
- package/dist/src/executor-BpeEDqH7.cjs +36 -0
- package/dist/src/executor-BpeEDqH7.cjs.map +1 -0
- package/dist/src/executor-C5QxZhO7.mjs +24 -0
- package/dist/src/executor-C5QxZhO7.mjs.map +1 -0
- package/dist/src/executor-COGLRU0m.cjs +35 -0
- package/dist/src/executor-COGLRU0m.cjs.map +1 -0
- package/dist/src/executor-CiTDecl1.d.cts +94 -0
- package/dist/src/executor-CiTDecl1.d.cts.map +1 -0
- package/dist/src/executor-CqzPUm3D.mjs +24 -0
- package/dist/src/executor-CqzPUm3D.mjs.map +1 -0
- package/dist/src/executor-D-CbgdfW.d.cts +94 -0
- package/dist/src/executor-D-CbgdfW.d.cts.map +1 -0
- package/dist/src/{executors/build/schema.d.mts → executor-D2Vww0YS.d.mts} +14 -5
- package/dist/src/executor-D2Vww0YS.d.mts.map +1 -0
- package/dist/src/executor-DZVLtlig.d.mts +94 -0
- package/dist/src/executor-DZVLtlig.d.mts.map +1 -0
- package/dist/src/executor-Df7WIF5r.cjs +36 -0
- package/dist/src/executor-Df7WIF5r.cjs.map +1 -0
- package/dist/src/executor-Dih1DtWS.cjs +36 -0
- package/dist/src/executor-Dih1DtWS.cjs.map +1 -0
- package/dist/src/executor-MgQPT_ao.d.mts +94 -0
- package/dist/src/executor-MgQPT_ao.d.mts.map +1 -0
- package/dist/src/executor-yO6eAP0j.mjs +24 -0
- package/dist/src/executor-yO6eAP0j.mjs.map +1 -0
- package/dist/src/executors/build/executor.cjs +6 -1
- package/dist/src/executors/build/executor.d.cts +2 -10
- package/dist/src/executors/build/executor.d.mts +2 -10
- package/dist/src/executors/build/executor.mjs +4 -1
- package/dist/src/executors/build/schema.d.ts +3 -3
- package/dist/src/executors/build/schema.json +4 -4
- package/dist/src/executors/clean/executor.cjs +6 -1
- package/dist/src/executors/clean/executor.d.cts +2 -10
- package/dist/src/executors/clean/executor.d.mts +2 -10
- package/dist/src/executors/clean/executor.mjs +4 -1
- package/dist/src/executors/clean/schema.d.ts +14 -4
- package/dist/src/executors/clean/schema.json +25 -6
- package/dist/src/executors/docs/executor.cjs +6 -1
- package/dist/src/executors/docs/executor.d.cts +2 -10
- package/dist/src/executors/docs/executor.d.mts +2 -10
- package/dist/src/executors/docs/executor.mjs +4 -1
- package/dist/src/executors/docs/schema.d.ts +13 -3
- package/dist/src/executors/docs/schema.json +24 -5
- package/dist/src/executors/lint/executor.cjs +6 -1
- package/dist/src/executors/lint/executor.d.cts +2 -10
- package/dist/src/executors/lint/executor.d.mts +2 -10
- package/dist/src/executors/lint/executor.mjs +4 -1
- package/dist/src/executors/lint/schema.d.ts +13 -3
- package/dist/src/executors/lint/schema.json +24 -5
- package/dist/src/executors/prepare/executor.cjs +6 -1
- package/dist/src/executors/prepare/executor.d.cts +2 -10
- package/dist/src/executors/prepare/executor.d.mts +2 -10
- package/dist/src/executors/prepare/executor.mjs +4 -1
- package/dist/src/executors/prepare/schema.d.ts +13 -3
- package/dist/src/executors/prepare/schema.json +24 -5
- package/dist/src/executors-0N4uK0Ll.mjs +0 -0
- package/dist/src/executors-BJFR9wj9.cjs +0 -0
- package/dist/src/executors-Dvb23_Uh.d.cts +1 -0
- package/dist/src/executors-DxVudqU1.d.mts +1 -0
- package/dist/src/executors.cjs +13 -1
- package/dist/src/executors.d.cts +8 -11
- package/dist/src/executors.d.mts +8 -11
- package/dist/src/executors.mjs +9 -1
- package/dist/src/index-BbciquDs.d.mts +8 -0
- package/dist/src/index-BbciquDs.d.mts.map +1 -0
- package/dist/src/index-COXDf824.d.cts +8 -0
- package/dist/src/index-COXDf824.d.cts.map +1 -0
- package/dist/src/index.cjs +15 -1
- package/dist/src/index.d.cts +8 -11
- package/dist/src/index.d.mts +8 -12
- package/dist/src/index.mjs +10 -1
- package/dist/src/plugin/index.cjs +3 -1
- package/dist/src/plugin/index.d.cts +1 -6
- package/dist/src/plugin/index.d.mts +1 -6
- package/dist/src/plugin/index.mjs +3 -1
- package/dist/src/plugin-BbxHKJnF.mjs +8 -0
- package/dist/src/plugin-BbxHKJnF.mjs.map +1 -0
- package/dist/src/plugin-jIPJzmTp.cjs +14 -0
- package/dist/src/plugin-jIPJzmTp.cjs.map +1 -0
- package/docs/api/base-executor.schema.md +3 -3
- package/docs/api/build/schema.md +3 -3
- package/docs/api/clean/schema.md +14 -4
- package/docs/api/docs/schema.md +13 -3
- package/docs/api/lint/schema.md +13 -3
- package/docs/api/prepare/schema.md +13 -3
- package/package.json +16 -15
- package/dist/_virtual/rolldown_runtime.cjs +0 -1
- package/dist/base/base-executor.cjs +0 -3
- package/dist/base/base-executor.d.cts +0 -16
- package/dist/base/base-executor.d.mts +0 -17
- package/dist/base/base-executor.mjs +0 -3
- package/dist/executors/build/schema.d.ts +0 -84
- package/dist/executors/build/schema.json +0 -94
- package/dist/executors/clean/schema.d.cts +0 -75
- package/dist/executors/clean/schema.d.mts +0 -75
- package/dist/executors/clean/schema.d.ts +0 -74
- package/dist/executors/clean/schema.json +0 -75
- package/dist/executors/docs/schema.d.cts +0 -75
- package/dist/executors/docs/schema.d.mts +0 -75
- package/dist/executors/docs/schema.d.ts +0 -74
- package/dist/executors/docs/schema.json +0 -75
- package/dist/executors/lint/schema.d.cts +0 -75
- package/dist/executors/lint/schema.d.mts +0 -75
- package/dist/executors/lint/schema.d.ts +0 -74
- package/dist/executors/lint/schema.json +0 -75
- package/dist/executors/prepare/schema.d.cts +0 -75
- package/dist/executors/prepare/schema.d.mts +0 -75
- package/dist/executors/prepare/schema.d.ts +0 -74
- package/dist/executors/prepare/schema.json +0 -75
- package/dist/src/_virtual/rolldown_runtime.cjs +0 -1
- package/dist/src/base/base-executor.cjs +0 -3
- package/dist/src/base/base-executor.d.cts +0 -16
- package/dist/src/base/base-executor.d.mts +0 -17
- package/dist/src/base/base-executor.mjs +0 -3
- package/dist/src/executors/clean/schema.d.cts +0 -75
- package/dist/src/executors/clean/schema.d.mts +0 -75
- package/dist/src/executors/docs/schema.d.cts +0 -75
- package/dist/src/executors/docs/schema.d.mts +0 -75
- package/dist/src/executors/lint/schema.d.cts +0 -75
- package/dist/src/executors/lint/schema.d.mts +0 -75
- package/dist/src/executors/prepare/schema.d.cts +0 -75
- package/dist/src/executors/prepare/schema.d.mts +0 -75
package/dist/executors.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import executor from "./
|
|
3
|
-
import { CleanExecutorSchema } from "./
|
|
4
|
-
import executor$
|
|
5
|
-
import {
|
|
6
|
-
import executor$
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import { PrepareExecutorSchema } from "./executors/prepare/schema.mjs";
|
|
10
|
-
import executor$4 from "./executors/prepare/executor.mjs";
|
|
11
|
-
export { type BuildExecutorSchema, type CleanExecutorSchema, type DocsExecutorSchema, type LintExecutorSchema, type PrepareExecutorSchema, executor as build, executor$1 as clean, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
|
|
1
|
+
import "./base-executor-C986ypeP.mjs";
|
|
2
|
+
import { r as BuildExecutorSchema, t as executor } from "./executor-D2Vww0YS.mjs";
|
|
3
|
+
import { r as CleanExecutorSchema, t as executor$1 } from "./executor-DZVLtlig.mjs";
|
|
4
|
+
import { r as DocsExecutorSchema, t as executor$2 } from "./executor-Bbdfz3vU.mjs";
|
|
5
|
+
import { r as LintExecutorSchema, t as executor$3 } from "./executor-MgQPT_ao.mjs";
|
|
6
|
+
import { r as PrepareExecutorSchema, t as executor$4 } from "./executor-BaLNOEzG.mjs";
|
|
7
|
+
import "./executors-DxVudqU1.mjs";
|
|
8
|
+
export { BuildExecutorSchema, CleanExecutorSchema, DocsExecutorSchema, LintExecutorSchema, PrepareExecutorSchema, executor as build, executor$1 as clean, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
|
package/dist/executors.mjs
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./base-executor-WGeWcQ9x.mjs";
|
|
2
|
+
import { n as executor_default } from "./executor-BAfZ_2mt.mjs";
|
|
3
|
+
import { n as executor_default$1 } from "./executor-BB0fklpZ.mjs";
|
|
4
|
+
import { n as executor_default$2 } from "./executor-CqzPUm3D.mjs";
|
|
5
|
+
import { n as executor_default$3 } from "./executor-C5QxZhO7.mjs";
|
|
6
|
+
import { n as executor_default$4 } from "./executor-yO6eAP0j.mjs";
|
|
7
|
+
import "./executors-0N4uK0Ll.mjs";
|
|
8
|
+
|
|
9
|
+
export { executor_default as build, executor_default$1 as clean, executor_default$2 as docs, executor_default$3 as lint, executor_default$4 as prepare };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreateNodesV2 } from "@nx/devkit";
|
|
2
|
+
import { NxPluginOptions } from "@powerlines/nx/types/plugin";
|
|
3
|
+
|
|
4
|
+
//#region src/plugin/index.d.ts
|
|
5
|
+
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createNodesV2 as t };
|
|
8
|
+
//# sourceMappingURL=index-BbciquDs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BbciquDs.d.mts","names":[],"sources":["../../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;cAsBa,eAAe,cAAc"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreateNodesV2 } from "@nx/devkit";
|
|
2
|
+
import { NxPluginOptions } from "@powerlines/nx/types/plugin";
|
|
3
|
+
|
|
4
|
+
//#region src/plugin/index.d.ts
|
|
5
|
+
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createNodesV2 as t };
|
|
8
|
+
//# sourceMappingURL=index-COXDf824.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-COXDf824.d.cts","names":[],"sources":["../../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;cAsBa,eAAe,cAAc"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
require('./base-executor-BEOdY15z.cjs');
|
|
2
|
+
const require_executor = require('./executor-Dih1DtWS.cjs');
|
|
3
|
+
const require_executor$1 = require('./executor-COGLRU0m.cjs');
|
|
4
|
+
const require_executor$2 = require('./executor-BdDn8ZPU.cjs');
|
|
5
|
+
const require_executor$3 = require('./executor-Df7WIF5r.cjs');
|
|
6
|
+
const require_executor$4 = require('./executor-BpeEDqH7.cjs');
|
|
7
|
+
require('./executors-BJFR9wj9.cjs');
|
|
8
|
+
const require_plugin = require('./plugin-jIPJzmTp.cjs');
|
|
9
|
+
|
|
10
|
+
exports.build = require_executor.executor_default;
|
|
11
|
+
exports.clean = require_executor$1.executor_default;
|
|
12
|
+
exports.createNodesV2 = require_plugin.createNodesV2;
|
|
13
|
+
exports.docs = require_executor$2.executor_default;
|
|
14
|
+
exports.lint = require_executor$3.executor_default;
|
|
15
|
+
exports.prepare = require_executor$4.executor_default;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import executor from "./
|
|
3
|
-
import { CleanExecutorSchema } from "./
|
|
4
|
-
import executor$
|
|
5
|
-
import {
|
|
6
|
-
import executor$
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { PrepareExecutorSchema } from "./executors/prepare/schema.cjs";
|
|
10
|
-
import executor$4 from "./executors/prepare/executor.cjs";
|
|
11
|
-
import { createNodesV2 } from "./plugin/index.cjs";
|
|
1
|
+
import "./base-executor-Dm4OV5-b.cjs";
|
|
2
|
+
import { r as BuildExecutorSchema, t as executor } from "./executor-96dASirt.cjs";
|
|
3
|
+
import { r as CleanExecutorSchema, t as executor$1 } from "./executor-D-CbgdfW.cjs";
|
|
4
|
+
import { r as DocsExecutorSchema, t as executor$2 } from "./executor-BbNRVowe.cjs";
|
|
5
|
+
import { r as LintExecutorSchema, t as executor$3 } from "./executor-CiTDecl1.cjs";
|
|
6
|
+
import { r as PrepareExecutorSchema, t as executor$4 } from "./executor-4-xDAK3Q.cjs";
|
|
7
|
+
import "./executors-Dvb23_Uh.cjs";
|
|
8
|
+
import { t as createNodesV2 } from "./index-COXDf824.cjs";
|
|
12
9
|
export { BuildExecutorSchema, CleanExecutorSchema, DocsExecutorSchema, LintExecutorSchema, PrepareExecutorSchema, executor as build, executor$1 as clean, createNodesV2, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import executor from "./
|
|
3
|
-
import { CleanExecutorSchema } from "./
|
|
4
|
-
import executor$
|
|
5
|
-
import {
|
|
6
|
-
import executor$
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { PrepareExecutorSchema } from "./executors/prepare/schema.mjs";
|
|
10
|
-
import executor$4 from "./executors/prepare/executor.mjs";
|
|
11
|
-
import "./executors.mjs";
|
|
12
|
-
import { createNodesV2 } from "./plugin/index.mjs";
|
|
1
|
+
import "./base-executor-C986ypeP.mjs";
|
|
2
|
+
import { r as BuildExecutorSchema, t as executor } from "./executor-D2Vww0YS.mjs";
|
|
3
|
+
import { r as CleanExecutorSchema, t as executor$1 } from "./executor-DZVLtlig.mjs";
|
|
4
|
+
import { r as DocsExecutorSchema, t as executor$2 } from "./executor-Bbdfz3vU.mjs";
|
|
5
|
+
import { r as LintExecutorSchema, t as executor$3 } from "./executor-MgQPT_ao.mjs";
|
|
6
|
+
import { r as PrepareExecutorSchema, t as executor$4 } from "./executor-BaLNOEzG.mjs";
|
|
7
|
+
import "./executors-DxVudqU1.mjs";
|
|
8
|
+
import { t as createNodesV2 } from "./index-BbciquDs.mjs";
|
|
13
9
|
export { BuildExecutorSchema, CleanExecutorSchema, DocsExecutorSchema, LintExecutorSchema, PrepareExecutorSchema, executor as build, executor$1 as clean, createNodesV2, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./base-executor-WGeWcQ9x.mjs";
|
|
2
|
+
import { n as executor_default } from "./executor-BAfZ_2mt.mjs";
|
|
3
|
+
import { n as executor_default$1 } from "./executor-BB0fklpZ.mjs";
|
|
4
|
+
import { n as executor_default$2 } from "./executor-CqzPUm3D.mjs";
|
|
5
|
+
import { n as executor_default$3 } from "./executor-C5QxZhO7.mjs";
|
|
6
|
+
import { n as executor_default$4 } from "./executor-yO6eAP0j.mjs";
|
|
7
|
+
import "./executors-0N4uK0Ll.mjs";
|
|
8
|
+
import { t as createNodesV2 } from "./plugin-BbxHKJnF.mjs";
|
|
9
|
+
|
|
10
|
+
export { executor_default as build, executor_default$1 as clean, createNodesV2, executor_default$2 as docs, executor_default$3 as lint, executor_default$4 as prepare };
|
package/dist/plugin/index.cjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_plugin = require('../plugin-jIPJzmTp.cjs');
|
|
2
|
+
|
|
3
|
+
exports.createNodesV2 = require_plugin.createNodesV2;
|
package/dist/plugin/index.d.cts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NxPluginOptions } from "@powerlines/nx/types/plugin";
|
|
3
|
-
|
|
4
|
-
//#region src/plugin/index.d.ts
|
|
5
|
-
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as createNodesV2 } from "../index-COXDf824.cjs";
|
|
7
2
|
export { createNodesV2 };
|
package/dist/plugin/index.d.mts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NxPluginOptions } from "@powerlines/nx/types/plugin";
|
|
3
|
-
|
|
4
|
-
//#region src/plugin/index.d.ts
|
|
5
|
-
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as createNodesV2 } from "../index-BbciquDs.mjs";
|
|
7
2
|
export { createNodesV2 };
|
package/dist/plugin/index.mjs
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createNxPlugin } from "@powerlines/nx/helpers/plugin-utilities";
|
|
2
|
+
|
|
3
|
+
//#region src/plugin/index.ts
|
|
4
|
+
const createNodesV2 = createNxPlugin({ framework: "shell-shock" });
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createNodesV2 as t };
|
|
8
|
+
//# sourceMappingURL=plugin-BbxHKJnF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BbxHKJnF.mjs","names":["createNodesV2: CreateNodesV2<NxPluginOptions>"],"sources":["../../src/plugin/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\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/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CreateNodesV2 } from \"@nx/devkit\";\nimport { createNxPlugin } from \"@powerlines/nx/helpers/plugin-utilities\";\nimport type { NxPluginOptions } from \"@powerlines/nx/types/plugin\";\n\nexport const createNodesV2: CreateNodesV2<NxPluginOptions> =\n createNxPlugin<NxPluginOptions>({\n framework: \"shell-shock\"\n });\n"],"mappings":";;;AAsBA,MAAaA,gBACX,eAAgC,EAC9B,WAAW,eACZ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_base_executor = require('./base-executor-BEOdY15z.cjs');
|
|
2
|
+
let __powerlines_nx_helpers_plugin_utilities = require("@powerlines/nx/helpers/plugin-utilities");
|
|
3
|
+
|
|
4
|
+
//#region src/plugin/index.ts
|
|
5
|
+
const createNodesV2 = (0, __powerlines_nx_helpers_plugin_utilities.createNxPlugin)({ framework: "shell-shock" });
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
Object.defineProperty(exports, 'createNodesV2', {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return createNodesV2;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=plugin-jIPJzmTp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-jIPJzmTp.cjs","names":["createNodesV2: CreateNodesV2<NxPluginOptions>"],"sources":["../../src/plugin/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\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/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CreateNodesV2 } from \"@nx/devkit\";\nimport { createNxPlugin } from \"@powerlines/nx/helpers/plugin-utilities\";\nimport type { NxPluginOptions } from \"@powerlines/nx/types/plugin\";\n\nexport const createNodesV2: CreateNodesV2<NxPluginOptions> =\n createNxPlugin<NxPluginOptions>({\n framework: \"shell-shock\"\n });\n"],"mappings":";;;;AAsBA,MAAaA,6EACqB,EAC9B,WAAW,eACZ,CAAC"}
|
|
@@ -46,12 +46,12 @@ export interface BaseExecutorSchema {
|
|
|
46
46
|
mode?: string,
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Auto Install
|
|
50
50
|
*
|
|
51
|
-
*
|
|
51
|
+
* Automatically install dependencies during prepare stage
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
autoInstall?: boolean,
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Skip Cache
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
],
|
|
39
39
|
"id": "#mode"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
42
|
-
"title": "
|
|
41
|
+
"autoInstall": {
|
|
42
|
+
"title": "Auto Install",
|
|
43
43
|
"type": "boolean",
|
|
44
|
-
"description": "
|
|
45
|
-
"id": "#
|
|
44
|
+
"description": "Automatically install dependencies during prepare stage",
|
|
45
|
+
"id": "#autoInstall"
|
|
46
46
|
},
|
|
47
47
|
"skipCache": {
|
|
48
48
|
"title": "Skip Cache",
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
let defu = require("defu");
|
|
29
|
+
defu = __toESM(defu);
|
|
30
|
+
let __storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
|
|
31
|
+
let __storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
|
|
32
|
+
let __stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
|
|
33
|
+
let jiti = require("jiti");
|
|
34
|
+
|
|
35
|
+
//#region src/base/base-executor.ts
|
|
36
|
+
/**
|
|
37
|
+
* A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
|
|
41
|
+
*
|
|
42
|
+
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
43
|
+
* @param executorFn - The function that will be executed when the command is run.
|
|
44
|
+
* @returns A Promise that resolves to the result of the executor function.
|
|
45
|
+
*/
|
|
46
|
+
function withExecutor(command, executorFn) {
|
|
47
|
+
return (0, __storm_software_workspace_tools_base_base_executor.withRunExecutor)(`Shell Shock ${command} command executor`, async (options, context, workspaceConfig) => {
|
|
48
|
+
if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
|
|
49
|
+
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
50
|
+
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
51
|
+
const { createShellShock } = await (0, jiti.createJiti)(context.root, { cache: false }).import("@shell-shock/core/api");
|
|
52
|
+
const api = await createShellShock((0, defu.default)({
|
|
53
|
+
name: projectConfig.name,
|
|
54
|
+
root: projectConfig.root,
|
|
55
|
+
sourceRoot: projectConfig.sourceRoot,
|
|
56
|
+
tsconfig: options.tsconfig,
|
|
57
|
+
logLevel: options.logLevel,
|
|
58
|
+
description: projectConfig.metadata?.description,
|
|
59
|
+
type: projectConfig.projectType,
|
|
60
|
+
mode: options.mode,
|
|
61
|
+
skipCache: options.skipCache,
|
|
62
|
+
autoInstall: options.autoInstall,
|
|
63
|
+
output: { outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath }
|
|
64
|
+
}, options));
|
|
65
|
+
try {
|
|
66
|
+
return await Promise.resolve(executorFn((0, defu.default)({
|
|
67
|
+
projectName: context.projectName,
|
|
68
|
+
options,
|
|
69
|
+
workspaceConfig,
|
|
70
|
+
inlineConfig: {
|
|
71
|
+
command,
|
|
72
|
+
configFile: options.configFile
|
|
73
|
+
},
|
|
74
|
+
command
|
|
75
|
+
}, context), api));
|
|
76
|
+
} catch (error) {
|
|
77
|
+
(0, __storm_software_config_tools_logger.writeError)(`An error occurred while executing the Shell Shock ${command} command executor: ${(0, __stryke_type_checks_is_error.isError)(error) ? `${error.message}
|
|
78
|
+
|
|
79
|
+
${error.stack}` : "Unknown error"}`);
|
|
80
|
+
return { success: false };
|
|
81
|
+
} finally {
|
|
82
|
+
await api.finalize();
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
skipReadingConfig: false,
|
|
86
|
+
hooks: { applyDefaultOptions: (options) => {
|
|
87
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
88
|
+
options.configFile ??= "{projectRoot}/shell-shock.config.ts";
|
|
89
|
+
return options;
|
|
90
|
+
} }
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
Object.defineProperty(exports, '__toESM', {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return __toESM;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, 'withExecutor', {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return withExecutor;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=base-executor-BEOdY15z.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-BEOdY15z.cjs","names":[],"sources":["../../src/base/base-executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\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/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI, UserConfig } from \"@shell-shock/core\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type { InlineConfig, PowerlinesCommand } from \"powerlines/types/config\";\nimport type { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type ShellShockExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: ShellShockExecutorContext<TCommand, TExecutorSchema>,\n api: ShellShockAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Shell Shock ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const jiti = createJiti(context.root, { cache: false });\n const { createShellShock } = await jiti.import<{\n createShellShock: typeof import(\"@shell-shock/core/api\").createShellShock;\n }>(\"@shell-shock/core/api\");\n\n const api = await createShellShock(\n defu(\n {\n name: projectConfig.name,\n root: projectConfig.root,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n logLevel: options.logLevel,\n description: projectConfig.metadata?.description,\n type: projectConfig.projectType,\n mode: options.mode,\n skipCache: options.skipCache,\n autoInstall: options.autoInstall,\n output: {\n outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.options?.outputPath\n }\n },\n options\n ) as Partial<UserConfig>\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Shell Shock ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/shell-shock.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgB,aAId,SACA,YAQkC;AAClC,iFACE,eAAe,QAAQ,oBACvB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAGlD,MAAM,EAAE,qBAAqB,2BADL,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC,CACf,OAErC,wBAAwB;EAE3B,MAAM,MAAM,MAAM,mCAEd;GACE,MAAM,cAAc;GACpB,MAAM,cAAc;GACpB,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,aAAa,cAAc,UAAU;GACrC,MAAM,cAAc;GACpB,MAAM,QAAQ;GACd,WAAW,QAAQ;GACnB,aAAa,QAAQ;GACrB,QAAQ,EACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS,YAC1C;GACF,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,6BAEI;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,wDACE,qDACE,QACD,gEACS,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
2
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
3
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
4
|
+
import { InlineConfig, PowerlinesCommand } from "powerlines/types/config";
|
|
5
|
+
|
|
1
6
|
//#region src/base/base-executor.schema.d.ts
|
|
2
7
|
// Generated by powerlines
|
|
3
8
|
// Do not edit this file directly
|
|
4
|
-
|
|
5
9
|
interface BaseExecutorSchema {
|
|
6
10
|
/**
|
|
7
11
|
* Output Path
|
|
@@ -46,12 +50,12 @@ interface BaseExecutorSchema {
|
|
|
46
50
|
mode?: string;
|
|
47
51
|
|
|
48
52
|
/**
|
|
49
|
-
*
|
|
53
|
+
* Auto Install
|
|
50
54
|
*
|
|
51
|
-
*
|
|
55
|
+
* Automatically install dependencies during prepare stage
|
|
52
56
|
*
|
|
53
57
|
*/
|
|
54
|
-
|
|
58
|
+
autoInstall?: boolean;
|
|
55
59
|
|
|
56
60
|
/**
|
|
57
61
|
* Skip Cache
|
|
@@ -72,4 +76,14 @@ interface BaseExecutorSchema {
|
|
|
72
76
|
logLevel?: string;
|
|
73
77
|
}
|
|
74
78
|
//#endregion
|
|
75
|
-
|
|
79
|
+
//#region src/base/base-executor.d.ts
|
|
80
|
+
type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
81
|
+
projectName: string;
|
|
82
|
+
command: TCommand;
|
|
83
|
+
options: TExecutorSchema;
|
|
84
|
+
inlineConfig: InlineConfig;
|
|
85
|
+
workspaceConfig: StormWorkspaceConfig;
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ShellShockExecutorContext as t };
|
|
89
|
+
//# sourceMappingURL=base-executor-C986ypeP.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-C986ypeP.d.mts","names":["BaseExecutorSchema"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Output Path\n * \n * The output path for the build\n * \n * @default \"dist/{projectRoot}\"\n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * TypeScript Configuration File\n * \n * The path to the tsconfig file\n * \n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Shell Shock Configuration File\n * \n * The path to the Shell Shock configuration file\n * \n * @default \"{projectRoot}/shell-shock.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies during prepare stage\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the caching mechanism during the build process (if required)\n * \n */\n skipCache?: boolean,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;AC0BA;;;;EAE+C,UAAA,CAAA,EAAA,MAAA;;EAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AD/BMA,KC0BL,yBD1BuB,CAAA,iBC2BhB,iBD3BgB,GC2BI,iBD3BJ,EAAA,wBC4BT,kBD5BS,GC4BY,kBD5BZ,CAAA,GC6B/B,eD7B+B,GAAA;;WC+BxB;WACA;EANC,YAAA,EAOI,YAPJ;EACO,eAAA,EAOA,oBAPA;CAAoB"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
2
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
3
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
4
|
+
import { InlineConfig, PowerlinesCommand } from "powerlines/types/config";
|
|
5
|
+
|
|
1
6
|
//#region src/base/base-executor.schema.d.ts
|
|
2
7
|
// Generated by powerlines
|
|
3
8
|
// Do not edit this file directly
|
|
4
|
-
|
|
5
9
|
interface BaseExecutorSchema {
|
|
6
10
|
/**
|
|
7
11
|
* Output Path
|
|
@@ -46,12 +50,12 @@ interface BaseExecutorSchema {
|
|
|
46
50
|
mode?: string;
|
|
47
51
|
|
|
48
52
|
/**
|
|
49
|
-
*
|
|
53
|
+
* Auto Install
|
|
50
54
|
*
|
|
51
|
-
*
|
|
55
|
+
* Automatically install dependencies during prepare stage
|
|
52
56
|
*
|
|
53
57
|
*/
|
|
54
|
-
|
|
58
|
+
autoInstall?: boolean;
|
|
55
59
|
|
|
56
60
|
/**
|
|
57
61
|
* Skip Cache
|
|
@@ -72,4 +76,14 @@ interface BaseExecutorSchema {
|
|
|
72
76
|
logLevel?: string;
|
|
73
77
|
}
|
|
74
78
|
//#endregion
|
|
75
|
-
|
|
79
|
+
//#region src/base/base-executor.d.ts
|
|
80
|
+
type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
81
|
+
projectName: string;
|
|
82
|
+
command: TCommand;
|
|
83
|
+
options: TExecutorSchema;
|
|
84
|
+
inlineConfig: InlineConfig;
|
|
85
|
+
workspaceConfig: StormWorkspaceConfig;
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ShellShockExecutorContext as t };
|
|
89
|
+
//# sourceMappingURL=base-executor-Dm4OV5-b.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-Dm4OV5-b.d.cts","names":["BaseExecutorSchema"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Output Path\n * \n * The output path for the build\n * \n * @default \"dist/{projectRoot}\"\n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * TypeScript Configuration File\n * \n * The path to the tsconfig file\n * \n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Shell Shock Configuration File\n * \n * The path to the Shell Shock configuration file\n * \n * @default \"{projectRoot}/shell-shock.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies during prepare stage\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the caching mechanism during the build process (if required)\n * \n */\n skipCache?: boolean,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;AC0BA;;;;EAE+C,UAAA,CAAA,EAAA,MAAA;;EAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AD/BMA,KC0BL,yBD1BuB,CAAA,iBC2BhB,iBD3BgB,GC2BI,iBD3BJ,EAAA,wBC4BT,kBD5BS,GC4BY,kBD5BZ,CAAA,GC6B/B,eD7B+B,GAAA;;WC+BxB;WACA;EANC,YAAA,EAOI,YAPJ;EACO,eAAA,EAOA,oBAPA;CAAoB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import defu from "defu";
|
|
2
|
+
import { writeError } from "@storm-software/config-tools/logger";
|
|
3
|
+
import { withRunExecutor } from "@storm-software/workspace-tools/base/base-executor";
|
|
4
|
+
import { isError } from "@stryke/type-checks/is-error";
|
|
5
|
+
import { createJiti } from "jiti";
|
|
6
|
+
|
|
7
|
+
//#region src/base/base-executor.ts
|
|
8
|
+
/**
|
|
9
|
+
* A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
|
|
13
|
+
*
|
|
14
|
+
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
15
|
+
* @param executorFn - The function that will be executed when the command is run.
|
|
16
|
+
* @returns A Promise that resolves to the result of the executor function.
|
|
17
|
+
*/
|
|
18
|
+
function withExecutor(command, executorFn) {
|
|
19
|
+
return withRunExecutor(`Shell Shock ${command} command executor`, async (options, context, workspaceConfig) => {
|
|
20
|
+
if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
|
|
21
|
+
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
22
|
+
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
23
|
+
const { createShellShock } = await createJiti(context.root, { cache: false }).import("@shell-shock/core/api");
|
|
24
|
+
const api = await createShellShock(defu({
|
|
25
|
+
name: projectConfig.name,
|
|
26
|
+
root: projectConfig.root,
|
|
27
|
+
sourceRoot: projectConfig.sourceRoot,
|
|
28
|
+
tsconfig: options.tsconfig,
|
|
29
|
+
logLevel: options.logLevel,
|
|
30
|
+
description: projectConfig.metadata?.description,
|
|
31
|
+
type: projectConfig.projectType,
|
|
32
|
+
mode: options.mode,
|
|
33
|
+
skipCache: options.skipCache,
|
|
34
|
+
autoInstall: options.autoInstall,
|
|
35
|
+
output: { outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath }
|
|
36
|
+
}, options));
|
|
37
|
+
try {
|
|
38
|
+
return await Promise.resolve(executorFn(defu({
|
|
39
|
+
projectName: context.projectName,
|
|
40
|
+
options,
|
|
41
|
+
workspaceConfig,
|
|
42
|
+
inlineConfig: {
|
|
43
|
+
command,
|
|
44
|
+
configFile: options.configFile
|
|
45
|
+
},
|
|
46
|
+
command
|
|
47
|
+
}, context), api));
|
|
48
|
+
} catch (error) {
|
|
49
|
+
writeError(`An error occurred while executing the Shell Shock ${command} command executor: ${isError(error) ? `${error.message}
|
|
50
|
+
|
|
51
|
+
${error.stack}` : "Unknown error"}`);
|
|
52
|
+
return { success: false };
|
|
53
|
+
} finally {
|
|
54
|
+
await api.finalize();
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
skipReadingConfig: false,
|
|
58
|
+
hooks: { applyDefaultOptions: (options) => {
|
|
59
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
60
|
+
options.configFile ??= "{projectRoot}/shell-shock.config.ts";
|
|
61
|
+
return options;
|
|
62
|
+
} }
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { withExecutor as t };
|
|
68
|
+
//# sourceMappingURL=base-executor-WGeWcQ9x.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-WGeWcQ9x.mjs","names":[],"sources":["../../src/base/base-executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\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/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI, UserConfig } from \"@shell-shock/core\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type { InlineConfig, PowerlinesCommand } from \"powerlines/types/config\";\nimport type { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type ShellShockExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: ShellShockExecutorContext<TCommand, TExecutorSchema>,\n api: ShellShockAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Shell Shock ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const jiti = createJiti(context.root, { cache: false });\n const { createShellShock } = await jiti.import<{\n createShellShock: typeof import(\"@shell-shock/core/api\").createShellShock;\n }>(\"@shell-shock/core/api\");\n\n const api = await createShellShock(\n defu(\n {\n name: projectConfig.name,\n root: projectConfig.root,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n logLevel: options.logLevel,\n description: projectConfig.metadata?.description,\n type: projectConfig.projectType,\n mode: options.mode,\n skipCache: options.skipCache,\n autoInstall: options.autoInstall,\n output: {\n outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.options?.outputPath\n }\n },\n options\n ) as Partial<UserConfig>\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Shell Shock ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/shell-shock.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,eAAe,QAAQ,oBACvB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAGlD,MAAM,EAAE,qBAAqB,MADhB,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC,CACf,OAErC,wBAAwB;EAE3B,MAAM,MAAM,MAAM,iBAChB,KACE;GACE,MAAM,cAAc;GACpB,MAAM,cAAc;GACpB,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,aAAa,cAAc,UAAU;GACrC,MAAM,cAAc;GACpB,MAAM,QAAQ;GACd,WAAW,QAAQ;GACnB,aAAa,QAAQ;GACrB,QAAQ,EACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS,YAC1C;GACF,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,qDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
|