@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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/executors/prepare/schema.d.ts
|
|
2
|
+
// Generated by powerlines
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
interface PrepareExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Output Path
|
|
8
|
+
*
|
|
9
|
+
* The output path for the build
|
|
10
|
+
*
|
|
11
|
+
* @default "dist/{projectRoot}"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
outputPath?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TypeScript Configuration File
|
|
19
|
+
*
|
|
20
|
+
* The path to the tsconfig file
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @format path
|
|
24
|
+
*/
|
|
25
|
+
tsconfig?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Shell Shock Configuration File
|
|
29
|
+
*
|
|
30
|
+
* The path to the Shell Shock configuration file
|
|
31
|
+
*
|
|
32
|
+
* @default "{projectRoot}/shell-shock.config.ts"
|
|
33
|
+
*
|
|
34
|
+
* @format path
|
|
35
|
+
*/
|
|
36
|
+
configFile?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Mode
|
|
40
|
+
*
|
|
41
|
+
* The build mode
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @enum development,test,production
|
|
45
|
+
*/
|
|
46
|
+
mode?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Skip Installs
|
|
50
|
+
*
|
|
51
|
+
* Skip installing dependencies before building
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
skipInstalls?: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Skip Cache
|
|
58
|
+
*
|
|
59
|
+
* Skip the cache when building
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
skipCache?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Log Level
|
|
66
|
+
*
|
|
67
|
+
* The log level to use for the build process
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
71
|
+
*/
|
|
72
|
+
logLevel?: string;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { PrepareExecutorSchema };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/executors/prepare/schema.d.ts
|
|
2
|
+
// Generated by powerlines
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
interface PrepareExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Output Path
|
|
8
|
+
*
|
|
9
|
+
* The output path for the build
|
|
10
|
+
*
|
|
11
|
+
* @default "dist/{projectRoot}"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
outputPath?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TypeScript Configuration File
|
|
19
|
+
*
|
|
20
|
+
* The path to the tsconfig file
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @format path
|
|
24
|
+
*/
|
|
25
|
+
tsconfig?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Shell Shock Configuration File
|
|
29
|
+
*
|
|
30
|
+
* The path to the Shell Shock configuration file
|
|
31
|
+
*
|
|
32
|
+
* @default "{projectRoot}/shell-shock.config.ts"
|
|
33
|
+
*
|
|
34
|
+
* @format path
|
|
35
|
+
*/
|
|
36
|
+
configFile?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Mode
|
|
40
|
+
*
|
|
41
|
+
* The build mode
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @enum development,test,production
|
|
45
|
+
*/
|
|
46
|
+
mode?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Skip Installs
|
|
50
|
+
*
|
|
51
|
+
* Skip installing dependencies before building
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
skipInstalls?: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Skip Cache
|
|
58
|
+
*
|
|
59
|
+
* Skip the cache when building
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
skipCache?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Log Level
|
|
66
|
+
*
|
|
67
|
+
* The log level to use for the build process
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
71
|
+
*/
|
|
72
|
+
logLevel?: string;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { PrepareExecutorSchema };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
|
|
2
|
+
// Generated by powerlines
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
export interface PrepareExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Output Path
|
|
8
|
+
*
|
|
9
|
+
* The output path for the build
|
|
10
|
+
*
|
|
11
|
+
* @default "dist/{projectRoot}"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
outputPath?: string,
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TypeScript Configuration File
|
|
19
|
+
*
|
|
20
|
+
* The path to the tsconfig file
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @format path
|
|
24
|
+
*/
|
|
25
|
+
tsconfig?: string,
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Shell Shock Configuration File
|
|
29
|
+
*
|
|
30
|
+
* The path to the Shell Shock configuration file
|
|
31
|
+
*
|
|
32
|
+
* @default "{projectRoot}/shell-shock.config.ts"
|
|
33
|
+
*
|
|
34
|
+
* @format path
|
|
35
|
+
*/
|
|
36
|
+
configFile?: string,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Mode
|
|
40
|
+
*
|
|
41
|
+
* The build mode
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @enum development,test,production
|
|
45
|
+
*/
|
|
46
|
+
mode?: string,
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Skip Installs
|
|
50
|
+
*
|
|
51
|
+
* Skip installing dependencies before building
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
skipInstalls?: boolean,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Skip Cache
|
|
58
|
+
*
|
|
59
|
+
* Skip the cache when building
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
skipCache?: boolean,
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Log Level
|
|
66
|
+
*
|
|
67
|
+
* The log level to use for the build process
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
71
|
+
*/
|
|
72
|
+
logLevel?: string,
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"title": "Prepare Executor",
|
|
4
|
+
"description": "A type definition for the Powerlines - Prepare executor schema",
|
|
5
|
+
"required": [],
|
|
6
|
+
"properties": {
|
|
7
|
+
"outputPath": {
|
|
8
|
+
"title": "Output Path",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "path",
|
|
11
|
+
"description": "The output path for the build",
|
|
12
|
+
"id": "#outputPath",
|
|
13
|
+
"default": "dist/{projectRoot}"
|
|
14
|
+
},
|
|
15
|
+
"tsconfig": {
|
|
16
|
+
"title": "TypeScript Configuration File",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "path",
|
|
19
|
+
"description": "The path to the tsconfig file",
|
|
20
|
+
"id": "#tsconfig"
|
|
21
|
+
},
|
|
22
|
+
"configFile": {
|
|
23
|
+
"title": "Shell Shock Configuration File",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "path",
|
|
26
|
+
"description": "The path to the Shell Shock configuration file",
|
|
27
|
+
"id": "#configFile",
|
|
28
|
+
"default": "{projectRoot}/shell-shock.config.ts"
|
|
29
|
+
},
|
|
30
|
+
"mode": {
|
|
31
|
+
"title": "Mode",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The build mode",
|
|
34
|
+
"enum": [
|
|
35
|
+
"development",
|
|
36
|
+
"test",
|
|
37
|
+
"production"
|
|
38
|
+
],
|
|
39
|
+
"id": "#mode"
|
|
40
|
+
},
|
|
41
|
+
"skipInstalls": {
|
|
42
|
+
"title": "Skip Installs",
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "Skip installing dependencies before building",
|
|
45
|
+
"id": "#skipInstalls"
|
|
46
|
+
},
|
|
47
|
+
"skipCache": {
|
|
48
|
+
"title": "Skip Cache",
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Skip the cache when building",
|
|
51
|
+
"id": "#skipCache"
|
|
52
|
+
},
|
|
53
|
+
"logLevel": {
|
|
54
|
+
"title": "Log Level",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "The log level to use for the build process",
|
|
57
|
+
"enum": [
|
|
58
|
+
"fatal",
|
|
59
|
+
"error",
|
|
60
|
+
"warn",
|
|
61
|
+
"success",
|
|
62
|
+
"info",
|
|
63
|
+
"debug",
|
|
64
|
+
"trace",
|
|
65
|
+
"silent"
|
|
66
|
+
],
|
|
67
|
+
"id": "#logLevel"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"type": "object",
|
|
71
|
+
"default": {
|
|
72
|
+
"outputPath": "dist/{projectRoot}",
|
|
73
|
+
"configFile": "{projectRoot}/shell-shock.config.ts"
|
|
74
|
+
}
|
|
75
|
+
}
|
package/dist/executors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`./executors/build/executor.cjs`),t=require(`./executors/clean/executor.cjs`),n=require(`./executors/docs/executor.cjs`),r=require(`./executors/lint/executor.cjs`),i=require(`./executors/prepare/executor.cjs`);exports.build=e.default,exports.clean=t.default,exports.docs=n.default,exports.lint=r.default,exports.prepare=i.default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuildExecutorSchema } from "./executors/build/schema.cjs";
|
|
2
|
+
import executor from "./executors/build/executor.cjs";
|
|
3
|
+
import { CleanExecutorSchema } from "./executors/clean/schema.cjs";
|
|
4
|
+
import executor$1 from "./executors/clean/executor.cjs";
|
|
5
|
+
import { DocsExecutorSchema } from "./executors/docs/schema.cjs";
|
|
6
|
+
import executor$2 from "./executors/docs/executor.cjs";
|
|
7
|
+
import { LintExecutorSchema } from "./executors/lint/schema.cjs";
|
|
8
|
+
import executor$3 from "./executors/lint/executor.cjs";
|
|
9
|
+
import { PrepareExecutorSchema } from "./executors/prepare/schema.cjs";
|
|
10
|
+
import executor$4 from "./executors/prepare/executor.cjs";
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuildExecutorSchema } from "./executors/build/schema.mjs";
|
|
2
|
+
import executor from "./executors/build/executor.mjs";
|
|
3
|
+
import { CleanExecutorSchema } from "./executors/clean/schema.mjs";
|
|
4
|
+
import executor$1 from "./executors/clean/executor.mjs";
|
|
5
|
+
import { DocsExecutorSchema } from "./executors/docs/schema.mjs";
|
|
6
|
+
import executor$2 from "./executors/docs/executor.mjs";
|
|
7
|
+
import { LintExecutorSchema } from "./executors/lint/schema.mjs";
|
|
8
|
+
import executor$3 from "./executors/lint/executor.mjs";
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./executors/build/executor.mjs";import t from"./executors/clean/executor.mjs";import n from"./executors/docs/executor.mjs";import r from"./executors/lint/executor.mjs";import i from"./executors/prepare/executor.mjs";export{e as build,t as clean,n as docs,r as lint,i as prepare};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`./executors/build/executor.cjs`),t=require(`./executors/clean/executor.cjs`),n=require(`./executors/docs/executor.cjs`),r=require(`./executors/lint/executor.cjs`),i=require(`./executors/prepare/executor.cjs`);require(`./executors.cjs`);const a=require(`./plugin/index.cjs`);exports.build=e.default,exports.clean=t.default,exports.createNodesV2=a.createNodesV2,exports.docs=n.default,exports.lint=r.default,exports.prepare=i.default;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuildExecutorSchema } from "./executors/build/schema.cjs";
|
|
2
|
+
import executor from "./executors/build/executor.cjs";
|
|
3
|
+
import { CleanExecutorSchema } from "./executors/clean/schema.cjs";
|
|
4
|
+
import executor$1 from "./executors/clean/executor.cjs";
|
|
5
|
+
import { DocsExecutorSchema } from "./executors/docs/schema.cjs";
|
|
6
|
+
import executor$2 from "./executors/docs/executor.cjs";
|
|
7
|
+
import { LintExecutorSchema } from "./executors/lint/schema.cjs";
|
|
8
|
+
import executor$3 from "./executors/lint/executor.cjs";
|
|
9
|
+
import { PrepareExecutorSchema } from "./executors/prepare/schema.cjs";
|
|
10
|
+
import executor$4 from "./executors/prepare/executor.cjs";
|
|
11
|
+
import { createNodesV2 } from "./plugin/index.cjs";
|
|
12
|
+
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
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BuildExecutorSchema } from "./executors/build/schema.mjs";
|
|
2
|
+
import executor from "./executors/build/executor.mjs";
|
|
3
|
+
import { CleanExecutorSchema } from "./executors/clean/schema.mjs";
|
|
4
|
+
import executor$1 from "./executors/clean/executor.mjs";
|
|
5
|
+
import { DocsExecutorSchema } from "./executors/docs/schema.mjs";
|
|
6
|
+
import executor$2 from "./executors/docs/executor.mjs";
|
|
7
|
+
import { LintExecutorSchema } from "./executors/lint/schema.mjs";
|
|
8
|
+
import executor$3 from "./executors/lint/executor.mjs";
|
|
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";
|
|
13
|
+
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./executors/build/executor.mjs";import t from"./executors/clean/executor.mjs";import n from"./executors/docs/executor.mjs";import r from"./executors/lint/executor.mjs";import i from"./executors/prepare/executor.mjs";import"./executors.mjs";import{createNodesV2 as a}from"./plugin/index.mjs";export{e as build,t as clean,a as createNodesV2,n as docs,r as lint,i as prepare};
|
package/dist/plugin/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`../_virtual/rolldown_runtime.cjs`);let t=require(`@powerlines/nx/helpers/plugin-utilities`);const n=(0,t.createNxPlugin)({framework:`shell-shock`});exports.createNodesV2=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createNxPlugin as e}from"@powerlines/nx/helpers/plugin-utilities";const t=e({framework:`shell-shock`});export{t as createNodesV2};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e=require(`../_virtual/rolldown_runtime.cjs`);let t=require(`defu`);t=e.__toESM(t);let n=require(`@shell-shock/core`),r=require(`@storm-software/config-tools/logger`),i=require(`@storm-software/workspace-tools/base/base-executor`),a=require(`@stryke/type-checks/is-error`);function o(e,o){return(0,i.withRunExecutor)(`Shell Shock ${e} command executor`,async(i,s,c)=>{if(!s.projectName)throw Error("The executor requires `projectName` on the context object.");if(!s.projectName||!s.projectsConfigurations?.projects||!s.projectsConfigurations.projects[s.projectName]||!s.projectsConfigurations.projects[s.projectName]?.root)throw Error("The executor requires `projectsConfigurations` on the context object.");let l=s.projectsConfigurations.projects[s.projectName],u=await(0,n.createShellShock)((0,t.default)({root:l.root,sourceRoot:l.sourceRoot,tsconfig:i.tsconfig,logLevel:i.logLevel,mode:i.mode,skipCache:i.skipCache,output:{outputPath:i.outputPath??l.targets?.build?.options?.outputPath}},i));try{return await Promise.resolve(o((0,t.default)({projectName:s.projectName,options:i,workspaceConfig:c,inlineConfig:{command:e,configFile:i.configFile},command:e},s),u))}catch(t){return(0,r.writeError)(`An error occurred while executing the Shell Shock ${e} command executor: ${(0,a.isError)(t)?`${t.message}
|
|
2
|
+
|
|
3
|
+
${t.stack}`:`Unknown error`}`),{success:!1}}finally{await u.finalize()}},{skipReadingConfig:!1,hooks:{applyDefaultOptions:e=>(e.mode!==`development`&&e.mode!==`test`&&(e.mode=`production`),e.outputPath??=`dist/{projectRoot}`,e.configFile??=`{projectRoot}/shell-shock.config.ts`,e)}})}exports.withExecutor=o;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseExecutorSchema } from "./base-executor.schema.cjs";
|
|
2
|
+
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
3
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
5
|
+
import { InlineConfig, PowerlinesCommand } from "powerlines/types/config";
|
|
6
|
+
|
|
7
|
+
//#region src/base/base-executor.d.ts
|
|
8
|
+
type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
9
|
+
projectName: string;
|
|
10
|
+
command: TCommand;
|
|
11
|
+
options: TExecutorSchema;
|
|
12
|
+
inlineConfig: InlineConfig;
|
|
13
|
+
workspaceConfig: StormWorkspaceConfig;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ShellShockExecutorContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseExecutorSchema } from "./base-executor.schema.mjs";
|
|
2
|
+
import "@shell-shock/core";
|
|
3
|
+
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
4
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
5
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
6
|
+
import { InlineConfig, PowerlinesCommand } from "powerlines/types/config";
|
|
7
|
+
|
|
8
|
+
//#region src/base/base-executor.d.ts
|
|
9
|
+
type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
10
|
+
projectName: string;
|
|
11
|
+
command: TCommand;
|
|
12
|
+
options: TExecutorSchema;
|
|
13
|
+
inlineConfig: InlineConfig;
|
|
14
|
+
workspaceConfig: StormWorkspaceConfig;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ShellShockExecutorContext };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import e from"defu";import{createShellShock as t}from"@shell-shock/core";import{writeError as n}from"@storm-software/config-tools/logger";import{withRunExecutor as r}from"@storm-software/workspace-tools/base/base-executor";import{isError as i}from"@stryke/type-checks/is-error";function a(a,o){return r(`Shell Shock ${a} command executor`,async(r,s,c)=>{if(!s.projectName)throw Error("The executor requires `projectName` on the context object.");if(!s.projectName||!s.projectsConfigurations?.projects||!s.projectsConfigurations.projects[s.projectName]||!s.projectsConfigurations.projects[s.projectName]?.root)throw Error("The executor requires `projectsConfigurations` on the context object.");let l=s.projectsConfigurations.projects[s.projectName],u=await t(e({root:l.root,sourceRoot:l.sourceRoot,tsconfig:r.tsconfig,logLevel:r.logLevel,mode:r.mode,skipCache:r.skipCache,output:{outputPath:r.outputPath??l.targets?.build?.options?.outputPath}},r));try{return await Promise.resolve(o(e({projectName:s.projectName,options:r,workspaceConfig:c,inlineConfig:{command:a,configFile:r.configFile},command:a},s),u))}catch(e){return n(`An error occurred while executing the Shell Shock ${a} command executor: ${i(e)?`${e.message}
|
|
2
|
+
|
|
3
|
+
${e.stack}`:`Unknown error`}`),{success:!1}}finally{await u.finalize()}},{skipReadingConfig:!1,hooks:{applyDefaultOptions:e=>(e.mode!==`development`&&e.mode!==`test`&&(e.mode=`production`),e.outputPath??=`dist/{projectRoot}`,e.configFile??=`{projectRoot}/shell-shock.config.ts`,e)}})}export{a as withExecutor};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/base/base-executor.schema.d.ts
|
|
2
|
+
// Generated by powerlines
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
interface BaseExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Output Path
|
|
8
|
+
*
|
|
9
|
+
* The output path for the build
|
|
10
|
+
*
|
|
11
|
+
* @default "dist/{projectRoot}"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
outputPath?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TypeScript Configuration File
|
|
19
|
+
*
|
|
20
|
+
* The path to the tsconfig file
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @format path
|
|
24
|
+
*/
|
|
25
|
+
tsconfig?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Shell Shock Configuration File
|
|
29
|
+
*
|
|
30
|
+
* The path to the Shell Shock configuration file
|
|
31
|
+
*
|
|
32
|
+
* @default "{projectRoot}/shell-shock.config.ts"
|
|
33
|
+
*
|
|
34
|
+
* @format path
|
|
35
|
+
*/
|
|
36
|
+
configFile?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Mode
|
|
40
|
+
*
|
|
41
|
+
* The build mode
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @enum development,test,production
|
|
45
|
+
*/
|
|
46
|
+
mode?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Skip Installs
|
|
50
|
+
*
|
|
51
|
+
* Skip installing dependencies during prepare stage
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
skipInstalls?: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Skip Cache
|
|
58
|
+
*
|
|
59
|
+
* Skip the caching mechanism during the build process (if required)
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
skipCache?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Log Level
|
|
66
|
+
*
|
|
67
|
+
* The log level to use for the build process
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
71
|
+
*/
|
|
72
|
+
logLevel?: string;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { BaseExecutorSchema };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/base/base-executor.schema.d.ts
|
|
2
|
+
// Generated by powerlines
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
interface BaseExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Output Path
|
|
8
|
+
*
|
|
9
|
+
* The output path for the build
|
|
10
|
+
*
|
|
11
|
+
* @default "dist/{projectRoot}"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
outputPath?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TypeScript Configuration File
|
|
19
|
+
*
|
|
20
|
+
* The path to the tsconfig file
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @format path
|
|
24
|
+
*/
|
|
25
|
+
tsconfig?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Shell Shock Configuration File
|
|
29
|
+
*
|
|
30
|
+
* The path to the Shell Shock configuration file
|
|
31
|
+
*
|
|
32
|
+
* @default "{projectRoot}/shell-shock.config.ts"
|
|
33
|
+
*
|
|
34
|
+
* @format path
|
|
35
|
+
*/
|
|
36
|
+
configFile?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Mode
|
|
40
|
+
*
|
|
41
|
+
* The build mode
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @enum development,test,production
|
|
45
|
+
*/
|
|
46
|
+
mode?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Skip Installs
|
|
50
|
+
*
|
|
51
|
+
* Skip installing dependencies during prepare stage
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
skipInstalls?: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Skip Cache
|
|
58
|
+
*
|
|
59
|
+
* Skip the caching mechanism during the build process (if required)
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
skipCache?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Log Level
|
|
66
|
+
*
|
|
67
|
+
* The log level to use for the build process
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
71
|
+
*/
|
|
72
|
+
logLevel?: string;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { BaseExecutorSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../base/base-executor.cjs`);let n=require(`defu`);n=e.__toESM(n);async function r(e,t){return await t.build((0,n.default)({entry:e.options.entry,skipCache:e.options.skipCache,mode:e.options.mode},e.inlineConfig)),{success:!0}}const i=t.withExecutor(`build`,r);var a=i;exports.default=a,exports.executorFn=r;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ShellShockExecutorContext } from "../../base/base-executor.cjs";
|
|
2
|
+
import { BuildExecutorSchema } from "./schema.cjs";
|
|
3
|
+
import { PromiseExecutor } from "@nx/devkit";
|
|
4
|
+
import { ShellShockAPI } from "@shell-shock/core/api";
|
|
5
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
6
|
+
|
|
7
|
+
//#region src/executors/build/executor.d.ts
|
|
8
|
+
declare function executorFn(context: ShellShockExecutorContext<"build", BuildExecutorSchema>, api: ShellShockAPI): Promise<BaseExecutorResult>;
|
|
9
|
+
declare const executor: PromiseExecutor<BuildExecutorSchema>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { executor as default, executorFn };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ShellShockExecutorContext } from "../../base/base-executor.mjs";
|
|
2
|
+
import { BuildExecutorSchema } from "./schema.mjs";
|
|
3
|
+
import { PromiseExecutor } from "@nx/devkit";
|
|
4
|
+
import { ShellShockAPI } from "@shell-shock/core/api";
|
|
5
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
6
|
+
|
|
7
|
+
//#region src/executors/build/executor.d.ts
|
|
8
|
+
declare function executorFn(context: ShellShockExecutorContext<"build", BuildExecutorSchema>, api: ShellShockAPI): Promise<BaseExecutorResult>;
|
|
9
|
+
declare const executor: PromiseExecutor<BuildExecutorSchema>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { executor as default, executorFn };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{withExecutor as e}from"../../base/base-executor.mjs";import t from"defu";async function n(e,n){return await n.build(t({entry:e.options.entry,skipCache:e.options.skipCache,mode:e.options.mode},e.inlineConfig)),{success:!0}}var r=e(`build`,n);export{r as default,n as executorFn};
|