powerlines 0.47.4 → 0.47.8

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 (149) hide show
  1. package/dist/astro.cjs +7 -24
  2. package/dist/astro.d.cts +1 -25
  3. package/dist/astro.d.mts +1 -25
  4. package/dist/astro.mjs +2 -24
  5. package/dist/esbuild.cjs +6 -54
  6. package/dist/esbuild.d.cts +1 -25
  7. package/dist/esbuild.d.mts +1 -25
  8. package/dist/esbuild.mjs +2 -42
  9. package/dist/farm.cjs +7 -26
  10. package/dist/farm.d.cts +1 -68
  11. package/dist/farm.d.mts +1 -68
  12. package/dist/farm.mjs +2 -25
  13. package/dist/index.cjs +8 -35
  14. package/dist/index.d.cts +7 -13
  15. package/dist/index.d.cts.map +1 -1
  16. package/dist/index.d.mts +7 -13
  17. package/dist/index.d.mts.map +1 -1
  18. package/dist/index.mjs +8 -25
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/next.cjs +7 -35
  21. package/dist/next.d.cts +1 -25
  22. package/dist/next.d.mts +1 -25
  23. package/dist/next.mjs +2 -35
  24. package/dist/nuxt.cjs +7 -44
  25. package/dist/nuxt.d.cts +1 -29
  26. package/dist/nuxt.d.mts +1 -29
  27. package/dist/nuxt.mjs +2 -43
  28. package/dist/package.cjs +1 -8
  29. package/dist/package.mjs +2 -3
  30. package/dist/rolldown.cjs +6 -46
  31. package/dist/rolldown.d.cts +1 -24
  32. package/dist/rolldown.d.mts +1 -24
  33. package/dist/rolldown.mjs +2 -34
  34. package/dist/rollup.cjs +6 -37
  35. package/dist/rollup.d.cts +1 -25
  36. package/dist/rollup.d.mts +1 -25
  37. package/dist/rollup.mjs +2 -25
  38. package/dist/rspack.cjs +6 -37
  39. package/dist/rspack.d.cts +1 -25
  40. package/dist/rspack.d.mts +1 -25
  41. package/dist/rspack.mjs +2 -25
  42. package/dist/storage.cjs +3 -3
  43. package/dist/storage.d.cts +1 -1
  44. package/dist/storage.d.mts +1 -1
  45. package/dist/storage.mjs +1 -1
  46. package/dist/tsdown.cjs +6 -94
  47. package/dist/tsdown.d.cts +1 -31
  48. package/dist/tsdown.d.mts +1 -31
  49. package/dist/tsdown.mjs +2 -82
  50. package/dist/tsup.cjs +6 -70
  51. package/dist/tsup.d.cts +1 -31
  52. package/dist/tsup.d.mts +1 -31
  53. package/dist/tsup.mjs +2 -58
  54. package/dist/types.d.cts +2 -7
  55. package/dist/types.d.mts +2 -7
  56. package/dist/unloader.cjs +7 -23
  57. package/dist/unloader.d.cts +1 -65
  58. package/dist/unloader.d.mts +1 -65
  59. package/dist/unloader.mjs +2 -22
  60. package/dist/unplugin.cjs +3 -99
  61. package/dist/unplugin.d.cts +1 -17
  62. package/dist/unplugin.d.mts +1 -17
  63. package/dist/unplugin.mjs +2 -97
  64. package/dist/utils.cjs +3 -19
  65. package/dist/utils.d.cts +1 -3
  66. package/dist/utils.d.mts +1 -3
  67. package/dist/utils.mjs +1 -5
  68. package/dist/vite.cjs +6 -78
  69. package/dist/vite.d.cts +1 -25
  70. package/dist/vite.d.mts +1 -25
  71. package/dist/vite.mjs +2 -65
  72. package/dist/webpack.cjs +6 -36
  73. package/dist/webpack.d.cts +1 -24
  74. package/dist/webpack.d.mts +1 -24
  75. package/dist/webpack.mjs +2 -24
  76. package/package.json +52 -351
  77. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  78. package/dist/api.cjs +0 -10
  79. package/dist/api.d.cts +0 -2
  80. package/dist/api.d.mts +0 -2
  81. package/dist/api.mjs +0 -3
  82. package/dist/astro.d.cts.map +0 -1
  83. package/dist/astro.d.mts.map +0 -1
  84. package/dist/astro.mjs.map +0 -1
  85. package/dist/context.cjs +0 -9
  86. package/dist/context.d.cts +0 -1
  87. package/dist/context.d.mts +0 -1
  88. package/dist/context.mjs +0 -3
  89. package/dist/engine.cjs +0 -30
  90. package/dist/engine.d.cts +0 -24
  91. package/dist/engine.d.cts.map +0 -1
  92. package/dist/engine.d.mts +0 -24
  93. package/dist/engine.d.mts.map +0 -1
  94. package/dist/engine.mjs +0 -29
  95. package/dist/engine.mjs.map +0 -1
  96. package/dist/esbuild.d.cts.map +0 -1
  97. package/dist/esbuild.d.mts.map +0 -1
  98. package/dist/esbuild.mjs.map +0 -1
  99. package/dist/farm.d.cts.map +0 -1
  100. package/dist/farm.d.mts.map +0 -1
  101. package/dist/farm.mjs.map +0 -1
  102. package/dist/next.d.cts.map +0 -1
  103. package/dist/next.d.mts.map +0 -1
  104. package/dist/next.mjs.map +0 -1
  105. package/dist/nuxt.d.cts.map +0 -1
  106. package/dist/nuxt.d.mts.map +0 -1
  107. package/dist/nuxt.mjs.map +0 -1
  108. package/dist/rolldown.d.cts.map +0 -1
  109. package/dist/rolldown.d.mts.map +0 -1
  110. package/dist/rolldown.mjs.map +0 -1
  111. package/dist/rollup.d.cts.map +0 -1
  112. package/dist/rollup.d.mts.map +0 -1
  113. package/dist/rollup.mjs.map +0 -1
  114. package/dist/rspack.d.cts.map +0 -1
  115. package/dist/rspack.d.mts.map +0 -1
  116. package/dist/rspack.mjs.map +0 -1
  117. package/dist/schemas.cjs +0 -9
  118. package/dist/schemas.d.cts +0 -1
  119. package/dist/schemas.d.mts +0 -1
  120. package/dist/schemas.mjs +0 -3
  121. package/dist/tsdown.d.cts.map +0 -1
  122. package/dist/tsdown.d.mts.map +0 -1
  123. package/dist/tsdown.mjs.map +0 -1
  124. package/dist/tsup.d.cts.map +0 -1
  125. package/dist/tsup.d.mts.map +0 -1
  126. package/dist/tsup.mjs.map +0 -1
  127. package/dist/types.d.cts.map +0 -1
  128. package/dist/types.d.mts.map +0 -1
  129. package/dist/typescript.cjs +0 -9
  130. package/dist/typescript.d.cts +0 -1
  131. package/dist/typescript.d.mts +0 -1
  132. package/dist/typescript.mjs +0 -3
  133. package/dist/unbuild.cjs +0 -17
  134. package/dist/unbuild.d.cts +0 -2
  135. package/dist/unbuild.d.mts +0 -2
  136. package/dist/unbuild.mjs +0 -3
  137. package/dist/unloader.d.cts.map +0 -1
  138. package/dist/unloader.d.mts.map +0 -1
  139. package/dist/unloader.mjs.map +0 -1
  140. package/dist/unplugin.d.cts.map +0 -1
  141. package/dist/unplugin.d.mts.map +0 -1
  142. package/dist/unplugin.mjs.map +0 -1
  143. package/dist/vite.d.cts.map +0 -1
  144. package/dist/vite.d.mts.map +0 -1
  145. package/dist/vite.mjs.map +0 -1
  146. package/dist/webpack.d.cts.map +0 -1
  147. package/dist/webpack.d.mts.map +0 -1
  148. package/dist/webpack.mjs.map +0 -1
  149. package/schemas/fs.capnp +0 -42
package/dist/astro.cjs CHANGED
@@ -1,26 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_vite = require('./vite.cjs');
3
1
 
4
- //#region src/astro.ts
5
- /**
6
- * An Astro plugin that will invoke the Powerlines API hooks during the build process.
7
- *
8
- * @see https://docs.astro.build/en/guides/integrations-guide/#creating-an-integration
9
- *
10
- * @example
11
- * ```js
12
- * // astro.config.mjs
13
- * import { defineConfig } from "astro/config";
14
- * import powerlines from "powerlines/astro";
15
- *
16
- * export default defineConfig({
17
- * integrations: [powerlines({ name: "example-app", ... })]
18
- * });
19
- *
20
- * ```
21
- */
22
- const unplugin = (config) => ({ vite: { plugins: [require_vite.unplugin(config)] } });
23
2
 
24
- //#endregion
25
- exports.astro = unplugin;
26
- exports.unplugin = unplugin;
3
+ var _powerlines_unplugin_astro = require("@powerlines/unplugin/astro");
4
+ Object.keys(_powerlines_unplugin_astro).forEach(function (k) {
5
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: function () { return _powerlines_unplugin_astro[k]; }
8
+ });
9
+ });
package/dist/astro.d.cts CHANGED
@@ -1,25 +1 @@
1
- import { VitePluginInitialConfig } from "@powerlines/plugin-vite/types/plugin";
2
- import { AstroUserConfig } from "astro";
3
-
4
- //#region src/astro.d.ts
5
- /**
6
- * An Astro plugin that will invoke the Powerlines API hooks during the build process.
7
- *
8
- * @see https://docs.astro.build/en/guides/integrations-guide/#creating-an-integration
9
- *
10
- * @example
11
- * ```js
12
- * // astro.config.mjs
13
- * import { defineConfig } from "astro/config";
14
- * import powerlines from "powerlines/astro";
15
- *
16
- * export default defineConfig({
17
- * integrations: [powerlines({ name: "example-app", ... })]
18
- * });
19
- *
20
- * ```
21
- */
22
- declare const unplugin: (config: VitePluginInitialConfig) => AstroUserConfig;
23
- //#endregion
24
- export { unplugin as astro, unplugin };
25
- //# sourceMappingURL=astro.d.cts.map
1
+ export * from "@powerlines/unplugin/astro";
package/dist/astro.d.mts CHANGED
@@ -1,25 +1 @@
1
- import { VitePluginInitialConfig } from "@powerlines/plugin-vite/types/plugin";
2
- import { AstroUserConfig } from "astro";
3
-
4
- //#region src/astro.d.ts
5
- /**
6
- * An Astro plugin that will invoke the Powerlines API hooks during the build process.
7
- *
8
- * @see https://docs.astro.build/en/guides/integrations-guide/#creating-an-integration
9
- *
10
- * @example
11
- * ```js
12
- * // astro.config.mjs
13
- * import { defineConfig } from "astro/config";
14
- * import powerlines from "powerlines/astro";
15
- *
16
- * export default defineConfig({
17
- * integrations: [powerlines({ name: "example-app", ... })]
18
- * });
19
- *
20
- * ```
21
- */
22
- declare const unplugin: (config: VitePluginInitialConfig) => AstroUserConfig;
23
- //#endregion
24
- export { unplugin as astro, unplugin };
25
- //# sourceMappingURL=astro.d.mts.map
1
+ export * from "@powerlines/unplugin/astro";
package/dist/astro.mjs CHANGED
@@ -1,25 +1,3 @@
1
- import { unplugin as unplugin$1 } from "./vite.mjs";
1
+ export * from "@powerlines/unplugin/astro"
2
2
 
3
- //#region src/astro.ts
4
- /**
5
- * An Astro plugin that will invoke the Powerlines API hooks during the build process.
6
- *
7
- * @see https://docs.astro.build/en/guides/integrations-guide/#creating-an-integration
8
- *
9
- * @example
10
- * ```js
11
- * // astro.config.mjs
12
- * import { defineConfig } from "astro/config";
13
- * import powerlines from "powerlines/astro";
14
- *
15
- * export default defineConfig({
16
- * integrations: [powerlines({ name: "example-app", ... })]
17
- * });
18
- *
19
- * ```
20
- */
21
- const unplugin = (config) => ({ vite: { plugins: [unplugin$1(config)] } });
22
-
23
- //#endregion
24
- export { unplugin as astro, unplugin };
25
- //# sourceMappingURL=astro.mjs.map
3
+ export { };
package/dist/esbuild.cjs CHANGED
@@ -1,57 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_unplugin = require('./unplugin.cjs');
4
- let unplugin = require("unplugin");
5
- let _powerlines_plugin_esbuild_helpers_resolve_options = require("@powerlines/plugin-esbuild/helpers/resolve-options");
6
- let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
7
- let _powerlines_plugin_esbuild = require("@powerlines/plugin-esbuild");
8
- _powerlines_plugin_esbuild = require_runtime.__toESM(_powerlines_plugin_esbuild, 1);
9
1
 
10
- //#region src/esbuild.ts
11
- /**
12
- * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
13
- *
14
- * @see https://esbuild.github.io/plugins/
15
- *
16
- * @example
17
- * ```js
18
- * // esbuild.config.js
19
- * import powerlines from "powerlines/esbuild";
20
- *
21
- * export default {
22
- * plugins: [powerlines({ name: "example-app", ... })],
23
- * };
24
- *
25
- * ```
26
- */
27
- const unplugin$1 = (0, unplugin.createEsbuildPlugin)(require_unplugin.createUnpluginFactory("esbuild", (api, plugin) => {
28
- return {
29
- ...plugin,
30
- esbuild: {
31
- config: (options) => {
32
- options ??= {};
33
- const result = (0, _powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(api.context);
34
- for (const key in result) if ((0, _stryke_type_checks_is_undefined.isUndefined)(options[key]) && !(0, _stryke_type_checks_is_undefined.isUndefined)(result[key])) options[key] = result[key];
35
- },
36
- setup: async (build) => {
37
- const environment = await api.context.getEnvironment();
38
- return api.callHook("esbuild:setup", { environment }, build);
39
- }
40
- }
41
- };
42
- }));
43
2
 
44
- //#endregion
45
- Object.defineProperty(exports, 'esbuild', {
46
- enumerable: true,
47
- get: function () {
48
- return _powerlines_plugin_esbuild.default;
49
- }
3
+ var _powerlines_unplugin_esbuild = require("@powerlines/unplugin/esbuild");
4
+ Object.keys(_powerlines_unplugin_esbuild).forEach(function (k) {
5
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: function () { return _powerlines_unplugin_esbuild[k]; }
8
+ });
50
9
  });
51
- Object.defineProperty(exports, 'plugin', {
52
- enumerable: true,
53
- get: function () {
54
- return _powerlines_plugin_esbuild.default;
55
- }
56
- });
57
- exports.unplugin = unplugin$1;
@@ -1,25 +1 @@
1
- import * as _$esbuild from "esbuild";
2
- import { EsbuildPluginInitialConfig } from "@powerlines/plugin-esbuild/types/plugin";
3
- import esbuild, { default as plugin } from "@powerlines/plugin-esbuild";
4
-
5
- //#region src/esbuild.d.ts
6
- /**
7
- * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
8
- *
9
- * @see https://esbuild.github.io/plugins/
10
- *
11
- * @example
12
- * ```js
13
- * // esbuild.config.js
14
- * import powerlines from "powerlines/esbuild";
15
- *
16
- * export default {
17
- * plugins: [powerlines({ name: "example-app", ... })],
18
- * };
19
- *
20
- * ```
21
- */
22
- declare const unplugin: (options: EsbuildPluginInitialConfig) => _$esbuild.Plugin;
23
- //#endregion
24
- export { esbuild, plugin, unplugin };
25
- //# sourceMappingURL=esbuild.d.cts.map
1
+ export * from "@powerlines/unplugin/esbuild";
@@ -1,25 +1 @@
1
- import esbuild, { default as plugin } from "@powerlines/plugin-esbuild";
2
- import * as _$esbuild from "esbuild";
3
- import { EsbuildPluginInitialConfig } from "@powerlines/plugin-esbuild/types/plugin";
4
-
5
- //#region src/esbuild.d.ts
6
- /**
7
- * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
8
- *
9
- * @see https://esbuild.github.io/plugins/
10
- *
11
- * @example
12
- * ```js
13
- * // esbuild.config.js
14
- * import powerlines from "powerlines/esbuild";
15
- *
16
- * export default {
17
- * plugins: [powerlines({ name: "example-app", ... })],
18
- * };
19
- *
20
- * ```
21
- */
22
- declare const unplugin: (options: EsbuildPluginInitialConfig) => _$esbuild.Plugin;
23
- //#endregion
24
- export { esbuild, plugin, unplugin };
25
- //# sourceMappingURL=esbuild.d.mts.map
1
+ export * from "@powerlines/unplugin/esbuild";
package/dist/esbuild.mjs CHANGED
@@ -1,43 +1,3 @@
1
- import { createUnpluginFactory } from "./unplugin.mjs";
2
- import { createEsbuildPlugin } from "unplugin";
3
- import { resolveOptions } from "@powerlines/plugin-esbuild/helpers/resolve-options";
4
- import { isUndefined } from "@stryke/type-checks/is-undefined";
5
- import esbuild, { default as plugin } from "@powerlines/plugin-esbuild";
1
+ export * from "@powerlines/unplugin/esbuild"
6
2
 
7
- //#region src/esbuild.ts
8
- /**
9
- * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
10
- *
11
- * @see https://esbuild.github.io/plugins/
12
- *
13
- * @example
14
- * ```js
15
- * // esbuild.config.js
16
- * import powerlines from "powerlines/esbuild";
17
- *
18
- * export default {
19
- * plugins: [powerlines({ name: "example-app", ... })],
20
- * };
21
- *
22
- * ```
23
- */
24
- const unplugin = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin) => {
25
- return {
26
- ...plugin,
27
- esbuild: {
28
- config: (options) => {
29
- options ??= {};
30
- const result = resolveOptions(api.context);
31
- for (const key in result) if (isUndefined(options[key]) && !isUndefined(result[key])) options[key] = result[key];
32
- },
33
- setup: async (build) => {
34
- const environment = await api.context.getEnvironment();
35
- return api.callHook("esbuild:setup", { environment }, build);
36
- }
37
- }
38
- };
39
- }));
40
-
41
- //#endregion
42
- export { esbuild, plugin, unplugin };
43
- //# sourceMappingURL=esbuild.mjs.map
3
+ export { };
package/dist/farm.cjs CHANGED
@@ -1,28 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_unplugin = require('./unplugin.cjs');
4
- let unplugin = require("unplugin");
5
1
 
6
- //#region src/farm.ts
7
- /**
8
- * A Farm plugin that will invoke the Powerlines API hooks during the build process.
9
- *
10
- * @see https://farmjs.dev/plugins/writing-plugins
11
- *
12
- * @example
13
- * ```ts
14
- * // farm.config.ts
15
- * import powerlines from "powerlines/farm";
16
- * import { defineConfig } from "@farmfe/core";
17
- *
18
- * export default defineConfig({
19
- * plugins: [powerlines({ name: "example-app", ... })],
20
- * });
21
- *
22
- * ```
23
- */
24
- const unplugin$1 = (0, unplugin.createFarmPlugin)(require_unplugin.createUnpluginFactory("farm"));
25
2
 
26
- //#endregion
27
- exports.farm = unplugin$1;
28
- exports.unplugin = unplugin$1;
3
+ var _powerlines_unplugin_farm = require("@powerlines/unplugin/farm");
4
+ Object.keys(_powerlines_unplugin_farm).forEach(function (k) {
5
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: function () { return _powerlines_unplugin_farm[k]; }
8
+ });
9
+ });
package/dist/farm.d.cts CHANGED
@@ -1,68 +1 @@
1
- import * as _$_powerlines_core0 from "@powerlines/core";
2
- import * as _$_powerlines_plugin_esbuild0 from "@powerlines/plugin-esbuild";
3
- import * as _$_stryke_types_configuration0 from "@stryke/types/configuration";
4
- import * as _$compatx from "compatx";
5
- import * as _$_powerlines_plugin_webpack0 from "@powerlines/plugin-webpack";
6
- import * as _$_powerlines_plugin_vite0 from "@powerlines/plugin-vite";
7
- import * as _$_powerlines_plugin_rolldown0 from "@powerlines/plugin-rolldown";
8
- import * as _$_powerlines_plugin_rollup0 from "@powerlines/plugin-rollup";
9
- import * as _$_powerlines_plugin_tsdown0 from "@powerlines/plugin-tsdown";
10
- import * as _$_powerlines_plugin_tsup0 from "@powerlines/plugin-tsup";
11
- import * as _$_powerlines_plugin_unbuild0 from "@powerlines/plugin-unbuild";
12
- import * as _$_farmfe_core0 from "@farmfe/core";
13
-
14
- //#region src/farm.d.ts
15
- /**
16
- * A Farm plugin that will invoke the Powerlines API hooks during the build process.
17
- *
18
- * @see https://farmjs.dev/plugins/writing-plugins
19
- *
20
- * @example
21
- * ```ts
22
- * // farm.config.ts
23
- * import powerlines from "powerlines/farm";
24
- * import { defineConfig } from "@farmfe/core";
25
- *
26
- * export default defineConfig({
27
- * plugins: [powerlines({ name: "example-app", ... })],
28
- * });
29
- *
30
- * ```
31
- */
32
- declare const unplugin: (options: _$_powerlines_core0.InitialPluginConfig<{
33
- readonly name?: string | undefined;
34
- readonly title?: string | undefined;
35
- readonly description?: string | undefined;
36
- readonly organization?: string | undefined;
37
- readonly logLevel?: _$_powerlines_core0.LogLevelUserConfig | undefined;
38
- readonly customLogger?: _$_powerlines_core0.CustomLogger | undefined;
39
- readonly projectType?: _$_powerlines_core0.ProjectType | undefined;
40
- readonly autoInstall?: boolean | undefined;
41
- readonly skipCache?: boolean | undefined;
42
- readonly plugins?: _$_powerlines_core0.PluginConfig<any>[] | undefined;
43
- readonly environments?: Record<string, _$_powerlines_core0.EnvironmentConfig> | undefined;
44
- readonly singleBuild?: boolean | undefined;
45
- readonly root?: string | undefined;
46
- readonly mode?: _$_powerlines_core0.Mode | undefined;
47
- readonly framework?: string | undefined;
48
- readonly input: _$_stryke_types_configuration0.TypeDefinitionParameter | _$_stryke_types_configuration0.TypeDefinitionParameter[] | Record<string, _$_stryke_types_configuration0.TypeDefinitionParameter | _$_stryke_types_configuration0.TypeDefinitionParameter[]>;
49
- readonly output?: _$_powerlines_core0.OutputConfig | undefined;
50
- readonly compatibilityDate?: _$compatx.CompatibilityDateSpec | undefined;
51
- readonly resolve?: _$_powerlines_core0.ResolveConfig | undefined;
52
- readonly platform?: "node" | "browser" | "neutral" | undefined;
53
- readonly define?: Record<string, any> | undefined;
54
- readonly inject?: Record<string, string | string[]> | undefined;
55
- readonly tsconfig?: string | undefined;
56
- readonly tsconfigRaw?: _$_powerlines_core0.TSConfig | undefined;
57
- readonly webpack?: _$_powerlines_plugin_webpack0.WebpackPluginOptions | undefined;
58
- readonly vite?: _$_powerlines_plugin_vite0.VitePluginOptions | undefined;
59
- readonly esbuild?: _$_powerlines_plugin_esbuild0.EsbuildPluginOptions | undefined;
60
- readonly rolldown?: _$_powerlines_plugin_rolldown0.RolldownPluginOptions | undefined;
61
- readonly rollup?: _$_powerlines_plugin_rollup0.RollupPluginOptions | undefined;
62
- readonly tsdown?: _$_powerlines_plugin_tsdown0.TsdownPluginOptions | undefined;
63
- readonly tsup?: _$_powerlines_plugin_tsup0.TsupPluginOptions | undefined;
64
- readonly unbuild?: _$_powerlines_plugin_unbuild0.UnbuildPluginOptions | undefined;
65
- }>) => _$_farmfe_core0.JsPlugin;
66
- //#endregion
67
- export { unplugin as farm, unplugin };
68
- //# sourceMappingURL=farm.d.cts.map
1
+ export * from "@powerlines/unplugin/farm";
package/dist/farm.d.mts CHANGED
@@ -1,68 +1 @@
1
- import * as _$_powerlines_plugin_vite0 from "@powerlines/plugin-vite";
2
- import * as _$_powerlines_plugin_esbuild0 from "@powerlines/plugin-esbuild";
3
- import * as _$_powerlines_plugin_webpack0 from "@powerlines/plugin-webpack";
4
- import * as _$_powerlines_plugin_rolldown0 from "@powerlines/plugin-rolldown";
5
- import * as _$_powerlines_plugin_rollup0 from "@powerlines/plugin-rollup";
6
- import * as _$_powerlines_plugin_tsdown0 from "@powerlines/plugin-tsdown";
7
- import * as _$_powerlines_plugin_tsup0 from "@powerlines/plugin-tsup";
8
- import * as _$_powerlines_plugin_unbuild0 from "@powerlines/plugin-unbuild";
9
- import * as _$_powerlines_core0 from "@powerlines/core";
10
- import * as _$_stryke_types_configuration0 from "@stryke/types/configuration";
11
- import * as _$compatx from "compatx";
12
- import * as _$_farmfe_core0 from "@farmfe/core";
13
-
14
- //#region src/farm.d.ts
15
- /**
16
- * A Farm plugin that will invoke the Powerlines API hooks during the build process.
17
- *
18
- * @see https://farmjs.dev/plugins/writing-plugins
19
- *
20
- * @example
21
- * ```ts
22
- * // farm.config.ts
23
- * import powerlines from "powerlines/farm";
24
- * import { defineConfig } from "@farmfe/core";
25
- *
26
- * export default defineConfig({
27
- * plugins: [powerlines({ name: "example-app", ... })],
28
- * });
29
- *
30
- * ```
31
- */
32
- declare const unplugin: (options: _$_powerlines_core0.InitialPluginConfig<{
33
- readonly name?: string | undefined;
34
- readonly title?: string | undefined;
35
- readonly description?: string | undefined;
36
- readonly organization?: string | undefined;
37
- readonly logLevel?: _$_powerlines_core0.LogLevelUserConfig | undefined;
38
- readonly customLogger?: _$_powerlines_core0.CustomLogger | undefined;
39
- readonly projectType?: _$_powerlines_core0.ProjectType | undefined;
40
- readonly autoInstall?: boolean | undefined;
41
- readonly skipCache?: boolean | undefined;
42
- readonly plugins?: _$_powerlines_core0.PluginConfig<any>[] | undefined;
43
- readonly environments?: Record<string, _$_powerlines_core0.EnvironmentConfig> | undefined;
44
- readonly singleBuild?: boolean | undefined;
45
- readonly root?: string | undefined;
46
- readonly mode?: _$_powerlines_core0.Mode | undefined;
47
- readonly framework?: string | undefined;
48
- readonly input: _$_stryke_types_configuration0.TypeDefinitionParameter | _$_stryke_types_configuration0.TypeDefinitionParameter[] | Record<string, _$_stryke_types_configuration0.TypeDefinitionParameter | _$_stryke_types_configuration0.TypeDefinitionParameter[]>;
49
- readonly output?: _$_powerlines_core0.OutputConfig | undefined;
50
- readonly compatibilityDate?: _$compatx.CompatibilityDateSpec | undefined;
51
- readonly resolve?: _$_powerlines_core0.ResolveConfig | undefined;
52
- readonly platform?: "node" | "browser" | "neutral" | undefined;
53
- readonly define?: Record<string, any> | undefined;
54
- readonly inject?: Record<string, string | string[]> | undefined;
55
- readonly tsconfig?: string | undefined;
56
- readonly tsconfigRaw?: _$_powerlines_core0.TSConfig | undefined;
57
- readonly webpack?: _$_powerlines_plugin_webpack0.WebpackPluginOptions | undefined;
58
- readonly vite?: _$_powerlines_plugin_vite0.VitePluginOptions | undefined;
59
- readonly esbuild?: _$_powerlines_plugin_esbuild0.EsbuildPluginOptions | undefined;
60
- readonly rolldown?: _$_powerlines_plugin_rolldown0.RolldownPluginOptions | undefined;
61
- readonly rollup?: _$_powerlines_plugin_rollup0.RollupPluginOptions | undefined;
62
- readonly tsdown?: _$_powerlines_plugin_tsdown0.TsdownPluginOptions | undefined;
63
- readonly tsup?: _$_powerlines_plugin_tsup0.TsupPluginOptions | undefined;
64
- readonly unbuild?: _$_powerlines_plugin_unbuild0.UnbuildPluginOptions | undefined;
65
- }>) => _$_farmfe_core0.JsPlugin;
66
- //#endregion
67
- export { unplugin as farm, unplugin };
68
- //# sourceMappingURL=farm.d.mts.map
1
+ export * from "@powerlines/unplugin/farm";
package/dist/farm.mjs CHANGED
@@ -1,26 +1,3 @@
1
- import { createUnpluginFactory } from "./unplugin.mjs";
2
- import { createFarmPlugin } from "unplugin";
1
+ export * from "@powerlines/unplugin/farm"
3
2
 
4
- //#region src/farm.ts
5
- /**
6
- * A Farm plugin that will invoke the Powerlines API hooks during the build process.
7
- *
8
- * @see https://farmjs.dev/plugins/writing-plugins
9
- *
10
- * @example
11
- * ```ts
12
- * // farm.config.ts
13
- * import powerlines from "powerlines/farm";
14
- * import { defineConfig } from "@farmfe/core";
15
- *
16
- * export default defineConfig({
17
- * plugins: [powerlines({ name: "example-app", ... })],
18
- * });
19
- *
20
- * ```
21
- */
22
- const unplugin = createFarmPlugin(createUnpluginFactory("farm"));
23
-
24
- //#endregion
25
- export { unplugin as farm, unplugin };
26
- //# sourceMappingURL=farm.mjs.map
3
+ export { };
package/dist/index.cjs CHANGED
@@ -1,47 +1,20 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- require('./api.cjs');
4
- const require_engine = require('./engine.cjs');
5
- let _powerlines_engine_api = require("@powerlines/engine/api");
2
+ const require_package = require('./package.cjs');
3
+ let _powerlines_engine = require("@powerlines/engine");
4
+ let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
6
5
 
7
6
  //#region src/index.ts
8
7
  /**
9
- * The powerlines library used by Storm Software for building NodeJS applications.
10
- *
11
- * @remarks
12
- * A build toolkit and runtime used by Storm Software in TypeScript applications
13
- *
14
- * @packageDocumentation
15
- */
16
- /**
17
8
  * Creates a new {@link PowerlinesEngine} instance.
18
9
  *
19
10
  * @param options - The user configuration options.
20
11
  * @returns A promise that resolves to a {@link PowerlinesEngine} instance.
21
12
  */
22
- async function createEngine(options) {
23
- return require_engine.PowerlinesEngine.from(options);
24
- }
25
- /**
26
- * Creates a new {@link PowerlinesAPI} instance.
27
- *
28
- * @param options - The user configuration options.
29
- * @returns A promise that resolves to a {@link PowerlinesAPI} instance.
30
- */
31
- async function createAPI(options) {
32
- return _powerlines_engine_api.PowerlinesAPI.from({
33
- cwd: process.cwd(),
34
- ...options
35
- });
13
+ async function createPowerlines(options) {
14
+ const engine = await (0, _powerlines_engine.createEngine)(options);
15
+ engine.context.info(`🔌 ${(0, _stryke_string_format_title_case.titleCase)(engine.context.framework.name)} Engine v${engine.context.framework.version || require_package.version} is running...`);
16
+ return engine;
36
17
  }
37
18
 
38
19
  //#endregion
39
- Object.defineProperty(exports, 'PowerlinesAPI', {
40
- enumerable: true,
41
- get: function () {
42
- return _powerlines_engine_api.PowerlinesAPI;
43
- }
44
- });
45
- exports.PowerlinesEngine = require_engine.PowerlinesEngine;
46
- exports.createAPI = createAPI;
47
- exports.createEngine = createEngine;
20
+ exports.createPowerlines = createPowerlines;
package/dist/index.d.cts CHANGED
@@ -1,11 +1,12 @@
1
- import { PowerlinesAPI } from "./api.cjs";
2
- import { types_d_exports } from "./types.cjs";
3
- import { PowerlinesEngine } from "./engine.cjs";
1
+ import * as _$_powerlines_engine0 from "@powerlines/engine";
2
+ import { EngineOptions } from "@powerlines/engine";
3
+ export * from "@powerlines/engine";
4
4
  export * from "@powerlines/core";
5
+ export * from "@powerlines/unplugin";
5
6
 
6
7
  //#region src/index.d.ts
7
8
  declare namespace index_d_exports {
8
- export { PowerlinesAPI, PowerlinesEngine, createAPI, createEngine };
9
+ export { createPowerlines };
9
10
  }
10
11
  /**
11
12
  * Creates a new {@link PowerlinesEngine} instance.
@@ -13,14 +14,7 @@ declare namespace index_d_exports {
13
14
  * @param options - The user configuration options.
14
15
  * @returns A promise that resolves to a {@link PowerlinesEngine} instance.
15
16
  */
16
- declare function createEngine(options: types_d_exports.EngineOptions): Promise<PowerlinesEngine>;
17
- /**
18
- * Creates a new {@link PowerlinesAPI} instance.
19
- *
20
- * @param options - The user configuration options.
21
- * @returns A promise that resolves to a {@link PowerlinesAPI} instance.
22
- */
23
- declare function createAPI<TResolvedConfig extends types_d_exports.ResolvedConfig = types_d_exports.ResolvedConfig>(options: types_d_exports.EngineOptions): Promise<PowerlinesAPI<TResolvedConfig>>;
17
+ declare function createPowerlines(options: Omit<EngineOptions, "framework">): Promise<_$_powerlines_engine0.PowerlinesEngine<readonly string[]>>;
24
18
  //#endregion
25
- export { PowerlinesAPI, PowerlinesEngine, createAPI, createEngine };
19
+ export { createPowerlines };
26
20
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;AAuCA;;;iBAAsB,YAAA,CACpB,OAAA,EAAS,eAAA,CAAA,aAAA,GACR,OAAA,CAAQ,gBAAA;;;;;;;iBAUW,SAAA,yBACI,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CACzC,OAAA,EAAS,eAAA,CAAA,aAAA,GAAgB,OAAA,CAAQ,aAAA,CAAc,eAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;AAwCA;;;iBAAsB,gBAAA,CACpB,OAAA,EAAS,IAAA,CAAK,aAAA,iBAA2B,OAAA,CAA5B,qBAAA,CAA4B,gBAAA"}
package/dist/index.d.mts CHANGED
@@ -1,11 +1,12 @@
1
- import { PowerlinesAPI } from "./api.mjs";
2
- import { types_d_exports } from "./types.mjs";
3
- import { PowerlinesEngine } from "./engine.mjs";
1
+ import * as _$_powerlines_engine0 from "@powerlines/engine";
2
+ import { EngineOptions } from "@powerlines/engine";
3
+ export * from "@powerlines/engine";
4
4
  export * from "@powerlines/core";
5
+ export * from "@powerlines/unplugin";
5
6
 
6
7
  //#region src/index.d.ts
7
8
  declare namespace index_d_exports {
8
- export { PowerlinesAPI, PowerlinesEngine, createAPI, createEngine };
9
+ export { createPowerlines };
9
10
  }
10
11
  /**
11
12
  * Creates a new {@link PowerlinesEngine} instance.
@@ -13,14 +14,7 @@ declare namespace index_d_exports {
13
14
  * @param options - The user configuration options.
14
15
  * @returns A promise that resolves to a {@link PowerlinesEngine} instance.
15
16
  */
16
- declare function createEngine(options: types_d_exports.EngineOptions): Promise<PowerlinesEngine>;
17
- /**
18
- * Creates a new {@link PowerlinesAPI} instance.
19
- *
20
- * @param options - The user configuration options.
21
- * @returns A promise that resolves to a {@link PowerlinesAPI} instance.
22
- */
23
- declare function createAPI<TResolvedConfig extends types_d_exports.ResolvedConfig = types_d_exports.ResolvedConfig>(options: types_d_exports.EngineOptions): Promise<PowerlinesAPI<TResolvedConfig>>;
17
+ declare function createPowerlines(options: Omit<EngineOptions, "framework">): Promise<_$_powerlines_engine0.PowerlinesEngine<readonly string[]>>;
24
18
  //#endregion
25
- export { PowerlinesAPI, PowerlinesEngine, createAPI, createEngine };
19
+ export { createPowerlines };
26
20
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;AAuCA;;;iBAAsB,YAAA,CACpB,OAAA,EAAS,eAAA,CAAA,aAAA,GACR,OAAA,CAAQ,gBAAA;;;;;;;iBAUW,SAAA,yBACI,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CACzC,OAAA,EAAS,eAAA,CAAA,aAAA,GAAgB,OAAA,CAAQ,aAAA,CAAc,eAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;AAwCA;;;iBAAsB,gBAAA,CACpB,OAAA,EAAS,IAAA,CAAK,aAAA,iBAA2B,OAAA,CAA5B,qBAAA,CAA4B,gBAAA"}