Skip to content

Commit 13a097d

Browse files
Bundle
1 parent 8fd5239 commit 13a097d

File tree

10 files changed

+59
-2
lines changed

10 files changed

+59
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pnpm-debug.log*
88
lerna-debug.log*
99

1010
node_modules
11-
dist
1211
dist-ssr
1312
*.local
1413

dist/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Plugin } from 'vue';
2+
declare const _default: Plugin<any[]>;
3+
export default _default;

dist/plugin/buildOutput.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { DefaultStyles, OptionsSettings } from '@/types';
2+
declare const _default: {
3+
run(options: OptionsSettings, defaultStyles: DefaultStyles): OptionsSettings;
4+
};
5+
export default _default;

dist/plugin/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as UnicornLog } from '@/plugin/unicornLog';

dist/plugin/unicornLog.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { OptionsSettings } from '@/types';
2+
declare const UnicornLog: (options?: OptionsSettings) => void;
3+
export default UnicornLog;

dist/plugin/validateOptions.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { OptionsSettings } from '@/types';
2+
declare const _default: {
3+
run(options: OptionsSettings, callback: () => void): boolean;
4+
};
5+
export default _default;

dist/types/index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export interface OptionsSettings {
2+
array?: string[] | number[];
3+
defaultStyles?: object;
4+
disabled?: boolean;
5+
globalOptions?: boolean;
6+
logOutput?: string[];
7+
logPrefix?: boolean | string;
8+
magical?: boolean;
9+
name?: string;
10+
objects?: object;
11+
styles?: string;
12+
text?: string;
13+
type?: string;
14+
}
15+
export interface DefaultStyles {
16+
goNuts?: string[];
17+
info?: string[];
18+
log?: string[];
19+
}

dist/vue3-unicorn-log.es.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue3-unicorn-log.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": false,
66
"main": "dist/vue3-unicorn-log.js",
77
"module": "dist/vue3-unicorn-log.es.js",
8-
"types": "dist/plugin/index.d.ts",
8+
"types": "dist/types/index.d.ts",
99
"scripts": {
1010
"dev": "vite",
1111
"watch": "pnpm dev",

0 commit comments

Comments
 (0)