@shell-shock/nx 0.0.4 → 0.0.6
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 +33 -0
- package/README.md +221 -0
- package/dist/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/base/base-executor.cjs +3 -0
- package/dist/base/base-executor.d.cts +16 -0
- package/dist/base/base-executor.d.mts +17 -0
- package/dist/base/base-executor.mjs +3 -0
- package/dist/base/base-executor.schema.d.cts +75 -0
- package/dist/base/base-executor.schema.d.mts +75 -0
- package/dist/executors/build/executor.cjs +1 -1
- package/dist/executors/build/executor.d.cts +11 -0
- package/dist/executors/build/executor.d.mts +11 -0
- package/dist/executors/build/executor.mjs +1 -0
- package/dist/executors/build/schema.d.cts +85 -0
- package/dist/executors/build/schema.d.mts +85 -0
- package/dist/executors/build/schema.d.ts +84 -0
- package/dist/executors/build/schema.json +94 -0
- package/dist/executors/clean/executor.cjs +1 -1
- package/dist/executors/clean/executor.d.cts +11 -0
- package/dist/executors/clean/executor.d.mts +11 -0
- package/dist/executors/clean/executor.mjs +1 -0
- package/dist/executors/clean/schema.d.cts +75 -0
- package/dist/executors/clean/schema.d.mts +75 -0
- package/dist/executors/clean/schema.d.ts +74 -0
- package/dist/executors/clean/schema.json +75 -0
- package/dist/executors/docs/executor.cjs +1 -1
- package/dist/executors/docs/executor.d.cts +11 -0
- package/dist/executors/docs/executor.d.mts +11 -0
- package/dist/executors/docs/executor.mjs +1 -0
- package/dist/executors/docs/schema.d.cts +75 -0
- package/dist/executors/docs/schema.d.mts +75 -0
- package/dist/executors/docs/schema.d.ts +74 -0
- package/dist/executors/docs/schema.json +75 -0
- package/dist/executors/lint/executor.cjs +1 -1
- package/dist/executors/lint/executor.d.cts +11 -0
- package/dist/executors/lint/executor.d.mts +11 -0
- package/dist/executors/lint/executor.mjs +1 -0
- package/dist/executors/lint/schema.d.cts +75 -0
- package/dist/executors/lint/schema.d.mts +75 -0
- package/dist/executors/lint/schema.d.ts +74 -0
- package/dist/executors/lint/schema.json +75 -0
- package/dist/executors/prepare/executor.cjs +1 -1
- package/dist/executors/prepare/executor.d.cts +11 -0
- package/dist/executors/prepare/executor.d.mts +11 -0
- package/dist/executors/prepare/executor.mjs +1 -0
- package/dist/executors/prepare/schema.d.cts +75 -0
- package/dist/executors/prepare/schema.d.mts +75 -0
- package/dist/executors/prepare/schema.d.ts +74 -0
- package/dist/executors/prepare/schema.json +75 -0
- package/dist/executors.cjs +1 -1
- package/dist/executors.d.cts +11 -0
- package/dist/executors.d.mts +11 -0
- package/dist/executors.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.mts +13 -0
- package/dist/index.mjs +1 -0
- package/dist/plugin/index.cjs +1 -1
- package/dist/plugin/index.d.cts +7 -0
- package/dist/plugin/index.d.mts +7 -0
- package/dist/plugin/index.mjs +1 -0
- package/dist/src/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/src/base/base-executor.cjs +3 -0
- package/dist/src/base/base-executor.d.cts +16 -0
- package/dist/src/base/base-executor.d.mts +17 -0
- package/dist/src/base/base-executor.mjs +3 -0
- package/dist/src/base/base-executor.schema.d.cts +75 -0
- package/dist/src/base/base-executor.schema.d.mts +75 -0
- package/dist/src/executors/build/executor.cjs +1 -1
- package/dist/src/executors/build/executor.d.cts +11 -0
- package/dist/src/executors/build/executor.d.mts +11 -0
- package/dist/src/executors/build/executor.mjs +1 -0
- package/dist/src/executors/build/schema.d.cts +85 -0
- package/dist/src/executors/build/schema.d.mts +85 -0
- package/dist/src/executors/clean/executor.cjs +1 -1
- package/dist/src/executors/clean/executor.d.cts +11 -0
- package/dist/src/executors/clean/executor.d.mts +11 -0
- package/dist/src/executors/clean/executor.mjs +1 -0
- package/dist/src/executors/clean/schema.d.cts +75 -0
- package/dist/src/executors/clean/schema.d.mts +75 -0
- package/dist/src/executors/docs/executor.cjs +1 -1
- package/dist/src/executors/docs/executor.d.cts +11 -0
- package/dist/src/executors/docs/executor.d.mts +11 -0
- package/dist/src/executors/docs/executor.mjs +1 -0
- package/dist/src/executors/docs/schema.d.cts +75 -0
- package/dist/src/executors/docs/schema.d.mts +75 -0
- package/dist/src/executors/lint/executor.cjs +1 -1
- package/dist/src/executors/lint/executor.d.cts +11 -0
- package/dist/src/executors/lint/executor.d.mts +11 -0
- package/dist/src/executors/lint/executor.mjs +1 -0
- package/dist/src/executors/lint/schema.d.cts +75 -0
- package/dist/src/executors/lint/schema.d.mts +75 -0
- package/dist/src/executors/prepare/executor.cjs +1 -1
- package/dist/src/executors/prepare/executor.d.cts +11 -0
- package/dist/src/executors/prepare/executor.d.mts +11 -0
- package/dist/src/executors/prepare/executor.mjs +1 -0
- package/dist/src/executors/prepare/schema.d.cts +75 -0
- package/dist/src/executors/prepare/schema.d.mts +75 -0
- package/dist/src/executors.cjs +1 -1
- package/dist/src/executors.d.cts +11 -0
- package/dist/src/executors.d.mts +11 -0
- package/dist/src/executors.mjs +1 -0
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.d.cts +12 -0
- package/dist/src/index.d.mts +13 -0
- package/dist/src/index.mjs +1 -0
- package/dist/src/plugin/index.cjs +1 -1
- package/dist/src/plugin/index.d.cts +7 -0
- package/dist/src/plugin/index.d.mts +7 -0
- package/dist/src/plugin/index.mjs +1 -0
- package/package.json +42 -43
- package/dist/chunk-2RWIKK2K.js +0 -1
- package/dist/chunk-4DF5MMDG.cjs +0 -1
- package/dist/chunk-5QOOID3A.js +0 -1
- package/dist/chunk-BQ6JGDCK.cjs +0 -1
- package/dist/chunk-C55D3UE2.js +0 -1
- package/dist/chunk-JL2WYYI2.cjs +0 -1
- package/dist/chunk-JLEWSDGU.js +0 -1
- package/dist/chunk-KDEQXNLK.cjs +0 -1
- package/dist/chunk-MJPKGB2J.js +0 -1
- package/dist/chunk-MOC37UWO.js +0 -3
- package/dist/chunk-NCXOX46C.cjs +0 -1
- package/dist/chunk-OGORC6MB.cjs +0 -1
- package/dist/chunk-PKDDOBUQ.cjs +0 -5
- package/dist/chunk-UR2OGNGK.cjs +0 -1
- package/dist/chunk-WNSAXKZ3.js +0 -0
- package/dist/chunk-YXZRI7BT.cjs +0 -3
- package/dist/chunk-ZD5Z5HMM.js +0 -1
- package/dist/chunk-ZJQUMHFI.js +0 -5
- package/dist/executors/build/executor.js +0 -1
- package/dist/executors/clean/executor.js +0 -1
- package/dist/executors/docs/executor.js +0 -1
- package/dist/executors/lint/executor.js +0 -1
- package/dist/executors/prepare/executor.js +0 -1
- package/dist/executors.js +0 -1
- package/dist/index.js +0 -1
- package/dist/plugin/index.js +0 -1
- package/dist/src/chunk-2RWIKK2K.js +0 -1
- package/dist/src/chunk-4DF5MMDG.cjs +0 -1
- package/dist/src/chunk-5QOOID3A.js +0 -1
- package/dist/src/chunk-BQ6JGDCK.cjs +0 -1
- package/dist/src/chunk-C55D3UE2.js +0 -1
- package/dist/src/chunk-JL2WYYI2.cjs +0 -1
- package/dist/src/chunk-JLEWSDGU.js +0 -1
- package/dist/src/chunk-KDEQXNLK.cjs +0 -1
- package/dist/src/chunk-MJPKGB2J.js +0 -1
- package/dist/src/chunk-MOC37UWO.js +0 -3
- package/dist/src/chunk-NCXOX46C.cjs +0 -1
- package/dist/src/chunk-OGORC6MB.cjs +0 -1
- package/dist/src/chunk-PKDDOBUQ.cjs +0 -5
- package/dist/src/chunk-UR2OGNGK.cjs +0 -1
- package/dist/src/chunk-WNSAXKZ3.js +0 -0
- package/dist/src/chunk-YXZRI7BT.cjs +0 -3
- package/dist/src/chunk-ZD5Z5HMM.js +0 -1
- package/dist/src/chunk-ZJQUMHFI.js +0 -5
- package/dist/src/executors/build/executor.js +0 -1
- package/dist/src/executors/clean/executor.js +0 -1
- package/dist/src/executors/docs/executor.js +0 -1
- package/dist/src/executors/lint/executor.js +0 -1
- package/dist/src/executors/prepare/executor.js +0 -1
- package/dist/src/executors.js +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/plugin/index.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as executorFn}from'../../chunk-C55D3UE2.js';import'../../chunk-MOC37UWO.js';import'../../chunk-ZJQUMHFI.js';
|
package/dist/executors.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import'./chunk-WNSAXKZ3.js';export{b as prepare}from'./chunk-C55D3UE2.js';export{b as lint}from'./chunk-JLEWSDGU.js';export{b as docs}from'./chunk-ZD5Z5HMM.js';export{b as clean}from'./chunk-MJPKGB2J.js';export{b as build}from'./chunk-5QOOID3A.js';import'./chunk-MOC37UWO.js';import'./chunk-ZJQUMHFI.js';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as createNodesV2}from'./chunk-2RWIKK2K.js';import'./chunk-WNSAXKZ3.js';export{b as prepare}from'./chunk-C55D3UE2.js';export{b as lint}from'./chunk-JLEWSDGU.js';export{b as docs}from'./chunk-ZD5Z5HMM.js';export{b as clean}from'./chunk-MJPKGB2J.js';export{b as build}from'./chunk-5QOOID3A.js';import'./chunk-MOC37UWO.js';import'./chunk-ZJQUMHFI.js';
|
package/dist/plugin/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as createNodesV2}from'../chunk-2RWIKK2K.js';import'../chunk-ZJQUMHFI.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {createNxPlugin}from'@powerlines/nx/helpers/plugin-utilities';var i=createNxPlugin({framework:"shell-shock"});export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-MOC37UWO.js';import {a}from'./chunk-ZJQUMHFI.js';import i from'defu';async function u(e,r){return await r.build(i({entry:e.options.entry,skipCache:e.options.skipCache,mode:e.options.mode},e.inlineConfig)),{success:true}}a(u,"executorFn");var c=a$1("build",u),n=c;export{u as a,n as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkYXZRI7BT_cjs=require('./chunk-YXZRI7BT.cjs'),chunkPKDDOBUQ_cjs=require('./chunk-PKDDOBUQ.cjs'),p=require('defu');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var p__default=/*#__PURE__*/_interopDefault(p);async function s(e,t){return await t.prepare(p__default.default({command:"prepare",skipCache:e.options.skipCache,skipInstalls:e.options.skipInstalls},e.inlineConfig)),{success:true}}chunkPKDDOBUQ_cjs.a(s,"executorFn");var a=chunkYXZRI7BT_cjs.a("prepare",s),n=a;exports.a=s;exports.b=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-MOC37UWO.js';import {a as a$1}from'./chunk-ZJQUMHFI.js';import p from'defu';async function s(e,t){return await t.prepare(p({command:"prepare",skipCache:e.options.skipCache,skipInstalls:e.options.skipInstalls},e.inlineConfig)),{success:true}}a$1(s,"executorFn");var a=a$2("prepare",s),l=a;export{s as a,l as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkYXZRI7BT_cjs=require('./chunk-YXZRI7BT.cjs'),chunkPKDDOBUQ_cjs=require('./chunk-PKDDOBUQ.cjs'),i=require('defu');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var i__default=/*#__PURE__*/_interopDefault(i);async function u(e,r){return await r.build(i__default.default({entry:e.options.entry,skipCache:e.options.skipCache,mode:e.options.mode},e.inlineConfig)),{success:true}}chunkPKDDOBUQ_cjs.a(u,"executorFn");var c=chunkYXZRI7BT_cjs.a("build",u),p=c;exports.a=u;exports.b=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-MOC37UWO.js';import {a}from'./chunk-ZJQUMHFI.js';async function i(o,r){return await r.lint(o.inlineConfig),{success:true}}a(i,"executorFn");var c=a$1("lint",i),l=c;export{i as a,l as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var pluginUtilities=require('@powerlines/nx/helpers/plugin-utilities');var r=pluginUtilities.createNxPlugin({framework:"shell-shock"});exports.a=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-MOC37UWO.js';import {a}from'./chunk-ZJQUMHFI.js';async function c(t,r){return await r.clean(t.inlineConfig),{success:true}}a(c,"executorFn");var n=a$1("clean",c),i=n;export{c as a,i as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-ZJQUMHFI.js';import {ShellShockAPI}from'@shell-shock/core';import {writeError}from'@storm-software/config-tools/logger';import {withRunExecutor}from'@storm-software/workspace-tools/base/base-executor';import {isError}from'@stryke/type-checks/is-error';import n from'defu';function j(r,s){return withRunExecutor(`Shell Shock ${r} command executor`,async(e,o,m)=>{if(!o.projectName)throw new Error("The executor requires `projectName` on the context object.");if(!o.projectName||!o.projectsConfigurations?.projects||!o.projectsConfigurations.projects[o.projectName]||!o.projectsConfigurations.projects[o.projectName]?.root)throw new Error("The executor requires `projectsConfigurations` on the context object.");let t=o.projectsConfigurations.projects[o.projectName],a=await ShellShockAPI.from(n({root:t.root,type:t.projectType,sourceRoot:t.sourceRoot,tsconfig:e.tsconfig,logLevel:e.logLevel,mode:e.mode,skipCache:e.skipCache,output:{outputPath:e.outputPath??t.targets?.build?.options?.outputPath}},e));try{return await Promise.resolve(s(n({projectName:o.projectName,options:e,workspaceConfig:m,inlineConfig:{command:r,configFile:e.configFile},command:r},o),a))}catch(c){return writeError(`An error occurred while executing the Shell Shock ${r} command executor: ${isError(c)?`${c.message}
|
|
2
|
-
|
|
3
|
-
${c.stack}`:"Unknown error"}`),{success:false}}finally{await a.finalize();}},{skipReadingConfig:false,hooks:{applyDefaultOptions:a(e=>(e.mode!=="development"&&e.mode!=="test"&&(e.mode="production"),e.outputPath??="dist/{projectRoot}",e.configFile??="{projectRoot}/shell-shock.config.ts",e),"applyDefaultOptions")}})}a(j,"withExecutor");export{j as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkYXZRI7BT_cjs=require('./chunk-YXZRI7BT.cjs'),chunkPKDDOBUQ_cjs=require('./chunk-PKDDOBUQ.cjs');async function i(o,r){return await r.lint(o.inlineConfig),{success:true}}chunkPKDDOBUQ_cjs.a(i,"executorFn");var c=chunkYXZRI7BT_cjs.a("lint",i),m=c;exports.a=i;exports.b=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkYXZRI7BT_cjs=require('./chunk-YXZRI7BT.cjs'),chunkPKDDOBUQ_cjs=require('./chunk-PKDDOBUQ.cjs');async function r(t,c){return await c.docs(t.inlineConfig),{success:true}}chunkPKDDOBUQ_cjs.a(r,"executorFn");var s=chunkYXZRI7BT_cjs.a("docs",r),u=s;exports.a=r;exports.b=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkYXZRI7BT_cjs=require('./chunk-YXZRI7BT.cjs'),chunkPKDDOBUQ_cjs=require('./chunk-PKDDOBUQ.cjs');async function c(t,r){return await r.clean(t.inlineConfig),{success:true}}chunkPKDDOBUQ_cjs.a(c,"executorFn");var n=chunkYXZRI7BT_cjs.a("clean",c),s=n;exports.a=c;exports.b=s;
|
|
File without changes
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkPKDDOBUQ_cjs=require('./chunk-PKDDOBUQ.cjs'),core=require('@shell-shock/core'),logger=require('@storm-software/config-tools/logger'),baseExecutor=require('@storm-software/workspace-tools/base/base-executor'),isError=require('@stryke/type-checks/is-error'),n=require('defu');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var n__default=/*#__PURE__*/_interopDefault(n);function S(r,s){return baseExecutor.withRunExecutor(`Shell Shock ${r} command executor`,async(e,o,m)=>{if(!o.projectName)throw new Error("The executor requires `projectName` on the context object.");if(!o.projectName||!o.projectsConfigurations?.projects||!o.projectsConfigurations.projects[o.projectName]||!o.projectsConfigurations.projects[o.projectName]?.root)throw new Error("The executor requires `projectsConfigurations` on the context object.");let t=o.projectsConfigurations.projects[o.projectName],a=await core.ShellShockAPI.from(n__default.default({root:t.root,type:t.projectType,sourceRoot:t.sourceRoot,tsconfig:e.tsconfig,logLevel:e.logLevel,mode:e.mode,skipCache:e.skipCache,output:{outputPath:e.outputPath??t.targets?.build?.options?.outputPath}},e));try{return await Promise.resolve(s(n__default.default({projectName:o.projectName,options:e,workspaceConfig:m,inlineConfig:{command:r,configFile:e.configFile},command:r},o),a))}catch(c){return logger.writeError(`An error occurred while executing the Shell Shock ${r} command executor: ${isError.isError(c)?`${c.message}
|
|
2
|
-
|
|
3
|
-
${c.stack}`:"Unknown error"}`),{success:false}}finally{await a.finalize();}},{skipReadingConfig:false,hooks:{applyDefaultOptions:chunkPKDDOBUQ_cjs.a(e=>(e.mode!=="development"&&e.mode!=="test"&&(e.mode="production"),e.outputPath??="dist/{projectRoot}",e.configFile??="{projectRoot}/shell-shock.config.ts",e),"applyDefaultOptions")}})}chunkPKDDOBUQ_cjs.a(S,"withExecutor");exports.a=S;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-MOC37UWO.js';import {a}from'./chunk-ZJQUMHFI.js';async function r(t,c){return await c.docs(t.inlineConfig),{success:true}}a(r,"executorFn");var s=a$1("docs",r),n=s;export{r as a,n as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as executorFn}from'../../chunk-5QOOID3A.js';import'../../chunk-MOC37UWO.js';import'../../chunk-ZJQUMHFI.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as executorFn}from'../../chunk-MJPKGB2J.js';import'../../chunk-MOC37UWO.js';import'../../chunk-ZJQUMHFI.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as executorFn}from'../../chunk-ZD5Z5HMM.js';import'../../chunk-MOC37UWO.js';import'../../chunk-ZJQUMHFI.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as executorFn}from'../../chunk-JLEWSDGU.js';import'../../chunk-MOC37UWO.js';import'../../chunk-ZJQUMHFI.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as executorFn}from'../../chunk-C55D3UE2.js';import'../../chunk-MOC37UWO.js';import'../../chunk-ZJQUMHFI.js';
|
package/dist/src/executors.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import'./chunk-WNSAXKZ3.js';export{b as prepare}from'./chunk-C55D3UE2.js';export{b as lint}from'./chunk-JLEWSDGU.js';export{b as docs}from'./chunk-ZD5Z5HMM.js';export{b as clean}from'./chunk-MJPKGB2J.js';export{b as build}from'./chunk-5QOOID3A.js';import'./chunk-MOC37UWO.js';import'./chunk-ZJQUMHFI.js';
|
package/dist/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as createNodesV2}from'./chunk-2RWIKK2K.js';import'./chunk-WNSAXKZ3.js';export{b as prepare}from'./chunk-C55D3UE2.js';export{b as lint}from'./chunk-JLEWSDGU.js';export{b as docs}from'./chunk-ZD5Z5HMM.js';export{b as clean}from'./chunk-MJPKGB2J.js';export{b as build}from'./chunk-5QOOID3A.js';import'./chunk-MOC37UWO.js';import'./chunk-ZJQUMHFI.js';
|
package/dist/src/plugin/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as createNodesV2}from'../chunk-2RWIKK2K.js';import'../chunk-ZJQUMHFI.js';
|