morghulis 1.0.8 → 1.0.10

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/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # morghulis
2
+
3
+ This template should help get you started developing with Vue 3 in Vite.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8
+
9
+ ## Type Support for `.vue` Imports in TS
10
+
11
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
12
+
13
+ ## Customize configuration
14
+
15
+ See [Vite Configuration Reference](https://vite.dev/config/).
16
+
17
+ ## Project Setup
18
+
19
+ ```sh
20
+ npm install
21
+ ```
22
+
23
+ ### Compile and Hot-Reload for Development
24
+
25
+ ```sh
26
+ npm run dev
27
+ ```
28
+
29
+ ### Type-Check, Compile and Minify for Production
30
+
31
+ ```sh
32
+ npm run build
33
+ ```
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=App.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";AAwDA,wBAMG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=LypButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LypButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/LypButton.vue"],"names":[],"mappings":"AAKA;;AA6BA,wBAEG"}
@@ -1,2 +1,8 @@
1
- import { default as MyComponent } from './MyComponent.vue';
2
- export default MyComponent;
1
+ import { App } from 'vue';
2
+ import { default as LypButton } from './LypButton.vue';
3
+ export { LypButton };
4
+ declare const _default: {
5
+ install(Vue: App): void;
6
+ };
7
+ export default _default;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,CAAC;;iBAIN,GAAG;;AADlB,wBAIE"}
Binary file
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA"}
@@ -1 +1 @@
1
- .my-component[data-v-7a51d697]{padding:10px;background-color:#f0f0f0;border:1px solid #ddd;border-radius:4px}
1
+ .my-button{padding:10px 20px;border:none;background-color:#42b983;color:#fff;font-size:16px;border-radius:5px;cursor:pointer}
@@ -1,26 +1,23 @@
1
- import { defineComponent as c, createElementBlock as r, openBlock as p, createTextVNode as a, renderSlot as m, toDisplayString as _ } from "vue";
2
- const d = { class: "my-component" }, i = /* @__PURE__ */ c({
3
- __name: "MyComponent",
4
- props: {
5
- msg: {}
6
- },
7
- setup(o) {
8
- return (t, e) => (p(), r("div", d, [
9
- a(" this is " + _(t.msg) + ": ", 1),
10
- m(t.$slots, "default", {}, void 0, !0)
11
- ]));
1
+ import { defineComponent as c, createElementBlock as r, openBlock as p, renderSlot as a } from "vue";
2
+ const l = c({
3
+ name: "LypButton"
4
+ }), u = (t, n) => {
5
+ const o = t.__vccOpts || t;
6
+ for (const [e, s] of n)
7
+ o[e] = s;
8
+ return o;
9
+ }, _ = { class: "my-button" };
10
+ function d(t, n, o, e, s, i) {
11
+ return p(), r("button", _, [
12
+ a(t.$slots, "default")
13
+ ]);
14
+ }
15
+ const f = /* @__PURE__ */ u(l, [["render", d]]), y = {
16
+ install(t) {
17
+ t.component("LypButton", f);
12
18
  }
13
- }), l = (o, t) => {
14
- const e = o.__vccOpts || o;
15
- for (const [n, s] of t)
16
- e[n] = s;
17
- return e;
18
- }, f = /* @__PURE__ */ l(i, [["__scopeId", "data-v-7a51d697"]]), u = (o) => {
19
- o.component("MyComponent", f);
20
- }, v = {
21
- install: u
22
19
  };
23
20
  export {
24
- f as MyComponent,
25
- v as default
21
+ f as LypButton,
22
+ y as default
26
23
  };
@@ -1 +1 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.morghulis={},t.Vue))})(this,function(t,e){"use strict";const c={class:"my-component"},i=((n,o)=>{const s=n.__vccOpts||n;for(const[d,p]of o)s[d]=p;return s})(e.defineComponent({__name:"MyComponent",props:{msg:{}},setup(n){return(o,s)=>(e.openBlock(),e.createElementBlock("div",c,[e.createTextVNode(" this is "+e.toDisplayString(o.msg)+": ",1),e.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-7a51d697"]]),r={install:n=>{n.component("MyComponent",i)}};t.MyComponent=i,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.morghulis={},e.Vue))})(this,function(e,t){"use strict";const r=t.defineComponent({name:"LypButton"}),d=(n,u)=>{const o=n.__vccOpts||n;for(const[i,c]of u)o[i]=c;return o},f={class:"my-button"};function p(n,u,o,i,c,a){return t.openBlock(),t.createElementBlock("button",f,[t.renderSlot(n.$slots,"default")])}const s=d(r,[["render",p]]),l={install(n){n.component("LypButton",s)}};e.LypButton=s,e.default=l,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,34 +1,22 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "1.0.8",
4
- "main": "dist/morghulis.umd.js",
3
+ "version": "1.0.10",
4
+ "main": "dist/morghulis.cjs.js",
5
5
  "module": "dist/morghulis.es.js",
6
6
  "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/morghulis.es.js",
10
- "require": "./dist/morghulis.umd.js"
11
- }
12
- },
13
- "files": [
14
- "dist"
15
- ],
7
+ "files": ["dist"],
16
8
  "scripts": {
17
- "build": "vite build"
18
- },
19
- "keywords": [],
20
- "author": "",
21
- "license": "ISC",
22
- "description": "",
23
- "peerDependencies": {
24
- "vue": "^3.5.13"
9
+ "build": "vite build",
10
+ "dev": "vite"
25
11
  },
12
+ "license": "MIT",
26
13
  "devDependencies": {
14
+ "@vitejs/plugin-vue": "^5.2.1",
15
+ "typescript": "^5.7.3",
27
16
  "vite": "^6.1.0",
28
- "vue": "^3.5.13"
17
+ "vite-plugin-dts": "^4.5.0"
29
18
  },
30
19
  "dependencies": {
31
- "@vitejs/plugin-vue": "^5.2.1",
32
- "vite-plugin-dts": "^4.5.0"
20
+ "vue": "^3.5.13"
33
21
  }
34
22
  }
@@ -1,20 +0,0 @@
1
- type __VLS_Props = {
2
- msg?: string;
3
- };
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
- slots: {
7
- default?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: HTMLDivElement;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
- export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { App } from 'vue';
2
- import { default as MyComponent } from './components/MyComponent.vue';
3
- export { MyComponent };
4
- declare const _default: {
5
- install: (app: App) => void;
6
- };
7
- export default _default;