powerlines 0.47.3 → 0.47.7
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/dist/astro.cjs +7 -24
- package/dist/astro.d.cts +1 -25
- package/dist/astro.d.mts +1 -25
- package/dist/astro.mjs +2 -24
- package/dist/esbuild.cjs +6 -54
- package/dist/esbuild.d.cts +1 -25
- package/dist/esbuild.d.mts +1 -25
- package/dist/esbuild.mjs +2 -42
- package/dist/farm.cjs +7 -26
- package/dist/farm.d.cts +1 -68
- package/dist/farm.d.mts +1 -68
- package/dist/farm.mjs +2 -25
- package/dist/index.cjs +8 -35
- package/dist/index.d.cts +7 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -13
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -25
- package/dist/index.mjs.map +1 -1
- package/dist/next.cjs +7 -35
- package/dist/next.d.cts +1 -25
- package/dist/next.d.mts +1 -25
- package/dist/next.mjs +2 -35
- package/dist/nuxt.cjs +7 -44
- package/dist/nuxt.d.cts +1 -29
- package/dist/nuxt.d.mts +1 -29
- package/dist/nuxt.mjs +2 -43
- package/dist/package.cjs +1 -8
- package/dist/package.mjs +2 -3
- package/dist/rolldown.cjs +6 -46
- package/dist/rolldown.d.cts +1 -24
- package/dist/rolldown.d.mts +1 -24
- package/dist/rolldown.mjs +2 -34
- package/dist/rollup.cjs +6 -37
- package/dist/rollup.d.cts +1 -25
- package/dist/rollup.d.mts +1 -25
- package/dist/rollup.mjs +2 -25
- package/dist/rspack.cjs +6 -37
- package/dist/rspack.d.cts +1 -25
- package/dist/rspack.d.mts +1 -25
- package/dist/rspack.mjs +2 -25
- package/dist/storage.cjs +3 -3
- package/dist/storage.d.cts +1 -1
- package/dist/storage.d.mts +1 -1
- package/dist/storage.mjs +1 -1
- package/dist/tsdown.cjs +6 -94
- package/dist/tsdown.d.cts +1 -31
- package/dist/tsdown.d.mts +1 -31
- package/dist/tsdown.mjs +2 -82
- package/dist/tsup.cjs +6 -70
- package/dist/tsup.d.cts +1 -31
- package/dist/tsup.d.mts +1 -31
- package/dist/tsup.mjs +2 -58
- package/dist/types.d.cts +2 -7
- package/dist/types.d.mts +2 -7
- package/dist/unloader.cjs +7 -23
- package/dist/unloader.d.cts +1 -65
- package/dist/unloader.d.mts +1 -65
- package/dist/unloader.mjs +2 -22
- package/dist/unplugin.cjs +3 -99
- package/dist/unplugin.d.cts +1 -17
- package/dist/unplugin.d.mts +1 -17
- package/dist/unplugin.mjs +2 -97
- package/dist/utils.cjs +3 -19
- package/dist/utils.d.cts +1 -3
- package/dist/utils.d.mts +1 -3
- package/dist/utils.mjs +1 -5
- package/dist/vite.cjs +6 -78
- package/dist/vite.d.cts +1 -25
- package/dist/vite.d.mts +1 -25
- package/dist/vite.mjs +2 -65
- package/dist/webpack.cjs +6 -36
- package/dist/webpack.d.cts +1 -24
- package/dist/webpack.d.mts +1 -24
- package/dist/webpack.mjs +2 -24
- package/package.json +50 -351
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/api.cjs +0 -10
- package/dist/api.d.cts +0 -2
- package/dist/api.d.mts +0 -2
- package/dist/api.mjs +0 -3
- package/dist/astro.d.cts.map +0 -1
- package/dist/astro.d.mts.map +0 -1
- package/dist/astro.mjs.map +0 -1
- package/dist/context.cjs +0 -9
- package/dist/context.d.cts +0 -1
- package/dist/context.d.mts +0 -1
- package/dist/context.mjs +0 -3
- package/dist/engine.cjs +0 -30
- package/dist/engine.d.cts +0 -24
- package/dist/engine.d.cts.map +0 -1
- package/dist/engine.d.mts +0 -24
- package/dist/engine.d.mts.map +0 -1
- package/dist/engine.mjs +0 -29
- package/dist/engine.mjs.map +0 -1
- package/dist/esbuild.d.cts.map +0 -1
- package/dist/esbuild.d.mts.map +0 -1
- package/dist/esbuild.mjs.map +0 -1
- package/dist/farm.d.cts.map +0 -1
- package/dist/farm.d.mts.map +0 -1
- package/dist/farm.mjs.map +0 -1
- package/dist/next.d.cts.map +0 -1
- package/dist/next.d.mts.map +0 -1
- package/dist/next.mjs.map +0 -1
- package/dist/nuxt.d.cts.map +0 -1
- package/dist/nuxt.d.mts.map +0 -1
- package/dist/nuxt.mjs.map +0 -1
- package/dist/rolldown.d.cts.map +0 -1
- package/dist/rolldown.d.mts.map +0 -1
- package/dist/rolldown.mjs.map +0 -1
- package/dist/rollup.d.cts.map +0 -1
- package/dist/rollup.d.mts.map +0 -1
- package/dist/rollup.mjs.map +0 -1
- package/dist/rspack.d.cts.map +0 -1
- package/dist/rspack.d.mts.map +0 -1
- package/dist/rspack.mjs.map +0 -1
- package/dist/schemas.cjs +0 -9
- package/dist/schemas.d.cts +0 -1
- package/dist/schemas.d.mts +0 -1
- package/dist/schemas.mjs +0 -3
- package/dist/tsdown.d.cts.map +0 -1
- package/dist/tsdown.d.mts.map +0 -1
- package/dist/tsdown.mjs.map +0 -1
- package/dist/tsup.d.cts.map +0 -1
- package/dist/tsup.d.mts.map +0 -1
- package/dist/tsup.mjs.map +0 -1
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/typescript.cjs +0 -9
- package/dist/typescript.d.cts +0 -1
- package/dist/typescript.d.mts +0 -1
- package/dist/typescript.mjs +0 -3
- package/dist/unbuild.cjs +0 -17
- package/dist/unbuild.d.cts +0 -2
- package/dist/unbuild.d.mts +0 -2
- package/dist/unbuild.mjs +0 -3
- package/dist/unloader.d.cts.map +0 -1
- package/dist/unloader.d.mts.map +0 -1
- package/dist/unloader.mjs.map +0 -1
- package/dist/unplugin.d.cts.map +0 -1
- package/dist/unplugin.d.mts.map +0 -1
- package/dist/unplugin.mjs.map +0 -1
- package/dist/vite.d.cts.map +0 -1
- package/dist/vite.d.mts.map +0 -1
- package/dist/vite.mjs.map +0 -1
- package/dist/webpack.d.cts.map +0 -1
- package/dist/webpack.d.mts.map +0 -1
- package/dist/webpack.mjs.map +0 -1
- package/schemas/fs.capnp +0 -42
package/dist/index.mjs
CHANGED
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { version } from "./package.mjs";
|
|
2
|
+
import { createEngine } from "@powerlines/engine";
|
|
3
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
3
4
|
|
|
4
5
|
//#region src/index.ts
|
|
5
6
|
/**
|
|
6
|
-
* The powerlines library used by Storm Software for building NodeJS applications.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* A build toolkit and runtime used by Storm Software in TypeScript applications
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
7
|
* Creates a new {@link PowerlinesEngine} instance.
|
|
15
8
|
*
|
|
16
9
|
* @param options - The user configuration options.
|
|
17
10
|
* @returns A promise that resolves to a {@link PowerlinesEngine} instance.
|
|
18
11
|
*/
|
|
19
|
-
async function
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
* Creates a new {@link PowerlinesAPI} instance.
|
|
24
|
-
*
|
|
25
|
-
* @param options - The user configuration options.
|
|
26
|
-
* @returns A promise that resolves to a {@link PowerlinesAPI} instance.
|
|
27
|
-
*/
|
|
28
|
-
async function createAPI(options) {
|
|
29
|
-
return PowerlinesAPI.from({
|
|
30
|
-
cwd: process.cwd(),
|
|
31
|
-
...options
|
|
32
|
-
});
|
|
12
|
+
async function createPowerlines(options) {
|
|
13
|
+
const engine = await createEngine(options);
|
|
14
|
+
engine.context.info(`🔌 ${titleCase(engine.context.framework.name)} Engine v${engine.context.framework.version || version} is running...`);
|
|
15
|
+
return engine;
|
|
33
16
|
}
|
|
34
17
|
|
|
35
18
|
//#endregion
|
|
36
|
-
export {
|
|
19
|
+
export { createPowerlines };
|
|
37
20
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["packageJson.version"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport type { EngineOptions } from \"@powerlines/engine\";\nimport { createEngine } from \"@powerlines/engine\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport packageJson from \"../package.json\" with { type: \"json\" };\n\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesEngine} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesEngine} instance.\n */\nexport async function createPowerlines(\n options: Omit<EngineOptions, \"framework\">\n) {\n const engine = await createEngine(options);\n\n engine.context.info(\n `🔌 ${titleCase(engine.context.framework.name)} Engine v${\n engine.context.framework.version || packageJson.version\n } is running...`\n );\n\n return engine;\n}\n"],"mappings":";;;;;;;;;;;AAwCA,eAAsB,iBACpB,SACA;CACA,MAAM,SAAS,MAAM,aAAa,QAAQ;AAE1C,QAAO,QAAQ,KACb,MAAM,UAAU,OAAO,QAAQ,UAAU,KAAK,CAAC,WAC7C,OAAO,QAAQ,UAAU,WAAWA,QACrC,gBACF;AAED,QAAO"}
|
package/dist/next.cjs
CHANGED
|
@@ -1,37 +1,9 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_webpack = require('./webpack.cjs');
|
|
3
1
|
|
|
4
|
-
//#region src/next.ts
|
|
5
|
-
/**
|
|
6
|
-
* A Next.js configuration function that integrates Powerlines into the build process.
|
|
7
|
-
*
|
|
8
|
-
* @see https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```js
|
|
12
|
-
* // next.config.js
|
|
13
|
-
* import withPowerlines from 'powerlines/next'
|
|
14
|
-
*
|
|
15
|
-
* export default withPowerlines({
|
|
16
|
-
* reactStrictMode: true,
|
|
17
|
-
* })
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @param config - The Next.js configuration to merge with the Powerlines configuration.
|
|
21
|
-
* @returns The merged Next.js configuration.
|
|
22
|
-
*/
|
|
23
|
-
function unplugin(config = {}) {
|
|
24
|
-
return {
|
|
25
|
-
...config,
|
|
26
|
-
webpack(webpackConfig, context) {
|
|
27
|
-
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
28
|
-
result.plugins ??= [];
|
|
29
|
-
result.plugins.push(require_webpack.unplugin(webpackConfig));
|
|
30
|
-
return result;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
2
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
exports.
|
|
3
|
+
var _powerlines_unplugin_next = require("@powerlines/unplugin/next");
|
|
4
|
+
Object.keys(_powerlines_unplugin_next).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_next[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/next.d.cts
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region src/next.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* A Next.js configuration function that integrates Powerlines into the build process.
|
|
6
|
-
*
|
|
7
|
-
* @see https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```js
|
|
11
|
-
* // next.config.js
|
|
12
|
-
* import withPowerlines from 'powerlines/next'
|
|
13
|
-
*
|
|
14
|
-
* export default withPowerlines({
|
|
15
|
-
* reactStrictMode: true,
|
|
16
|
-
* })
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param config - The Next.js configuration to merge with the Powerlines configuration.
|
|
20
|
-
* @returns The merged Next.js configuration.
|
|
21
|
-
*/
|
|
22
|
-
declare function unplugin(config?: NextConfig): NextConfig;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { unplugin as next, unplugin };
|
|
25
|
-
//# sourceMappingURL=next.d.cts.map
|
|
1
|
+
export * from "@powerlines/unplugin/next";
|
package/dist/next.d.mts
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region src/next.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* A Next.js configuration function that integrates Powerlines into the build process.
|
|
6
|
-
*
|
|
7
|
-
* @see https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```js
|
|
11
|
-
* // next.config.js
|
|
12
|
-
* import withPowerlines from 'powerlines/next'
|
|
13
|
-
*
|
|
14
|
-
* export default withPowerlines({
|
|
15
|
-
* reactStrictMode: true,
|
|
16
|
-
* })
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param config - The Next.js configuration to merge with the Powerlines configuration.
|
|
20
|
-
* @returns The merged Next.js configuration.
|
|
21
|
-
*/
|
|
22
|
-
declare function unplugin(config?: NextConfig): NextConfig;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { unplugin as next, unplugin };
|
|
25
|
-
//# sourceMappingURL=next.d.mts.map
|
|
1
|
+
export * from "@powerlines/unplugin/next";
|
package/dist/next.mjs
CHANGED
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "@powerlines/unplugin/next"
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A Next.js configuration function that integrates Powerlines into the build process.
|
|
6
|
-
*
|
|
7
|
-
* @see https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```js
|
|
11
|
-
* // next.config.js
|
|
12
|
-
* import withPowerlines from 'powerlines/next'
|
|
13
|
-
*
|
|
14
|
-
* export default withPowerlines({
|
|
15
|
-
* reactStrictMode: true,
|
|
16
|
-
* })
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param config - The Next.js configuration to merge with the Powerlines configuration.
|
|
20
|
-
* @returns The merged Next.js configuration.
|
|
21
|
-
*/
|
|
22
|
-
function unplugin(config = {}) {
|
|
23
|
-
return {
|
|
24
|
-
...config,
|
|
25
|
-
webpack(webpackConfig, context) {
|
|
26
|
-
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
27
|
-
result.plugins ??= [];
|
|
28
|
-
result.plugins.push(unplugin$1(webpackConfig));
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
export { unplugin as next, unplugin };
|
|
36
|
-
//# sourceMappingURL=next.mjs.map
|
|
3
|
+
export { };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,46 +1,9 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_vite = require('./vite.cjs');
|
|
4
|
-
const require_package = require('./package.cjs');
|
|
5
|
-
const require_webpack = require('./webpack.cjs');
|
|
6
|
-
let _nuxt_kit = require("@nuxt/kit");
|
|
7
1
|
|
|
8
|
-
//#region src/nuxt.ts
|
|
9
|
-
/**
|
|
10
|
-
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
11
|
-
*
|
|
12
|
-
* @see https://nuxt.com/docs/guide/directory-structure/modules
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* // nuxt.config.ts
|
|
17
|
-
* import { defineNuxtConfig } from "@nuxt/kit";
|
|
18
|
-
*
|
|
19
|
-
* export default defineNuxtConfig({
|
|
20
|
-
* modules: [
|
|
21
|
-
* [
|
|
22
|
-
* "powerlines/nuxt",
|
|
23
|
-
* { name: "example-app", ... }
|
|
24
|
-
* ],
|
|
25
|
-
* ],
|
|
26
|
-
* });
|
|
27
|
-
*
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
const unplugin = (0, _nuxt_kit.defineNuxtModule)({
|
|
31
|
-
meta: {
|
|
32
|
-
name: require_package.name,
|
|
33
|
-
version: require_package.version,
|
|
34
|
-
configKey: "powerlines",
|
|
35
|
-
compatibility: { builder: { vite: "^6.0.0" } }
|
|
36
|
-
},
|
|
37
|
-
defaults: {},
|
|
38
|
-
setup(options) {
|
|
39
|
-
(0, _nuxt_kit.addVitePlugin)(() => require_vite.unplugin(options));
|
|
40
|
-
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack.unplugin(options));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
2
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
exports.
|
|
3
|
+
var _powerlines_unplugin_nuxt = require("@powerlines/unplugin/nuxt");
|
|
4
|
+
Object.keys(_powerlines_unplugin_nuxt).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_nuxt[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _$_nuxt_schema0 from "@nuxt/schema";
|
|
3
|
-
|
|
4
|
-
//#region src/nuxt.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
7
|
-
*
|
|
8
|
-
* @see https://nuxt.com/docs/guide/directory-structure/modules
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* // nuxt.config.ts
|
|
13
|
-
* import { defineNuxtConfig } from "@nuxt/kit";
|
|
14
|
-
*
|
|
15
|
-
* export default defineNuxtConfig({
|
|
16
|
-
* modules: [
|
|
17
|
-
* [
|
|
18
|
-
* "powerlines/nuxt",
|
|
19
|
-
* { name: "example-app", ... }
|
|
20
|
-
* ],
|
|
21
|
-
* ],
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare const unplugin: _$_nuxt_schema0.NuxtModule<types_d_exports.UserConfig, types_d_exports.UserConfig, false>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { unplugin as nuxt, unplugin };
|
|
29
|
-
//# sourceMappingURL=nuxt.d.cts.map
|
|
1
|
+
export * from "@powerlines/unplugin/nuxt";
|
package/dist/nuxt.d.mts
CHANGED
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _$_nuxt_schema0 from "@nuxt/schema";
|
|
3
|
-
|
|
4
|
-
//#region src/nuxt.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
7
|
-
*
|
|
8
|
-
* @see https://nuxt.com/docs/guide/directory-structure/modules
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* // nuxt.config.ts
|
|
13
|
-
* import { defineNuxtConfig } from "@nuxt/kit";
|
|
14
|
-
*
|
|
15
|
-
* export default defineNuxtConfig({
|
|
16
|
-
* modules: [
|
|
17
|
-
* [
|
|
18
|
-
* "powerlines/nuxt",
|
|
19
|
-
* { name: "example-app", ... }
|
|
20
|
-
* ],
|
|
21
|
-
* ],
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare const unplugin: _$_nuxt_schema0.NuxtModule<types_d_exports.UserConfig, types_d_exports.UserConfig, false>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { unplugin as nuxt, unplugin };
|
|
29
|
-
//# sourceMappingURL=nuxt.d.mts.map
|
|
1
|
+
export * from "@powerlines/unplugin/nuxt";
|
package/dist/nuxt.mjs
CHANGED
|
@@ -1,44 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { name, version } from "./package.mjs";
|
|
3
|
-
import { unplugin as unplugin$2 } from "./webpack.mjs";
|
|
4
|
-
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
1
|
+
export * from "@powerlines/unplugin/nuxt"
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
9
|
-
*
|
|
10
|
-
* @see https://nuxt.com/docs/guide/directory-structure/modules
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* // nuxt.config.ts
|
|
15
|
-
* import { defineNuxtConfig } from "@nuxt/kit";
|
|
16
|
-
*
|
|
17
|
-
* export default defineNuxtConfig({
|
|
18
|
-
* modules: [
|
|
19
|
-
* [
|
|
20
|
-
* "powerlines/nuxt",
|
|
21
|
-
* { name: "example-app", ... }
|
|
22
|
-
* ],
|
|
23
|
-
* ],
|
|
24
|
-
* });
|
|
25
|
-
*
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
const unplugin = defineNuxtModule({
|
|
29
|
-
meta: {
|
|
30
|
-
name,
|
|
31
|
-
version,
|
|
32
|
-
configKey: "powerlines",
|
|
33
|
-
compatibility: { builder: { vite: "^6.0.0" } }
|
|
34
|
-
},
|
|
35
|
-
defaults: {},
|
|
36
|
-
setup(options) {
|
|
37
|
-
addVitePlugin(() => unplugin$1(options));
|
|
38
|
-
addWebpackPlugin(() => unplugin$2(options));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { unplugin as nuxt, unplugin };
|
|
44
|
-
//# sourceMappingURL=nuxt.mjs.map
|
|
3
|
+
export { };
|
package/dist/package.cjs
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
//#region package.json
|
|
3
|
-
var
|
|
4
|
-
var version = "0.47.3";
|
|
3
|
+
var version = "0.47.7";
|
|
5
4
|
|
|
6
5
|
//#endregion
|
|
7
|
-
Object.defineProperty(exports, 'name', {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return name;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
6
|
Object.defineProperty(exports, 'version', {
|
|
14
7
|
enumerable: true,
|
|
15
8
|
get: function () {
|
package/dist/package.mjs
CHANGED
package/dist/rolldown.cjs
CHANGED
|
@@ -1,49 +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 defu = require("defu");
|
|
5
|
-
let unplugin = require("unplugin");
|
|
6
|
-
let _powerlines_plugin_rolldown_helpers_resolve_options = require("@powerlines/plugin-rolldown/helpers/resolve-options");
|
|
7
|
-
let _powerlines_plugin_rolldown = require("@powerlines/plugin-rolldown");
|
|
8
|
-
_powerlines_plugin_rolldown = require_runtime.__toESM(_powerlines_plugin_rolldown, 1);
|
|
9
1
|
|
|
10
|
-
//#region src/rolldown.ts
|
|
11
|
-
/**
|
|
12
|
-
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
|
13
|
-
*
|
|
14
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* // rollup.config.ts
|
|
19
|
-
* import powerlines from "powerlines/rollup";
|
|
20
|
-
*
|
|
21
|
-
* export default defineConfig({
|
|
22
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
23
|
-
* })
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
const unplugin$1 = (0, unplugin.createRolldownPlugin)(require_unplugin.createUnpluginFactory("rolldown", (api, plugin) => {
|
|
27
|
-
return {
|
|
28
|
-
...plugin,
|
|
29
|
-
rolldown: { async options(options) {
|
|
30
|
-
const merged = (0, defu.defu)(await api.context.getEnvironment(), this);
|
|
31
|
-
return (0, defu.defu)((0, _powerlines_plugin_rolldown_helpers_resolve_options.resolveOptions)(merged), options, api.callHook("rolldown:options", { environment: merged }, options) ?? {});
|
|
32
|
-
} }
|
|
33
|
-
};
|
|
34
|
-
}));
|
|
35
2
|
|
|
36
|
-
|
|
37
|
-
Object.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return
|
|
41
|
-
}
|
|
3
|
+
var _powerlines_unplugin_rolldown = require("@powerlines/unplugin/rolldown");
|
|
4
|
+
Object.keys(_powerlines_unplugin_rolldown).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_rolldown[k]; }
|
|
8
|
+
});
|
|
42
9
|
});
|
|
43
|
-
Object.defineProperty(exports, 'rolldown', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _powerlines_plugin_rolldown.default;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
exports.unplugin = unplugin$1;
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _$rolldown from "rolldown";
|
|
3
|
-
import { RolldownPluginInitialConfig } from "@powerlines/plugin-rolldown/types/plugin";
|
|
4
|
-
|
|
5
|
-
//#region src/rolldown.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
|
-
*
|
|
9
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // rollup.config.ts
|
|
14
|
-
* import powerlines from "powerlines/rollup";
|
|
15
|
-
*
|
|
16
|
-
* export default defineConfig({
|
|
17
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
18
|
-
* })
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare const unplugin: (options: RolldownPluginInitialConfig) => _$rolldown.Plugin<any> | _$rolldown.Plugin<any>[];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { plugin, rolldown, unplugin };
|
|
24
|
-
//# sourceMappingURL=rolldown.d.cts.map
|
|
1
|
+
export * from "@powerlines/unplugin/rolldown";
|
package/dist/rolldown.d.mts
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _$rolldown from "rolldown";
|
|
3
|
-
import { RolldownPluginInitialConfig } from "@powerlines/plugin-rolldown/types/plugin";
|
|
4
|
-
|
|
5
|
-
//#region src/rolldown.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
|
-
*
|
|
9
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // rollup.config.ts
|
|
14
|
-
* import powerlines from "powerlines/rollup";
|
|
15
|
-
*
|
|
16
|
-
* export default defineConfig({
|
|
17
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
18
|
-
* })
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare const unplugin: (options: RolldownPluginInitialConfig) => _$rolldown.Plugin<any> | _$rolldown.Plugin<any>[];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { plugin, rolldown, unplugin };
|
|
24
|
-
//# sourceMappingURL=rolldown.d.mts.map
|
|
1
|
+
export * from "@powerlines/unplugin/rolldown";
|
package/dist/rolldown.mjs
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { defu } from "defu";
|
|
3
|
-
import { createRolldownPlugin } from "unplugin";
|
|
4
|
-
import { resolveOptions } from "@powerlines/plugin-rolldown/helpers/resolve-options";
|
|
5
|
-
import plugin, { default as rolldown } from "@powerlines/plugin-rolldown";
|
|
1
|
+
export * from "@powerlines/unplugin/rolldown"
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
|
10
|
-
*
|
|
11
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* // rollup.config.ts
|
|
16
|
-
* import powerlines from "powerlines/rollup";
|
|
17
|
-
*
|
|
18
|
-
* export default defineConfig({
|
|
19
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
20
|
-
* })
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
const unplugin = createRolldownPlugin(createUnpluginFactory("rolldown", (api, plugin) => {
|
|
24
|
-
return {
|
|
25
|
-
...plugin,
|
|
26
|
-
rolldown: { async options(options) {
|
|
27
|
-
const merged = defu(await api.context.getEnvironment(), this);
|
|
28
|
-
return defu(resolveOptions(merged), options, api.callHook("rolldown:options", { environment: merged }, options) ?? {});
|
|
29
|
-
} }
|
|
30
|
-
};
|
|
31
|
-
}));
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
export { plugin, rolldown, unplugin };
|
|
35
|
-
//# sourceMappingURL=rolldown.mjs.map
|
|
3
|
+
export { };
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,40 +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_rollup = require("@powerlines/plugin-rollup");
|
|
6
|
-
_powerlines_plugin_rollup = require_runtime.__toESM(_powerlines_plugin_rollup, 1);
|
|
7
1
|
|
|
8
|
-
//#region src/rollup.ts
|
|
9
|
-
/**
|
|
10
|
-
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
|
11
|
-
*
|
|
12
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* // rollup.config.ts
|
|
17
|
-
*
|
|
18
|
-
* import powerlines from "powerlines/rollup";
|
|
19
|
-
*
|
|
20
|
-
* export default defineConfig({
|
|
21
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
22
|
-
* })
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
const unplugin$1 = (0, unplugin.createRollupPlugin)(require_unplugin.createUnpluginFactory("rollup"));
|
|
26
2
|
|
|
27
|
-
|
|
28
|
-
Object.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
}
|
|
3
|
+
var _powerlines_unplugin_rollup = require("@powerlines/unplugin/rollup");
|
|
4
|
+
Object.keys(_powerlines_unplugin_rollup).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_rollup[k]; }
|
|
8
|
+
});
|
|
33
9
|
});
|
|
34
|
-
Object.defineProperty(exports, 'rollup', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return _powerlines_plugin_rollup.default;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
exports.unplugin = unplugin$1;
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _$rollup from "rollup";
|
|
3
|
-
import { RollupPluginInitialConfig } from "@powerlines/plugin-rollup/types/plugin";
|
|
4
|
-
|
|
5
|
-
//#region src/rollup.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
|
-
*
|
|
9
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // rollup.config.ts
|
|
14
|
-
*
|
|
15
|
-
* import powerlines from "powerlines/rollup";
|
|
16
|
-
*
|
|
17
|
-
* export default defineConfig({
|
|
18
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
19
|
-
* })
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare const unplugin: (options: RollupPluginInitialConfig) => _$rollup.Plugin<any> | _$rollup.Plugin<any>[];
|
|
23
|
-
//#endregion
|
|
24
|
-
export { plugin, rollup, unplugin };
|
|
25
|
-
//# sourceMappingURL=rollup.d.cts.map
|
|
1
|
+
export * from "@powerlines/unplugin/rollup";
|
package/dist/rollup.d.mts
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _$rollup from "rollup";
|
|
3
|
-
import { RollupPluginInitialConfig } from "@powerlines/plugin-rollup/types/plugin";
|
|
4
|
-
|
|
5
|
-
//#region src/rollup.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
|
-
*
|
|
9
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // rollup.config.ts
|
|
14
|
-
*
|
|
15
|
-
* import powerlines from "powerlines/rollup";
|
|
16
|
-
*
|
|
17
|
-
* export default defineConfig({
|
|
18
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
19
|
-
* })
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare const unplugin: (options: RollupPluginInitialConfig) => _$rollup.Plugin<any> | _$rollup.Plugin<any>[];
|
|
23
|
-
//#endregion
|
|
24
|
-
export { plugin, rollup, unplugin };
|
|
25
|
-
//# sourceMappingURL=rollup.d.mts.map
|
|
1
|
+
export * from "@powerlines/unplugin/rollup";
|
package/dist/rollup.mjs
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { createRollupPlugin } from "unplugin";
|
|
3
|
-
import plugin, { default as rollup } from "@powerlines/plugin-rollup";
|
|
1
|
+
export * from "@powerlines/unplugin/rollup"
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
|
8
|
-
*
|
|
9
|
-
* @see https://rollupjs.org/guide/en/#plugins-overview
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // rollup.config.ts
|
|
14
|
-
*
|
|
15
|
-
* import powerlines from "powerlines/rollup";
|
|
16
|
-
*
|
|
17
|
-
* export default defineConfig({
|
|
18
|
-
* plugins: [powerlines({ name: "example-app", ... })],
|
|
19
|
-
* })
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
const unplugin = createRollupPlugin(createUnpluginFactory("rollup"));
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
export { plugin, rollup, unplugin };
|
|
26
|
-
//# sourceMappingURL=rollup.mjs.map
|
|
3
|
+
export { };
|