@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 +21 -0
- package/README.md +7 -0
- package/dist/astro.d.ts +6 -0
- package/dist/astro.js +13 -0
- package/dist/esbuild.d.ts +7 -0
- package/dist/esbuild.js +8 -0
- package/dist/farm.d.ts +6 -0
- package/dist/farm.js +8 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +3 -0
- package/dist/nuxt.d.ts +8 -0
- package/dist/nuxt.js +20 -0
- package/dist/rollup.d.ts +7 -0
- package/dist/rollup.js +8 -0
- package/dist/rspack.d.ts +6 -0
- package/dist/rspack.js +8 -0
- package/dist/src-CskmyrvV.js +1636 -0
- package/dist/types-BVbGtSvv.d.ts +17 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +1 -0
- package/dist/vite-B3qRJmDz.js +8 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +4 -0
- package/dist/webpack-Do7Ul9CV.js +8 -0
- package/dist/webpack.d.ts +7 -0
- package/dist/webpack.js +4 -0
- package/package.json +112 -0
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
package/dist/astro.d.ts
ADDED
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 };
|
package/dist/esbuild.js
ADDED
package/dist/farm.d.ts
ADDED
package/dist/farm.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -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
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 };
|
package/dist/rollup.d.ts
ADDED
|
@@ -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
package/dist/rspack.d.ts
ADDED
package/dist/rspack.js
ADDED