@powerlines/plugin-unbuild 0.5.307 → 0.5.309

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.
Files changed (106) hide show
  1. package/dist/build-BGmzCfG9.d.mts +8 -0
  2. package/dist/build-BGmzCfG9.d.mts.map +1 -0
  3. package/dist/build-CcJjLdFm.mjs +1 -0
  4. package/dist/build-D-HKMVs4.d.cts +8 -0
  5. package/dist/build-D-HKMVs4.d.cts.map +1 -0
  6. package/dist/build-MNonspIb.cjs +0 -0
  7. package/dist/helpers/index.cjs +4 -4
  8. package/dist/helpers/index.d.cts +1 -1
  9. package/dist/helpers/index.d.mts +1 -1
  10. package/dist/helpers/index.mjs +1 -1
  11. package/dist/helpers/resolve-options.cjs +4 -125
  12. package/dist/helpers/resolve-options.d.cts +2 -17
  13. package/dist/helpers/resolve-options.d.mts +2 -18
  14. package/dist/helpers/resolve-options.mjs +2 -122
  15. package/dist/index-BR1oNnaF.d.cts +1 -0
  16. package/dist/index-DEHBdV_z.d.mts +1 -0
  17. package/dist/index.cjs +6 -4
  18. package/dist/index.d.cts +4 -4
  19. package/dist/index.d.cts.map +1 -1
  20. package/dist/index.d.mts +4 -5
  21. package/dist/index.d.mts.map +1 -1
  22. package/dist/index.mjs +4 -1
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/plugin-CXxxQ0lD.d.cts +19 -0
  25. package/dist/plugin-CXxxQ0lD.d.cts.map +1 -0
  26. package/dist/plugin-Dt6qEKIr.d.mts +19 -0
  27. package/dist/plugin-Dt6qEKIr.d.mts.map +1 -0
  28. package/dist/plugin-jZ9N9Mz-.mjs +1 -0
  29. package/dist/plugin-pBKbb5K9.cjs +0 -0
  30. package/dist/resolve-options-COWDeANr.cjs +173 -0
  31. package/dist/resolve-options-CpHtoivj.mjs +123 -0
  32. package/dist/resolve-options-CpHtoivj.mjs.map +1 -0
  33. package/dist/resolve-options-DPRrB4Qj.d.cts +17 -0
  34. package/dist/resolve-options-DPRrB4Qj.d.cts.map +1 -0
  35. package/dist/resolve-options-DRA_XDDs.d.mts +17 -0
  36. package/dist/resolve-options-DRA_XDDs.d.mts.map +1 -0
  37. package/dist/types/build.cjs +1 -0
  38. package/dist/types/build.d.cts +2 -8
  39. package/dist/types/build.d.mts +2 -8
  40. package/dist/types/build.mjs +2 -0
  41. package/dist/types/index.cjs +3 -0
  42. package/dist/types/index.d.cts +3 -2
  43. package/dist/types/index.d.mts +3 -2
  44. package/dist/types/index.mjs +4 -0
  45. package/dist/types/plugin.cjs +1 -0
  46. package/dist/types/plugin.d.cts +3 -20
  47. package/dist/types/plugin.d.mts +3 -21
  48. package/dist/types/plugin.mjs +2 -0
  49. package/dist/types-BtDR9wb1.mjs +1 -0
  50. package/dist/types-o3zWarRp.cjs +0 -0
  51. package/package.json +4 -4
  52. package/dist/_virtual/rolldown_runtime.cjs +0 -29
  53. package/dist/core/src/lib/utilities/source-file.cjs +0 -22
  54. package/dist/core/src/lib/utilities/source-file.mjs +0 -22
  55. package/dist/core/src/lib/utilities/source-file.mjs.map +0 -1
  56. package/dist/core/src/types/_internal.d.cts +0 -85
  57. package/dist/core/src/types/_internal.d.cts.map +0 -1
  58. package/dist/core/src/types/_internal.d.mts +0 -85
  59. package/dist/core/src/types/_internal.d.mts.map +0 -1
  60. package/dist/core/src/types/api.d.cts +0 -103
  61. package/dist/core/src/types/api.d.cts.map +0 -1
  62. package/dist/core/src/types/api.d.mts +0 -103
  63. package/dist/core/src/types/api.d.mts.map +0 -1
  64. package/dist/core/src/types/commands.d.cts +0 -9
  65. package/dist/core/src/types/commands.d.cts.map +0 -1
  66. package/dist/core/src/types/commands.d.mts +0 -10
  67. package/dist/core/src/types/commands.d.mts.map +0 -1
  68. package/dist/core/src/types/config.d.cts +0 -551
  69. package/dist/core/src/types/config.d.cts.map +0 -1
  70. package/dist/core/src/types/config.d.mts +0 -551
  71. package/dist/core/src/types/config.d.mts.map +0 -1
  72. package/dist/core/src/types/context.d.cts +0 -511
  73. package/dist/core/src/types/context.d.cts.map +0 -1
  74. package/dist/core/src/types/context.d.mts +0 -511
  75. package/dist/core/src/types/context.d.mts.map +0 -1
  76. package/dist/core/src/types/fs.d.cts +0 -487
  77. package/dist/core/src/types/fs.d.cts.map +0 -1
  78. package/dist/core/src/types/fs.d.mts +0 -487
  79. package/dist/core/src/types/fs.d.mts.map +0 -1
  80. package/dist/core/src/types/hooks.d.cts +0 -99
  81. package/dist/core/src/types/hooks.d.cts.map +0 -1
  82. package/dist/core/src/types/hooks.d.mts +0 -99
  83. package/dist/core/src/types/hooks.d.mts.map +0 -1
  84. package/dist/core/src/types/index.d.mts +0 -9
  85. package/dist/core/src/types/plugin.d.cts +0 -204
  86. package/dist/core/src/types/plugin.d.cts.map +0 -1
  87. package/dist/core/src/types/plugin.d.mts +0 -204
  88. package/dist/core/src/types/plugin.d.mts.map +0 -1
  89. package/dist/core/src/types/tsconfig.d.cts +0 -70
  90. package/dist/core/src/types/tsconfig.d.cts.map +0 -1
  91. package/dist/core/src/types/tsconfig.d.mts +0 -70
  92. package/dist/core/src/types/tsconfig.d.mts.map +0 -1
  93. package/dist/core/src/types/unplugin.d.cts +0 -24
  94. package/dist/core/src/types/unplugin.d.cts.map +0 -1
  95. package/dist/core/src/types/unplugin.d.mts +0 -25
  96. package/dist/core/src/types/unplugin.d.mts.map +0 -1
  97. package/dist/helpers/resolve-options.d.cts.map +0 -1
  98. package/dist/helpers/resolve-options.d.mts.map +0 -1
  99. package/dist/helpers/resolve-options.mjs.map +0 -1
  100. package/dist/plugin-rollup/src/helpers/resolve-options.cjs +0 -122
  101. package/dist/plugin-rollup/src/helpers/resolve-options.mjs +0 -116
  102. package/dist/plugin-rollup/src/helpers/resolve-options.mjs.map +0 -1
  103. package/dist/types/build.d.cts.map +0 -1
  104. package/dist/types/build.d.mts.map +0 -1
  105. package/dist/types/plugin.d.cts.map +0 -1
  106. package/dist/types/plugin.d.mts.map +0 -1
@@ -1,85 +0,0 @@
1
- import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
2
- import { EnvironmentContext, PluginContext } from "./context.cjs";
3
- import { PluginConfig, ResolvedConfig } from "./config.cjs";
4
- import { API } from "./api.cjs";
5
-
6
- //#region ../core/src/types/_internal.d.ts
7
-
8
- /**
9
- * Internal fields and methods for internal contexts
10
- *
11
- * @internal
12
- */
13
- interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
14
- /**
15
- * The API instance for interacting with Powerlines
16
- *
17
- * @internal
18
- */
19
- api: API<TResolvedConfig>;
20
- /**
21
- * Add a Powerlines plugin used in the build process
22
- *
23
- * @internal
24
- *
25
- * @param config - The import path of the plugin to add
26
- */
27
- addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
28
- }
29
- /**
30
- * An internal representation of the environment context, used for managing hooks and environment data.
31
- *
32
- * @internal
33
- */
34
- interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
35
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
36
- }
37
- /**
38
- * Internal fields and methods for the internal plugin context
39
- *
40
- * @internal
41
- */
42
- interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
43
- /**
44
- * The API instance for interacting with Powerlines
45
- *
46
- * @internal
47
- */
48
- api: API<TResolvedConfig>;
49
- /**
50
- * The environment context associated with this plugin context
51
- *
52
- * @internal
53
- */
54
- environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
55
- /**
56
- * Call a hook within the Powerlines system
57
- *
58
- * @internal
59
- *
60
- * @param hook - The name of the hook to call
61
- * @param options - Options for calling the hook
62
- * @param args - Arguments to pass to the hook
63
- * @returns The result of the hook call
64
- */
65
- callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
66
- environment?: string | EnvironmentContext<TResolvedConfig>;
67
- }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
68
- /**
69
- * A place to store internal data for the plugin context
70
- *
71
- * @internal
72
- */
73
- meta: Record<string, any>;
74
- }
75
- /**
76
- * An internal representation of the plugin context, used for managing hooks and environment data.
77
- *
78
- * @internal
79
- */
80
- interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
81
- $$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
82
- }
83
- //#endregion
84
- export { UNSAFE_PluginContext };
85
- //# sourceMappingURL=_internal.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_internal.d.cts","names":[],"sources":["../../../../../core/src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAuCA;;;AAQW,UARM,sBAQN,CAAA,wBAPe,cAOf,GAPgC,cAOhC,CAAA,CAAA;EAAJ;;;;;EAWO,GAAA,EAXP,GAWO,CAXH,eAWG,CAAA;EA8BG;;;;;;;EAEW,SAAA,EAAA,CAAA,MAAA,EAjChB,YAiCgB,CAjCH,aAiCG,CAjCW,eAiCX,CAAA,CAAA,EAAA,GAhCrB,OAgCqB,CAAA,IAAA,CAAA;AAS5B;;;;;;AAEU,UAbO,yBAaP,CAAA,wBAZgB,cAYhB,GAZiC,cAYjC,CAAA,SAXA,kBAWA,CAXmB,eAWnB,CAAA,CAAA;EAAsB,UAAA,EAVlB,sBAUkB,CAVK,eAUL,CAAA;AAgDhC;;;;;;AAEU,UApDO,4BAoDP,CAAA,wBAnDgB,cAmDhB,GAnDiC,cAmDjC,CAAA,SAlDA,sBAkDA,CAlDuB,eAkDvB,CAAA,CAAA;EAAa;;;;;OA5ChB,IAAI;;;;;;eAOI,0BAA0B;;;;;;;;;;;wCAa/B,eACG;2BACgB,mBAAmB;cAEnC,oBAAoB,cAAc,kBAAkB,UAC1D,QACH,oBAAoB,cAAc,kBAAkB;;;;;;QAQhD;;;;;;;UAQS,6CACS,iBAAiB,wBACjC,cAAc;cACV,6BAA6B"}
@@ -1,85 +0,0 @@
1
- import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
2
- import { EnvironmentContext, PluginContext } from "./context.mjs";
3
- import { PluginConfig, ResolvedConfig } from "./config.mjs";
4
- import { API } from "./api.mjs";
5
-
6
- //#region ../core/src/types/_internal.d.ts
7
-
8
- /**
9
- * Internal fields and methods for internal contexts
10
- *
11
- * @internal
12
- */
13
- interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
14
- /**
15
- * The API instance for interacting with Powerlines
16
- *
17
- * @internal
18
- */
19
- api: API<TResolvedConfig>;
20
- /**
21
- * Add a Powerlines plugin used in the build process
22
- *
23
- * @internal
24
- *
25
- * @param config - The import path of the plugin to add
26
- */
27
- addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
28
- }
29
- /**
30
- * An internal representation of the environment context, used for managing hooks and environment data.
31
- *
32
- * @internal
33
- */
34
- interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
35
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
36
- }
37
- /**
38
- * Internal fields and methods for the internal plugin context
39
- *
40
- * @internal
41
- */
42
- interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
43
- /**
44
- * The API instance for interacting with Powerlines
45
- *
46
- * @internal
47
- */
48
- api: API<TResolvedConfig>;
49
- /**
50
- * The environment context associated with this plugin context
51
- *
52
- * @internal
53
- */
54
- environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
55
- /**
56
- * Call a hook within the Powerlines system
57
- *
58
- * @internal
59
- *
60
- * @param hook - The name of the hook to call
61
- * @param options - Options for calling the hook
62
- * @param args - Arguments to pass to the hook
63
- * @returns The result of the hook call
64
- */
65
- callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
66
- environment?: string | EnvironmentContext<TResolvedConfig>;
67
- }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
68
- /**
69
- * A place to store internal data for the plugin context
70
- *
71
- * @internal
72
- */
73
- meta: Record<string, any>;
74
- }
75
- /**
76
- * An internal representation of the plugin context, used for managing hooks and environment data.
77
- *
78
- * @internal
79
- */
80
- interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
81
- $$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
82
- }
83
- //#endregion
84
- export { UNSAFE_PluginContext };
85
- //# sourceMappingURL=_internal.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_internal.d.mts","names":[],"sources":["../../../../../core/src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAuCA;;;AAQW,UARM,sBAQN,CAAA,wBAPe,cAOf,GAPgC,cAOhC,CAAA,CAAA;EAAJ;;;;;EAWO,GAAA,EAXP,GAWO,CAXH,eAWG,CAAA;EA8BG;;;;;;;EAEW,SAAA,EAAA,CAAA,MAAA,EAjChB,YAiCgB,CAjCH,aAiCG,CAjCW,eAiCX,CAAA,CAAA,EAAA,GAhCrB,OAgCqB,CAAA,IAAA,CAAA;AAS5B;;;;;;AAEU,UAbO,yBAaP,CAAA,wBAZgB,cAYhB,GAZiC,cAYjC,CAAA,SAXA,kBAWA,CAXmB,eAWnB,CAAA,CAAA;EAAsB,UAAA,EAVlB,sBAUkB,CAVK,eAUL,CAAA;AAgDhC;;;;;;AAEU,UApDO,4BAoDP,CAAA,wBAnDgB,cAmDhB,GAnDiC,cAmDjC,CAAA,SAlDA,sBAkDA,CAlDuB,eAkDvB,CAAA,CAAA;EAAa;;;;;OA5ChB,IAAI;;;;;;eAOI,0BAA0B;;;;;;;;;;;wCAa/B,eACG;2BACgB,mBAAmB;cAEnC,oBAAoB,cAAc,kBAAkB,UAC1D,QACH,oBAAoB,cAAc,kBAAkB;;;;;;QAQhD;;;;;;;UAQS,6CACS,iBAAiB,wBACjC,cAAc;cACV,6BAA6B"}
@@ -1,103 +0,0 @@
1
- import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
2
- import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
3
- import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig } from "./config.cjs";
4
-
5
- //#region ../core/src/types/api.d.ts
6
-
7
- /**
8
- * Powerlines API Interface
9
- */
10
- interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
11
- /**
12
- * The Powerlines shared API context
13
- */
14
- context: APIContext<TResolvedConfig>;
15
- /**
16
- * Prepare the Powerlines API
17
- *
18
- * @remarks
19
- * This method will prepare the Powerlines API for use, initializing any necessary resources.
20
- *
21
- * @param inlineConfig - The inline configuration for the prepare command
22
- */
23
- prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
24
- /**
25
- * Create a new Powerlines project
26
- *
27
- * @remarks
28
- * This method will create a new Powerlines project in the current directory.
29
- *
30
- * @param inlineConfig - The inline configuration for the new command
31
- * @returns A promise that resolves when the project has been created
32
- */
33
- new: (inlineConfig: NewInlineConfig) => Promise<void>;
34
- /**
35
- * Clean any previously prepared artifacts
36
- *
37
- * @remarks
38
- * This method will remove the previous Powerlines artifacts from the project.
39
- *
40
- * @param inlineConfig - The inline configuration for the clean command
41
- * @returns A promise that resolves when the clean command has completed
42
- */
43
- clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
44
- /**
45
- * Lint the project source code
46
- *
47
- * @param inlineConfig - The inline configuration for the lint command
48
- * @returns A promise that resolves when the lint command has completed
49
- */
50
- lint: (inlineConfig: LintInlineConfig) => Promise<void>;
51
- /**
52
- * Build the project
53
- *
54
- * @remarks
55
- * This method will build the Powerlines project, generating the necessary artifacts.
56
- *
57
- * @param inlineConfig - The inline configuration for the build command
58
- * @returns A promise that resolves when the build command has completed
59
- */
60
- build: (inlineConfig: BuildInlineConfig) => Promise<void>;
61
- /**
62
- * Prepare the documentation for the project
63
- *
64
- * @param inlineConfig - The inline configuration for the docs command
65
- * @returns A promise that resolves when the documentation generation has completed
66
- */
67
- docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
68
- /**
69
- * Deploy the project source code
70
- *
71
- * @remarks
72
- * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
73
- *
74
- * @param inlineConfig - The inline configuration for the deploy command
75
- */
76
- deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
77
- /**
78
- * Finalization process
79
- *
80
- * @remarks
81
- * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
82
- *
83
- * @returns A promise that resolves when the finalization process has completed
84
- */
85
- finalize: () => Promise<void>;
86
- /**
87
- * Invokes the configured plugin hooks
88
- *
89
- * @remarks
90
- * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
91
- *
92
- * @param hook - The hook to call
93
- * @param options - The options to provide to the hook
94
- * @param args - The arguments to pass to the hook
95
- * @returns The result of the hook call
96
- */
97
- callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
98
- environment?: string | EnvironmentContext<TResolvedConfig>;
99
- }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
100
- }
101
- //#endregion
102
- export { API };
103
- //# sourceMappingURL=api.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.cts","names":[],"sources":["../../../../../core/src/types/api.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAsCA;AAA6C,UAA5B,GAA4B,CAAA,wBAAA,cAAA,GAAiB,cAAjB,CAAA,CAAA;EAAiB;;;EAgBtD,OAAA,EAZG,UAYH,CAZc,eAYd,CAAA;EACA;;;;;;;;EAiBkC,OAAA,EAAA,CAAA,YAAA,EAlBlC,mBAkBkC,GAjBlC,eAiBkC,GAhBlC,iBAgBkC,GAflC,iBAekC,GAdlC,gBAckC,GAblC,gBAakC,GAZlC,kBAYkC,EAAA,GAXnC,OAWmC,CAAA,IAAA,CAAA;EAYxB;;;;;;;;;EAsCO,GAAA,EAAA,CAAA,YAAA,EAlDH,eAkDG,EAAA,GAlDiB,OAkDjB,CAAA,IAAA,CAAA;EAAuB;;;;;;;;;EA4BnC,KAAA,EAAA,CAAA,YAAA,EAlEK,iBAkEL,GAlEyB,mBAkEzB,EAAA,GAjEN,OAiEM,CAAA,IAAA,CAAA;EAEyB;;;;;;uBA3Df,qBAAqB;;;;;;;;;;wBAWpB,sBAAsB;;;;;;;uBAQvB,qBAAqB;;;;;;;;;yBAUnB,uBAAuB;;;;;;;;;kBAU9B;;;;;;;;;;;;wCAcR,eACG;2BACgB,mBAAmB;cAEnC,oBAAoB,cAAc,kBAAkB,UAC1D,QACH,oBAAoB,cAAc,kBAAkB"}
@@ -1,103 +0,0 @@
1
- import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
2
- import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
3
- import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig } from "./config.mjs";
4
-
5
- //#region ../core/src/types/api.d.ts
6
-
7
- /**
8
- * Powerlines API Interface
9
- */
10
- interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
11
- /**
12
- * The Powerlines shared API context
13
- */
14
- context: APIContext<TResolvedConfig>;
15
- /**
16
- * Prepare the Powerlines API
17
- *
18
- * @remarks
19
- * This method will prepare the Powerlines API for use, initializing any necessary resources.
20
- *
21
- * @param inlineConfig - The inline configuration for the prepare command
22
- */
23
- prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
24
- /**
25
- * Create a new Powerlines project
26
- *
27
- * @remarks
28
- * This method will create a new Powerlines project in the current directory.
29
- *
30
- * @param inlineConfig - The inline configuration for the new command
31
- * @returns A promise that resolves when the project has been created
32
- */
33
- new: (inlineConfig: NewInlineConfig) => Promise<void>;
34
- /**
35
- * Clean any previously prepared artifacts
36
- *
37
- * @remarks
38
- * This method will remove the previous Powerlines artifacts from the project.
39
- *
40
- * @param inlineConfig - The inline configuration for the clean command
41
- * @returns A promise that resolves when the clean command has completed
42
- */
43
- clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
44
- /**
45
- * Lint the project source code
46
- *
47
- * @param inlineConfig - The inline configuration for the lint command
48
- * @returns A promise that resolves when the lint command has completed
49
- */
50
- lint: (inlineConfig: LintInlineConfig) => Promise<void>;
51
- /**
52
- * Build the project
53
- *
54
- * @remarks
55
- * This method will build the Powerlines project, generating the necessary artifacts.
56
- *
57
- * @param inlineConfig - The inline configuration for the build command
58
- * @returns A promise that resolves when the build command has completed
59
- */
60
- build: (inlineConfig: BuildInlineConfig) => Promise<void>;
61
- /**
62
- * Prepare the documentation for the project
63
- *
64
- * @param inlineConfig - The inline configuration for the docs command
65
- * @returns A promise that resolves when the documentation generation has completed
66
- */
67
- docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
68
- /**
69
- * Deploy the project source code
70
- *
71
- * @remarks
72
- * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
73
- *
74
- * @param inlineConfig - The inline configuration for the deploy command
75
- */
76
- deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
77
- /**
78
- * Finalization process
79
- *
80
- * @remarks
81
- * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
82
- *
83
- * @returns A promise that resolves when the finalization process has completed
84
- */
85
- finalize: () => Promise<void>;
86
- /**
87
- * Invokes the configured plugin hooks
88
- *
89
- * @remarks
90
- * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
91
- *
92
- * @param hook - The hook to call
93
- * @param options - The options to provide to the hook
94
- * @param args - The arguments to pass to the hook
95
- * @returns The result of the hook call
96
- */
97
- callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
98
- environment?: string | EnvironmentContext<TResolvedConfig>;
99
- }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
100
- }
101
- //#endregion
102
- export { API };
103
- //# sourceMappingURL=api.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.mts","names":[],"sources":["../../../../../core/src/types/api.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAsCA;AAA6C,UAA5B,GAA4B,CAAA,wBAAA,cAAA,GAAiB,cAAjB,CAAA,CAAA;EAAiB;;;EAgBtD,OAAA,EAZG,UAYH,CAZc,eAYd,CAAA;EACA;;;;;;;;EAiBkC,OAAA,EAAA,CAAA,YAAA,EAlBlC,mBAkBkC,GAjBlC,eAiBkC,GAhBlC,iBAgBkC,GAflC,iBAekC,GAdlC,gBAckC,GAblC,gBAakC,GAZlC,kBAYkC,EAAA,GAXnC,OAWmC,CAAA,IAAA,CAAA;EAYxB;;;;;;;;;EAsCO,GAAA,EAAA,CAAA,YAAA,EAlDH,eAkDG,EAAA,GAlDiB,OAkDjB,CAAA,IAAA,CAAA;EAAuB;;;;;;;;;EA4BnC,KAAA,EAAA,CAAA,YAAA,EAlEK,iBAkEL,GAlEyB,mBAkEzB,EAAA,GAjEN,OAiEM,CAAA,IAAA,CAAA;EAEyB;;;;;;uBA3Df,qBAAqB;;;;;;;;;;wBAWpB,sBAAsB;;;;;;;uBAQvB,qBAAqB;;;;;;;;;yBAUnB,uBAAuB;;;;;;;;;kBAU9B;;;;;;;;;;;;wCAcR,eACG;2BACgB,mBAAmB;cAEnC,oBAAoB,cAAc,kBAAkB,UAC1D,QACH,oBAAoB,cAAc,kBAAkB"}
@@ -1,9 +0,0 @@
1
- import { MaybePromise } from "@stryke/types/base";
2
- import { ArrayValues } from "@stryke/types/array";
3
-
4
- //#region ../core/src/types/commands.d.ts
5
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
6
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
7
- //#endregion
8
- export { CommandType };
9
- //# sourceMappingURL=commands.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.cts","names":[],"sources":["../../../../../core/src/types/commands.ts"],"sourcesContent":[],"mappings":";;;;cAsBa;AAAA,KAYD,WAAA,GAAc,WAFhB,CAAA,OAEmC,kBAFnC,CAAA"}
@@ -1,10 +0,0 @@
1
- import "./context.mjs";
2
- import { MaybePromise } from "@stryke/types/base";
3
- import { ArrayValues } from "@stryke/types/array";
4
-
5
- //#region ../core/src/types/commands.d.ts
6
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
7
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
8
- //#endregion
9
- export { CommandType, SUPPORTED_COMMANDS };
10
- //# sourceMappingURL=commands.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.mts","names":[],"sources":["../../../../../core/src/types/commands.ts"],"sourcesContent":[],"mappings":";;;;;cAsBa;KAYD,WAAA,GAAc,mBAAmB"}