@powerlines/nx 0.11.217 → 0.11.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-2OUVFH73.js → chunk-2VN57DMC.js} +2 -2
- package/dist/chunk-3BI2YVJ3.js +156 -0
- package/dist/{chunk-5XND6U2P.js → chunk-3TZVQPPH.js} +2 -2
- package/dist/chunk-4OMPO3GC.mjs +154 -0
- package/dist/{chunk-AQU4Y7TY.mjs → chunk-5NHMBXXZ.mjs} +1 -1
- package/dist/{chunk-UWZA4FE6.mjs → chunk-CINC3R52.mjs} +1 -1
- package/dist/{chunk-MMYSL52M.mjs → chunk-EFG2AWKX.mjs} +220 -388
- package/dist/{chunk-TWOXCXFE.js → chunk-EQMUIUSF.js} +16 -16
- package/dist/{chunk-BUUW4BAS.mjs → chunk-ETYR57U3.mjs} +2 -2
- package/dist/chunk-FSGRYCTL.js +281 -0
- package/dist/{chunk-2YJP4HRC.mjs → chunk-GCIPEE4T.mjs} +7 -7
- package/dist/{chunk-ELBUYWVF.mjs → chunk-GKRW32W2.mjs} +1 -1
- package/dist/{chunk-C4XEVBMI.mjs → chunk-H7FXL53F.mjs} +1 -1
- package/dist/{chunk-VSMLSWBT.js → chunk-IOBDAGVL.js} +8 -8
- package/dist/{chunk-5QDW5A4Z.js → chunk-JCB2SUGI.js} +2 -2
- package/dist/{chunk-TL367T24.js → chunk-JFLVE4R6.js} +2 -2
- package/dist/chunk-JL4HQ7ZD.mjs +260 -0
- package/dist/{chunk-WJP3FWAH.js → chunk-MDVQOPYK.js} +2 -2
- package/dist/{chunk-ZYOL33SX.mjs → chunk-RQR4JLRG.mjs} +15 -15
- package/dist/{chunk-QJE3HWRQ.js → chunk-VNEJ2D4E.js} +3 -3
- package/dist/{chunk-JQZOWO7J.mjs → chunk-XX6ZLY4D.mjs} +1 -1
- package/dist/{chunk-BM4NZS6T.js → chunk-ZVVHO24E.js} +244 -412
- package/dist/{executor-Bb8vGV8C.d.ts → executor-AQVlPFta.d.ts} +90 -19
- package/dist/{executor-CQzw0-So.d.mts → executor-BNmIhtpF.d.mts} +90 -19
- package/dist/{executor-DwTFXSVb.d.mts → executor-C0A5mFLO.d.mts} +74 -19
- package/dist/{executor-u-vw0Uzf.d.mts → executor-Cep8-Y3A.d.mts} +90 -19
- package/dist/{executor-DY7vA66P.d.ts → executor-CkyahICv.d.ts} +74 -19
- package/dist/{executor-C2WSCUOW.d.ts → executor-DOsxw-Ih.d.ts} +90 -19
- package/dist/{executor-C5rCem7d.d.ts → executor-DUQbjUVt.d.ts} +90 -19
- package/dist/{executor-C9MI57kJ.d.ts → executor-O3MDQSFT.d.ts} +90 -19
- package/dist/{executor-fccJAIjg.d.mts → executor-U4mVkhQK.d.mts} +90 -19
- package/dist/{executor-DXaEo8YG.d.mts → executor-Xt5qNzC5.d.mts} +90 -19
- package/dist/executors.d.mts +5 -6
- package/dist/executors.d.ts +5 -6
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +7 -7
- package/dist/index.d.mts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.js +15 -15
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.d.mts +1 -2
- package/dist/src/base/base-executor.d.ts +1 -2
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-executor.schema.d.d.mts +74 -19
- package/dist/src/base/base-executor.schema.d.d.ts +74 -19
- package/dist/src/base/base-executor.schema.d.ts +74 -19
- package/dist/src/base/base-executor.schema.json +108 -26
- package/dist/src/base/base-executor.untyped.js +2 -2
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/executors/build/executor.d.mts +1 -2
- package/dist/src/executors/build/executor.d.ts +1 -2
- package/dist/src/executors/build/executor.js +5 -5
- package/dist/src/executors/build/executor.mjs +3 -3
- package/dist/src/executors/build/schema.d.ts +90 -19
- package/dist/src/executors/build/schema.json +119 -25
- package/dist/src/executors/build/untyped.js +3 -3
- package/dist/src/executors/build/untyped.mjs +2 -2
- package/dist/src/executors/clean/executor.d.mts +1 -2
- package/dist/src/executors/clean/executor.d.ts +1 -2
- package/dist/src/executors/clean/executor.js +5 -5
- package/dist/src/executors/clean/executor.mjs +3 -3
- package/dist/src/executors/clean/schema.d.ts +74 -19
- package/dist/src/executors/clean/schema.json +108 -26
- package/dist/src/executors/clean/untyped.js +2 -2
- package/dist/src/executors/clean/untyped.mjs +1 -1
- package/dist/src/executors/docs/executor.d.mts +1 -2
- package/dist/src/executors/docs/executor.d.ts +1 -2
- package/dist/src/executors/docs/executor.js +5 -5
- package/dist/src/executors/docs/executor.mjs +3 -3
- package/dist/src/executors/docs/schema.d.ts +90 -19
- package/dist/src/executors/docs/schema.json +120 -26
- package/dist/src/executors/docs/untyped.js +3 -3
- package/dist/src/executors/docs/untyped.mjs +2 -2
- package/dist/src/executors/lint/executor.d.mts +1 -2
- package/dist/src/executors/lint/executor.d.ts +1 -2
- package/dist/src/executors/lint/executor.js +5 -5
- package/dist/src/executors/lint/executor.mjs +3 -3
- package/dist/src/executors/lint/schema.d.ts +90 -19
- package/dist/src/executors/lint/schema.json +120 -26
- package/dist/src/executors/lint/untyped.js +3 -3
- package/dist/src/executors/lint/untyped.mjs +2 -2
- package/dist/src/executors/prepare/executor.d.mts +1 -2
- package/dist/src/executors/prepare/executor.d.ts +1 -2
- package/dist/src/executors/prepare/executor.js +5 -5
- package/dist/src/executors/prepare/executor.mjs +3 -3
- package/dist/src/executors/prepare/schema.d.ts +90 -19
- package/dist/src/executors/prepare/schema.json +120 -26
- package/dist/src/executors/prepare/untyped.js +3 -3
- package/dist/src/executors/prepare/untyped.mjs +2 -2
- package/dist/src/helpers/plugin-utilities.js +5 -5
- package/dist/src/helpers/plugin-utilities.mjs +2 -2
- package/dist/src/plugin/index.js +4 -4
- package/dist/src/plugin/index.mjs +3 -3
- package/docs/api/base-executor.schema.md +71 -19
- package/docs/api/build/schema.md +89 -19
- package/docs/api/clean/schema.md +71 -19
- package/docs/api/docs/schema.md +89 -19
- package/docs/api/lint/schema.md +89 -19
- package/docs/api/prepare/schema.md +89 -19
- package/package.json +11 -11
- package/dist/chunk-AGZ4P3AS.mjs +0 -87
- package/dist/chunk-IR6TAW72.js +0 -81
- package/dist/chunk-NU3VTAH5.js +0 -98
- package/dist/chunk-XXWF7X5C.mjs +0 -75
|
@@ -8,62 +8,109 @@ import { PowerlinesExecutorContext } from './src/base/base-executor.js';
|
|
|
8
8
|
|
|
9
9
|
interface CleanExecutorSchema {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Powerlines Configuration File
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
13
|
+
* The path to the Powerlines configuration file
|
|
14
14
|
*
|
|
15
|
-
* @default "
|
|
15
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
16
|
*
|
|
17
17
|
* @format path
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
configFile?: string,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Input Entry File(s)
|
|
23
|
+
*
|
|
24
|
+
* The entry file(s) that serve as the input for the project
|
|
25
|
+
*
|
|
26
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
27
|
+
*
|
|
28
|
+
* @format path
|
|
29
|
+
*/
|
|
30
|
+
input?: Array<string>,
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
33
|
+
* TSConfig Path
|
|
23
34
|
*
|
|
24
35
|
* The path to the tsconfig file
|
|
25
36
|
*
|
|
37
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
26
38
|
*
|
|
27
39
|
* @format path
|
|
28
40
|
*/
|
|
29
41
|
tsconfig?: string,
|
|
30
42
|
|
|
31
43
|
/**
|
|
32
|
-
*
|
|
44
|
+
* Output Path
|
|
33
45
|
*
|
|
34
|
-
* The path to the
|
|
46
|
+
* The path to the output directory for the build artifacts
|
|
35
47
|
*
|
|
36
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
37
48
|
*
|
|
38
49
|
* @format path
|
|
39
50
|
*/
|
|
40
|
-
|
|
51
|
+
outputPath?: string,
|
|
41
52
|
|
|
42
53
|
/**
|
|
43
|
-
*
|
|
54
|
+
* Sourcemap
|
|
44
55
|
*
|
|
45
|
-
*
|
|
56
|
+
* Generate a sourcemap
|
|
46
57
|
*
|
|
58
|
+
*/
|
|
59
|
+
sourceMap?: boolean,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Format
|
|
47
63
|
*
|
|
48
|
-
*
|
|
64
|
+
* The format to build
|
|
65
|
+
*
|
|
66
|
+
* @default ["cjs","esm"]
|
|
49
67
|
*/
|
|
50
|
-
|
|
68
|
+
format?: Array<string>,
|
|
51
69
|
|
|
52
70
|
/**
|
|
53
|
-
*
|
|
71
|
+
* Platform
|
|
54
72
|
*
|
|
55
|
-
*
|
|
73
|
+
* The platform to build
|
|
74
|
+
*
|
|
75
|
+
* @default "neutral"
|
|
76
|
+
*
|
|
77
|
+
* @enum neutral,node,browser
|
|
78
|
+
*/
|
|
79
|
+
platform?: string,
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* External
|
|
83
|
+
*
|
|
84
|
+
* The external dependencies
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
external?: Array<any>,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* No External
|
|
91
|
+
*
|
|
92
|
+
* The dependencies that should not be treated as external
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
noExternal?: Array<any>,
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Skip Node Modules Bundle
|
|
99
|
+
*
|
|
100
|
+
* Skip bundling node_modules during the build process (if required)
|
|
56
101
|
*
|
|
57
102
|
*/
|
|
58
|
-
|
|
103
|
+
skipNodeModulesBundle?: boolean,
|
|
59
104
|
|
|
60
105
|
/**
|
|
61
|
-
*
|
|
106
|
+
* Mode
|
|
107
|
+
*
|
|
108
|
+
* The build mode
|
|
62
109
|
*
|
|
63
|
-
* Skip the caching mechanism during the build process (if required)
|
|
64
110
|
*
|
|
111
|
+
* @enum development,test,production
|
|
65
112
|
*/
|
|
66
|
-
|
|
113
|
+
mode?: string,
|
|
67
114
|
|
|
68
115
|
/**
|
|
69
116
|
* Log Level
|
|
@@ -74,6 +121,14 @@ interface CleanExecutorSchema {
|
|
|
74
121
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
75
122
|
*/
|
|
76
123
|
logLevel?: string,
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Define
|
|
127
|
+
*
|
|
128
|
+
* The `define` values
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
define?: Record<string, string>,
|
|
77
132
|
}
|
|
78
133
|
|
|
79
134
|
declare function executorFn(context: PowerlinesExecutorContext<"clean", CleanExecutorSchema>, api: PowerlinesAPI): Promise<BaseExecutorResult>;
|
|
@@ -8,62 +8,109 @@ import { PowerlinesExecutorContext } from './src/base/base-executor.js';
|
|
|
8
8
|
|
|
9
9
|
interface LintExecutorSchema {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Powerlines Configuration File
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
13
|
+
* The path to the Powerlines configuration file
|
|
14
14
|
*
|
|
15
|
-
* @default "
|
|
15
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
16
|
*
|
|
17
17
|
* @format path
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
configFile?: string,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Input Entry File(s)
|
|
23
|
+
*
|
|
24
|
+
* The entry file(s) that serve as the input for the project
|
|
25
|
+
*
|
|
26
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
27
|
+
*
|
|
28
|
+
* @format path
|
|
29
|
+
*/
|
|
30
|
+
input?: Array<string>,
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
33
|
+
* TSConfig Path
|
|
23
34
|
*
|
|
24
35
|
* The path to the tsconfig file
|
|
25
36
|
*
|
|
37
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
26
38
|
*
|
|
27
39
|
* @format path
|
|
28
40
|
*/
|
|
29
41
|
tsconfig?: string,
|
|
30
42
|
|
|
31
43
|
/**
|
|
32
|
-
*
|
|
44
|
+
* Output Path
|
|
33
45
|
*
|
|
34
|
-
* The path to the
|
|
46
|
+
* The path to the output directory for the build artifacts
|
|
35
47
|
*
|
|
36
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
37
48
|
*
|
|
38
49
|
* @format path
|
|
39
50
|
*/
|
|
40
|
-
|
|
51
|
+
outputPath?: string,
|
|
41
52
|
|
|
42
53
|
/**
|
|
43
|
-
*
|
|
54
|
+
* Sourcemap
|
|
44
55
|
*
|
|
45
|
-
*
|
|
56
|
+
* Generate a sourcemap
|
|
46
57
|
*
|
|
58
|
+
*/
|
|
59
|
+
sourceMap?: boolean,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Format
|
|
47
63
|
*
|
|
48
|
-
*
|
|
64
|
+
* The format to build
|
|
65
|
+
*
|
|
66
|
+
* @default ["cjs","esm"]
|
|
49
67
|
*/
|
|
50
|
-
|
|
68
|
+
format?: Array<string>,
|
|
51
69
|
|
|
52
70
|
/**
|
|
53
|
-
*
|
|
71
|
+
* Platform
|
|
72
|
+
*
|
|
73
|
+
* The platform to build
|
|
54
74
|
*
|
|
55
|
-
*
|
|
75
|
+
* @default "neutral"
|
|
56
76
|
*
|
|
77
|
+
* @enum neutral,node,browser
|
|
57
78
|
*/
|
|
58
|
-
|
|
79
|
+
platform?: string,
|
|
59
80
|
|
|
60
81
|
/**
|
|
61
|
-
*
|
|
82
|
+
* External
|
|
62
83
|
*
|
|
63
|
-
*
|
|
84
|
+
* The external dependencies
|
|
64
85
|
*
|
|
65
86
|
*/
|
|
66
|
-
|
|
87
|
+
external?: Array<any>,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* No External
|
|
91
|
+
*
|
|
92
|
+
* The dependencies that should not be treated as external
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
noExternal?: Array<any>,
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Skip Node Modules Bundle
|
|
99
|
+
*
|
|
100
|
+
* Skip bundling node_modules during the build process (if required)
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
skipNodeModulesBundle?: boolean,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Mode
|
|
107
|
+
*
|
|
108
|
+
* The build mode
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* @enum development,test,production
|
|
112
|
+
*/
|
|
113
|
+
mode?: string,
|
|
67
114
|
|
|
68
115
|
/**
|
|
69
116
|
* Log Level
|
|
@@ -74,6 +121,30 @@ interface LintExecutorSchema {
|
|
|
74
121
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
75
122
|
*/
|
|
76
123
|
logLevel?: string,
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Define
|
|
127
|
+
*
|
|
128
|
+
* The `define` values
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
define?: Record<string, string>,
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Auto Install
|
|
135
|
+
*
|
|
136
|
+
* Automatically install dependencies during prepare stage
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
autoInstall?: boolean,
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Skip Cache
|
|
143
|
+
*
|
|
144
|
+
* Skip the caching mechanism during the build process (if required)
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
skipCache?: boolean,
|
|
77
148
|
}
|
|
78
149
|
|
|
79
150
|
declare function executorFn(context: PowerlinesExecutorContext<"lint", LintExecutorSchema>, api: PowerlinesAPI): Promise<BaseExecutorResult>;
|
|
@@ -8,62 +8,109 @@ import { PowerlinesExecutorContext } from './src/base/base-executor.js';
|
|
|
8
8
|
|
|
9
9
|
interface PrepareExecutorSchema {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Powerlines Configuration File
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
13
|
+
* The path to the Powerlines configuration file
|
|
14
14
|
*
|
|
15
|
-
* @default "
|
|
15
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
16
|
*
|
|
17
17
|
* @format path
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
configFile?: string,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Input Entry File(s)
|
|
23
|
+
*
|
|
24
|
+
* The entry file(s) that serve as the input for the project
|
|
25
|
+
*
|
|
26
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
27
|
+
*
|
|
28
|
+
* @format path
|
|
29
|
+
*/
|
|
30
|
+
input?: Array<string>,
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
33
|
+
* TSConfig Path
|
|
23
34
|
*
|
|
24
35
|
* The path to the tsconfig file
|
|
25
36
|
*
|
|
37
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
26
38
|
*
|
|
27
39
|
* @format path
|
|
28
40
|
*/
|
|
29
41
|
tsconfig?: string,
|
|
30
42
|
|
|
31
43
|
/**
|
|
32
|
-
*
|
|
44
|
+
* Output Path
|
|
33
45
|
*
|
|
34
|
-
* The path to the
|
|
46
|
+
* The path to the output directory for the build artifacts
|
|
35
47
|
*
|
|
36
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
37
48
|
*
|
|
38
49
|
* @format path
|
|
39
50
|
*/
|
|
40
|
-
|
|
51
|
+
outputPath?: string,
|
|
41
52
|
|
|
42
53
|
/**
|
|
43
|
-
*
|
|
54
|
+
* Sourcemap
|
|
44
55
|
*
|
|
45
|
-
*
|
|
56
|
+
* Generate a sourcemap
|
|
46
57
|
*
|
|
58
|
+
*/
|
|
59
|
+
sourceMap?: boolean,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Format
|
|
47
63
|
*
|
|
48
|
-
*
|
|
64
|
+
* The format to build
|
|
65
|
+
*
|
|
66
|
+
* @default ["cjs","esm"]
|
|
49
67
|
*/
|
|
50
|
-
|
|
68
|
+
format?: Array<string>,
|
|
51
69
|
|
|
52
70
|
/**
|
|
53
|
-
*
|
|
71
|
+
* Platform
|
|
72
|
+
*
|
|
73
|
+
* The platform to build
|
|
54
74
|
*
|
|
55
|
-
*
|
|
75
|
+
* @default "neutral"
|
|
56
76
|
*
|
|
77
|
+
* @enum neutral,node,browser
|
|
57
78
|
*/
|
|
58
|
-
|
|
79
|
+
platform?: string,
|
|
59
80
|
|
|
60
81
|
/**
|
|
61
|
-
*
|
|
82
|
+
* External
|
|
62
83
|
*
|
|
63
|
-
*
|
|
84
|
+
* The external dependencies
|
|
64
85
|
*
|
|
65
86
|
*/
|
|
66
|
-
|
|
87
|
+
external?: Array<any>,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* No External
|
|
91
|
+
*
|
|
92
|
+
* The dependencies that should not be treated as external
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
noExternal?: Array<any>,
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Skip Node Modules Bundle
|
|
99
|
+
*
|
|
100
|
+
* Skip bundling node_modules during the build process (if required)
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
skipNodeModulesBundle?: boolean,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Mode
|
|
107
|
+
*
|
|
108
|
+
* The build mode
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* @enum development,test,production
|
|
112
|
+
*/
|
|
113
|
+
mode?: string,
|
|
67
114
|
|
|
68
115
|
/**
|
|
69
116
|
* Log Level
|
|
@@ -74,6 +121,30 @@ interface PrepareExecutorSchema {
|
|
|
74
121
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
75
122
|
*/
|
|
76
123
|
logLevel?: string,
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Define
|
|
127
|
+
*
|
|
128
|
+
* The `define` values
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
define?: Record<string, string>,
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Auto Install
|
|
135
|
+
*
|
|
136
|
+
* Automatically install dependencies during prepare stage
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
autoInstall?: boolean,
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Skip Cache
|
|
143
|
+
*
|
|
144
|
+
* Skip the caching mechanism during the build process (if required)
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
skipCache?: boolean,
|
|
77
148
|
}
|
|
78
149
|
|
|
79
150
|
declare function executorFn(context: PowerlinesExecutorContext<"prepare", PrepareExecutorSchema>, api: PowerlinesAPI): Promise<BaseExecutorResult>;
|
|
@@ -8,62 +8,109 @@ import { PowerlinesExecutorContext } from './src/base/base-executor.js';
|
|
|
8
8
|
|
|
9
9
|
interface DocsExecutorSchema {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Powerlines Configuration File
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
13
|
+
* The path to the Powerlines configuration file
|
|
14
14
|
*
|
|
15
|
-
* @default "
|
|
15
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
16
|
*
|
|
17
17
|
* @format path
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
configFile?: string,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Input Entry File(s)
|
|
23
|
+
*
|
|
24
|
+
* The entry file(s) that serve as the input for the project
|
|
25
|
+
*
|
|
26
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
27
|
+
*
|
|
28
|
+
* @format path
|
|
29
|
+
*/
|
|
30
|
+
input?: Array<string>,
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
33
|
+
* TSConfig Path
|
|
23
34
|
*
|
|
24
35
|
* The path to the tsconfig file
|
|
25
36
|
*
|
|
37
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
26
38
|
*
|
|
27
39
|
* @format path
|
|
28
40
|
*/
|
|
29
41
|
tsconfig?: string,
|
|
30
42
|
|
|
31
43
|
/**
|
|
32
|
-
*
|
|
44
|
+
* Output Path
|
|
33
45
|
*
|
|
34
|
-
* The path to the
|
|
46
|
+
* The path to the output directory for the build artifacts
|
|
35
47
|
*
|
|
36
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
37
48
|
*
|
|
38
49
|
* @format path
|
|
39
50
|
*/
|
|
40
|
-
|
|
51
|
+
outputPath?: string,
|
|
41
52
|
|
|
42
53
|
/**
|
|
43
|
-
*
|
|
54
|
+
* Sourcemap
|
|
44
55
|
*
|
|
45
|
-
*
|
|
56
|
+
* Generate a sourcemap
|
|
46
57
|
*
|
|
58
|
+
*/
|
|
59
|
+
sourceMap?: boolean,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Format
|
|
47
63
|
*
|
|
48
|
-
*
|
|
64
|
+
* The format to build
|
|
65
|
+
*
|
|
66
|
+
* @default ["cjs","esm"]
|
|
49
67
|
*/
|
|
50
|
-
|
|
68
|
+
format?: Array<string>,
|
|
51
69
|
|
|
52
70
|
/**
|
|
53
|
-
*
|
|
71
|
+
* Platform
|
|
72
|
+
*
|
|
73
|
+
* The platform to build
|
|
54
74
|
*
|
|
55
|
-
*
|
|
75
|
+
* @default "neutral"
|
|
56
76
|
*
|
|
77
|
+
* @enum neutral,node,browser
|
|
57
78
|
*/
|
|
58
|
-
|
|
79
|
+
platform?: string,
|
|
59
80
|
|
|
60
81
|
/**
|
|
61
|
-
*
|
|
82
|
+
* External
|
|
62
83
|
*
|
|
63
|
-
*
|
|
84
|
+
* The external dependencies
|
|
64
85
|
*
|
|
65
86
|
*/
|
|
66
|
-
|
|
87
|
+
external?: Array<any>,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* No External
|
|
91
|
+
*
|
|
92
|
+
* The dependencies that should not be treated as external
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
noExternal?: Array<any>,
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Skip Node Modules Bundle
|
|
99
|
+
*
|
|
100
|
+
* Skip bundling node_modules during the build process (if required)
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
skipNodeModulesBundle?: boolean,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Mode
|
|
107
|
+
*
|
|
108
|
+
* The build mode
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* @enum development,test,production
|
|
112
|
+
*/
|
|
113
|
+
mode?: string,
|
|
67
114
|
|
|
68
115
|
/**
|
|
69
116
|
* Log Level
|
|
@@ -74,6 +121,30 @@ interface DocsExecutorSchema {
|
|
|
74
121
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
75
122
|
*/
|
|
76
123
|
logLevel?: string,
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Define
|
|
127
|
+
*
|
|
128
|
+
* The `define` values
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
define?: Record<string, string>,
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Auto Install
|
|
135
|
+
*
|
|
136
|
+
* Automatically install dependencies during prepare stage
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
autoInstall?: boolean,
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Skip Cache
|
|
143
|
+
*
|
|
144
|
+
* Skip the caching mechanism during the build process (if required)
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
skipCache?: boolean,
|
|
77
148
|
}
|
|
78
149
|
|
|
79
150
|
declare function executorFn(context: PowerlinesExecutorContext<"docs", DocsExecutorSchema>, api: PowerlinesAPI): Promise<BaseExecutorResult>;
|