@supsign/unplugin-interfaces 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @supsign/unplugin-interfaces
2
+
3
+ Generiert globale Interface-Deklarationen (`interfaces.d.ts`) und einen `index.ts` aus allen `export interface`-Definitionen in einem Verzeichnis.
4
+
5
+ ## Installation
6
+ ```bash
7
+ pnpm add -D @supsign/unplugin-interfaces
@@ -0,0 +1,6 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+
3
+ //#region src/astro.d.ts
4
+ declare const _default: (options: Options) => any;
5
+ //#endregion
6
+ export { _default as default };
package/dist/astro.js ADDED
@@ -0,0 +1,13 @@
1
+ import { src_default } from "./src-CskmyrvV.js";
2
+
3
+ //#region src/astro.ts
4
+ var astro_default = (options) => ({
5
+ name: "unplugin-starter",
6
+ hooks: { "astro:config:setup": async (astro) => {
7
+ astro.config.vite.plugins ||= [];
8
+ astro.config.vite.plugins.push(src_default.vite(options));
9
+ } }
10
+ });
11
+
12
+ //#endregion
13
+ export { astro_default as default };
@@ -0,0 +1,7 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+ import * as esbuild0 from "esbuild";
3
+
4
+ //#region src/esbuild.d.ts
5
+ declare const _default: (options?: Options | undefined) => esbuild0.Plugin;
6
+ //#endregion
7
+ export { _default as default };
@@ -0,0 +1,8 @@
1
+ import { unpluginFactory } from "./src-CskmyrvV.js";
2
+ import { createEsbuildPlugin } from "unplugin";
3
+
4
+ //#region src/esbuild.ts
5
+ var esbuild_default = createEsbuildPlugin(unpluginFactory);
6
+
7
+ //#endregion
8
+ export { esbuild_default as default };
package/dist/farm.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+
3
+ //#region src/farm.d.ts
4
+ declare const _default: (options?: Options | undefined) => JsPlugin;
5
+ //#endregion
6
+ export { _default as default };
package/dist/farm.js ADDED
@@ -0,0 +1,8 @@
1
+ import { unpluginFactory } from "./src-CskmyrvV.js";
2
+ import { createFarmPlugin } from "unplugin";
3
+
4
+ //#region src/farm.ts
5
+ var farm_default = createFarmPlugin(unpluginFactory);
6
+
7
+ //#endregion
8
+ export { farm_default as default };
@@ -0,0 +1,17 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+ import * as unplugin0 from "unplugin";
3
+ import { UnpluginFactory } from "unplugin";
4
+ import * as esbuild0 from "esbuild";
5
+ import * as vite0 from "vite";
6
+ import * as rollup0 from "rollup";
7
+ import * as webpack0 from "webpack";
8
+
9
+ //#region src/index.d.ts
10
+ declare const unpluginFactory: UnpluginFactory<Options | undefined>;
11
+ declare const unplugin: unplugin0.UnpluginInstance<Options | undefined, boolean>;
12
+ declare const vite: (options?: Options | undefined) => vite0.Plugin<any> | vite0.Plugin<any>[];
13
+ declare const rollup: (options?: Options | undefined) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
14
+ declare const webpack: (options?: Options | undefined) => webpack0.WebpackPluginInstance;
15
+ declare const esbuild: (options?: Options | undefined) => esbuild0.Plugin;
16
+ //#endregion
17
+ export { unplugin as default, unplugin, esbuild, rollup, unpluginFactory, vite, webpack };
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { esbuild, rollup, src_default, unplugin, unpluginFactory, vite, webpack } from "./src-CskmyrvV.js";
2
+
3
+ export { src_default as default, esbuild, rollup, unplugin, unpluginFactory, vite, webpack };
package/dist/nuxt.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+ import * as _nuxt_schema0 from "@nuxt/schema";
3
+
4
+ //#region src/nuxt.d.ts
5
+ interface ModuleOptions extends Options {}
6
+ declare const _default: _nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
+ //#endregion
8
+ export { ModuleOptions, _default as default };
package/dist/nuxt.js ADDED
@@ -0,0 +1,20 @@
1
+ import "./src-CskmyrvV.js";
2
+ import { vite_default } from "./vite-B3qRJmDz.js";
3
+ import { webpack_default } from "./webpack-Do7Ul9CV.js";
4
+ import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
5
+
6
+ //#region src/nuxt.ts
7
+ var nuxt_default = defineNuxtModule({
8
+ meta: {
9
+ name: "nuxt-unplugin-starter",
10
+ configKey: "unpluginStarter"
11
+ },
12
+ defaults: {},
13
+ setup(options, _nuxt) {
14
+ addVitePlugin(() => vite_default(options));
15
+ addWebpackPlugin(() => webpack_default(options));
16
+ }
17
+ });
18
+
19
+ //#endregion
20
+ export { nuxt_default as default };
@@ -0,0 +1,7 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+ import * as rollup1 from "rollup";
3
+
4
+ //#region src/rollup.d.ts
5
+ declare const _default: (options?: Options | undefined) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
6
+ //#endregion
7
+ export { _default as default };
package/dist/rollup.js ADDED
@@ -0,0 +1,8 @@
1
+ import { unpluginFactory } from "./src-CskmyrvV.js";
2
+ import { createRollupPlugin } from "unplugin";
3
+
4
+ //#region src/rollup.ts
5
+ var rollup_default = createRollupPlugin(unpluginFactory);
6
+
7
+ //#endregion
8
+ export { rollup_default as default };
@@ -0,0 +1,6 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+
3
+ //#region src/rspack.d.ts
4
+ declare const _default: (options?: Options | undefined) => RspackPluginInstance;
5
+ //#endregion
6
+ export { _default as default };
package/dist/rspack.js ADDED
@@ -0,0 +1,8 @@
1
+ import { unpluginFactory } from "./src-CskmyrvV.js";
2
+ import { createRspackPlugin } from "unplugin";
3
+
4
+ //#region src/rspack.ts
5
+ var rspack_default = createRspackPlugin(unpluginFactory);
6
+
7
+ //#endregion
8
+ export { rspack_default as default };