longmo-unplugin-info 1.0.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 +508 -0
- package/client.d.ts +106 -0
- package/dist/astro.cjs +25 -0
- package/dist/astro.d.cts +11 -0
- package/dist/astro.d.mts +11 -0
- package/dist/astro.d.ts +11 -0
- package/dist/astro.mjs +23 -0
- package/dist/esbuild.cjs +16 -0
- package/dist/esbuild.d.cts +7 -0
- package/dist/esbuild.d.mts +7 -0
- package/dist/esbuild.d.ts +7 -0
- package/dist/esbuild.mjs +14 -0
- package/dist/index.cjs +16 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.mjs +10 -0
- package/dist/nuxt.cjs +43 -0
- package/dist/nuxt.d.cts +16 -0
- package/dist/nuxt.d.mts +16 -0
- package/dist/nuxt.d.ts +16 -0
- package/dist/nuxt.mjs +41 -0
- package/dist/rollup.cjs +16 -0
- package/dist/rollup.d.cts +7 -0
- package/dist/rollup.d.mts +7 -0
- package/dist/rollup.d.ts +7 -0
- package/dist/rollup.mjs +14 -0
- package/dist/rspack.cjs +16 -0
- package/dist/rspack.d.cts +7 -0
- package/dist/rspack.d.mts +7 -0
- package/dist/rspack.d.ts +7 -0
- package/dist/rspack.mjs +14 -0
- package/dist/shared/longmo-unplugin-info.B4uHFilH.mjs +609 -0
- package/dist/shared/longmo-unplugin-info.D5mpeSYM.cjs +619 -0
- package/dist/shared/longmo-unplugin-info.zS6I--Tu.d.cts +69 -0
- package/dist/shared/longmo-unplugin-info.zS6I--Tu.d.mts +69 -0
- package/dist/shared/longmo-unplugin-info.zS6I--Tu.d.ts +69 -0
- package/dist/vite.cjs +16 -0
- package/dist/vite.d.cts +7 -0
- package/dist/vite.d.mts +7 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.mjs +14 -0
- package/dist/webpack.cjs +16 -0
- package/dist/webpack.d.cts +7 -0
- package/dist/webpack.d.mts +7 -0
- package/dist/webpack.d.ts +7 -0
- package/dist/webpack.mjs +14 -0
- package/package.json +168 -0
package/dist/astro.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import VitePlugin from './vite.mjs';
|
|
2
|
+
import './shared/longmo-unplugin-info.B4uHFilH.mjs';
|
|
3
|
+
import 'node:path';
|
|
4
|
+
import 'node:process';
|
|
5
|
+
import 'unplugin';
|
|
6
|
+
import 'ci-info';
|
|
7
|
+
import 'simple-git';
|
|
8
|
+
import 'git-url-parse';
|
|
9
|
+
import 'node:child_process';
|
|
10
|
+
import 'node:util';
|
|
11
|
+
import 'node:fs';
|
|
12
|
+
|
|
13
|
+
const astro = (options = {}) => ({
|
|
14
|
+
name: "unplugin-info",
|
|
15
|
+
hooks: {
|
|
16
|
+
"astro:config:setup": async (astro) => {
|
|
17
|
+
astro.config.vite.plugins ||= [];
|
|
18
|
+
astro.config.vite.plugins.push(VitePlugin(options));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export { astro as default };
|
package/dist/esbuild.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./shared/longmo-unplugin-info.D5mpeSYM.cjs');
|
|
4
|
+
require('node:path');
|
|
5
|
+
require('node:process');
|
|
6
|
+
require('unplugin');
|
|
7
|
+
require('ci-info');
|
|
8
|
+
require('simple-git');
|
|
9
|
+
require('git-url-parse');
|
|
10
|
+
require('node:child_process');
|
|
11
|
+
require('node:util');
|
|
12
|
+
require('node:fs');
|
|
13
|
+
|
|
14
|
+
const esbuild = index.UnpluginInfo.esbuild;
|
|
15
|
+
|
|
16
|
+
module.exports = esbuild;
|
package/dist/esbuild.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { U as UnpluginInfo } from './shared/longmo-unplugin-info.B4uHFilH.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:process';
|
|
4
|
+
import 'unplugin';
|
|
5
|
+
import 'ci-info';
|
|
6
|
+
import 'simple-git';
|
|
7
|
+
import 'git-url-parse';
|
|
8
|
+
import 'node:child_process';
|
|
9
|
+
import 'node:util';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
|
|
12
|
+
const esbuild = UnpluginInfo.esbuild;
|
|
13
|
+
|
|
14
|
+
export { esbuild as default };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./shared/longmo-unplugin-info.D5mpeSYM.cjs');
|
|
4
|
+
require('node:path');
|
|
5
|
+
require('node:process');
|
|
6
|
+
require('unplugin');
|
|
7
|
+
require('ci-info');
|
|
8
|
+
require('simple-git');
|
|
9
|
+
require('git-url-parse');
|
|
10
|
+
require('node:child_process');
|
|
11
|
+
require('node:util');
|
|
12
|
+
require('node:fs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.UnpluginInfo = index.UnpluginInfo;
|
package/dist/index.d.cts
ADDED
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { U as UnpluginInfo } from './shared/longmo-unplugin-info.B4uHFilH.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:process';
|
|
4
|
+
import 'unplugin';
|
|
5
|
+
import 'ci-info';
|
|
6
|
+
import 'simple-git';
|
|
7
|
+
import 'git-url-parse';
|
|
8
|
+
import 'node:child_process';
|
|
9
|
+
import 'node:util';
|
|
10
|
+
import 'node:fs';
|
package/dist/nuxt.cjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const kit = require('@nuxt/kit');
|
|
4
|
+
const index = require('./shared/longmo-unplugin-info.D5mpeSYM.cjs');
|
|
5
|
+
require('node:path');
|
|
6
|
+
require('node:process');
|
|
7
|
+
require('unplugin');
|
|
8
|
+
require('ci-info');
|
|
9
|
+
require('simple-git');
|
|
10
|
+
require('git-url-parse');
|
|
11
|
+
require('node:child_process');
|
|
12
|
+
require('node:util');
|
|
13
|
+
require('node:fs');
|
|
14
|
+
|
|
15
|
+
const nuxtModule = kit.defineNuxtModule({
|
|
16
|
+
meta: {
|
|
17
|
+
// Usually the npm package name of your module
|
|
18
|
+
name: "unplugin-info/nuxt",
|
|
19
|
+
// The key in `nuxt.config` that holds your module options
|
|
20
|
+
configKey: "info",
|
|
21
|
+
// Compatibility constraints
|
|
22
|
+
compatibility: {
|
|
23
|
+
// Semver version of supported nuxt versions
|
|
24
|
+
nuxt: ">=3.0.0"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
// Default configuration options for your module, can also be a function returning those
|
|
28
|
+
defaults: {},
|
|
29
|
+
// Shorthand sugar to register Nuxt hooks
|
|
30
|
+
hooks: {},
|
|
31
|
+
setup(options = {}, nuxt) {
|
|
32
|
+
nuxt.hook("webpack:config", async (config) => {
|
|
33
|
+
config.plugins = config.plugins || [];
|
|
34
|
+
config.plugins.unshift(index.UnpluginInfo.webpack(options));
|
|
35
|
+
});
|
|
36
|
+
nuxt.hook("vite:extendConfig", async (config) => {
|
|
37
|
+
config.plugins = config.plugins || [];
|
|
38
|
+
config.plugins.push(index.UnpluginInfo.vite(options));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
module.exports = nuxtModule;
|
package/dist/nuxt.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NuxtModule } from '@nuxt/schema';
|
|
2
|
+
import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.cjs';
|
|
3
|
+
import 'simple-git';
|
|
4
|
+
|
|
5
|
+
declare const nuxtModule: NuxtModule<Options>;
|
|
6
|
+
|
|
7
|
+
declare module '@nuxt/schema' {
|
|
8
|
+
interface NuxtConfig {
|
|
9
|
+
info?: Options;
|
|
10
|
+
}
|
|
11
|
+
interface NuxtOptions {
|
|
12
|
+
info?: Options;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export = nuxtModule;
|
package/dist/nuxt.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NuxtModule } from '@nuxt/schema';
|
|
2
|
+
import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.mjs';
|
|
3
|
+
import 'simple-git';
|
|
4
|
+
|
|
5
|
+
declare const nuxtModule: NuxtModule<Options>;
|
|
6
|
+
|
|
7
|
+
declare module '@nuxt/schema' {
|
|
8
|
+
interface NuxtConfig {
|
|
9
|
+
info?: Options;
|
|
10
|
+
}
|
|
11
|
+
interface NuxtOptions {
|
|
12
|
+
info?: Options;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { nuxtModule as default };
|
package/dist/nuxt.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NuxtModule } from '@nuxt/schema';
|
|
2
|
+
import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.js';
|
|
3
|
+
import 'simple-git';
|
|
4
|
+
|
|
5
|
+
declare const nuxtModule: NuxtModule<Options>;
|
|
6
|
+
|
|
7
|
+
declare module '@nuxt/schema' {
|
|
8
|
+
interface NuxtConfig {
|
|
9
|
+
info?: Options;
|
|
10
|
+
}
|
|
11
|
+
interface NuxtOptions {
|
|
12
|
+
info?: Options;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export = nuxtModule;
|
package/dist/nuxt.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineNuxtModule } from '@nuxt/kit';
|
|
2
|
+
import { U as UnpluginInfo } from './shared/longmo-unplugin-info.B4uHFilH.mjs';
|
|
3
|
+
import 'node:path';
|
|
4
|
+
import 'node:process';
|
|
5
|
+
import 'unplugin';
|
|
6
|
+
import 'ci-info';
|
|
7
|
+
import 'simple-git';
|
|
8
|
+
import 'git-url-parse';
|
|
9
|
+
import 'node:child_process';
|
|
10
|
+
import 'node:util';
|
|
11
|
+
import 'node:fs';
|
|
12
|
+
|
|
13
|
+
const nuxtModule = defineNuxtModule({
|
|
14
|
+
meta: {
|
|
15
|
+
// Usually the npm package name of your module
|
|
16
|
+
name: "unplugin-info/nuxt",
|
|
17
|
+
// The key in `nuxt.config` that holds your module options
|
|
18
|
+
configKey: "info",
|
|
19
|
+
// Compatibility constraints
|
|
20
|
+
compatibility: {
|
|
21
|
+
// Semver version of supported nuxt versions
|
|
22
|
+
nuxt: ">=3.0.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
// Default configuration options for your module, can also be a function returning those
|
|
26
|
+
defaults: {},
|
|
27
|
+
// Shorthand sugar to register Nuxt hooks
|
|
28
|
+
hooks: {},
|
|
29
|
+
setup(options = {}, nuxt) {
|
|
30
|
+
nuxt.hook("webpack:config", async (config) => {
|
|
31
|
+
config.plugins = config.plugins || [];
|
|
32
|
+
config.plugins.unshift(UnpluginInfo.webpack(options));
|
|
33
|
+
});
|
|
34
|
+
nuxt.hook("vite:extendConfig", async (config) => {
|
|
35
|
+
config.plugins = config.plugins || [];
|
|
36
|
+
config.plugins.push(UnpluginInfo.vite(options));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export { nuxtModule as default };
|
package/dist/rollup.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./shared/longmo-unplugin-info.D5mpeSYM.cjs');
|
|
4
|
+
require('node:path');
|
|
5
|
+
require('node:process');
|
|
6
|
+
require('unplugin');
|
|
7
|
+
require('ci-info');
|
|
8
|
+
require('simple-git');
|
|
9
|
+
require('git-url-parse');
|
|
10
|
+
require('node:child_process');
|
|
11
|
+
require('node:util');
|
|
12
|
+
require('node:fs');
|
|
13
|
+
|
|
14
|
+
const rollup = index.UnpluginInfo.rollup;
|
|
15
|
+
|
|
16
|
+
module.exports = rollup;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as rollup from 'rollup';
|
|
2
|
+
import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.mjs';
|
|
3
|
+
import 'simple-git';
|
|
4
|
+
|
|
5
|
+
declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
|
|
6
|
+
|
|
7
|
+
export { _default as default };
|
package/dist/rollup.d.ts
ADDED
package/dist/rollup.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { U as UnpluginInfo } from './shared/longmo-unplugin-info.B4uHFilH.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:process';
|
|
4
|
+
import 'unplugin';
|
|
5
|
+
import 'ci-info';
|
|
6
|
+
import 'simple-git';
|
|
7
|
+
import 'git-url-parse';
|
|
8
|
+
import 'node:child_process';
|
|
9
|
+
import 'node:util';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
|
|
12
|
+
const rollup = UnpluginInfo.rollup;
|
|
13
|
+
|
|
14
|
+
export { rollup as default };
|
package/dist/rspack.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./shared/longmo-unplugin-info.D5mpeSYM.cjs');
|
|
4
|
+
require('node:path');
|
|
5
|
+
require('node:process');
|
|
6
|
+
require('unplugin');
|
|
7
|
+
require('ci-info');
|
|
8
|
+
require('simple-git');
|
|
9
|
+
require('git-url-parse');
|
|
10
|
+
require('node:child_process');
|
|
11
|
+
require('node:util');
|
|
12
|
+
require('node:fs');
|
|
13
|
+
|
|
14
|
+
const rspack = index.UnpluginInfo.rspack;
|
|
15
|
+
|
|
16
|
+
module.exports = rspack;
|
package/dist/rspack.d.ts
ADDED
package/dist/rspack.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { U as UnpluginInfo } from './shared/longmo-unplugin-info.B4uHFilH.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:process';
|
|
4
|
+
import 'unplugin';
|
|
5
|
+
import 'ci-info';
|
|
6
|
+
import 'simple-git';
|
|
7
|
+
import 'git-url-parse';
|
|
8
|
+
import 'node:child_process';
|
|
9
|
+
import 'node:util';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
|
|
12
|
+
const rspack = UnpluginInfo.rspack;
|
|
13
|
+
|
|
14
|
+
export { rspack as default };
|