morghulis 1.0.61 → 2.0.1

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 @@
1
+ # Vue Component npm Example
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ msg: {
3
+ type: StringConstructor;
4
+ };
5
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
+ msg: {
7
+ type: StringConstructor;
8
+ };
9
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import MyComp from './MyComp.vue';
2
+ export { MyComp };
@@ -1 +1 @@
1
- .my-button[data-v-e56ad9ce]{color:red}
1
+ h1[data-v-3bb2c36e]{color:#7e22ce}
@@ -0,0 +1,27 @@
1
+ import { defineComponent as p, ref as l, createElementBlock as a, openBlock as m, Fragment as u, createElementVNode as c, toDisplayString as s } from "vue";
2
+ const _ = { class: "card" }, i = /* @__PURE__ */ p({
3
+ __name: "MyComp",
4
+ props: {
5
+ msg: { type: String }
6
+ },
7
+ setup(t) {
8
+ const e = l(0);
9
+ return (n, o) => (m(), a(u, null, [
10
+ c("h1", null, s(t.msg), 1),
11
+ c("div", _, [
12
+ c("button", {
13
+ type: "button",
14
+ onClick: o[0] || (o[0] = (r) => e.value++)
15
+ }, "count is " + s(e.value), 1)
16
+ ])
17
+ ], 64));
18
+ }
19
+ }), d = (t, e) => {
20
+ const n = t.__vccOpts || t;
21
+ for (const [o, r] of e)
22
+ n[o] = r;
23
+ return n;
24
+ }, f = /* @__PURE__ */ d(i, [["__scopeId", "data-v-3bb2c36e"]]);
25
+ export {
26
+ f as MyComp
27
+ };
@@ -0,0 +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 r={class:"card"},p=((n,o)=>{const c=n.__vccOpts||n;for(const[s,i]of o)c[s]=i;return c})(e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const o=e.ref(0);return(c,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",null,e.toDisplayString(n.msg),1),e.createElementVNode("div",r,[e.createElementVNode("button",{type:"button",onClick:s[0]||(s[0]=i=>o.value++)},"count is "+e.toDisplayString(o.value),1)])],64))}}),[["__scopeId","data-v-3bb2c36e"]]);t.MyComp=p,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,44 +1,31 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "1.0.61",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
- "main": "./dist/morghulis.umd.js",
6
- "module": "./dist/morghulis.es.js",
7
- "types": "./dist/types/index.d.ts",
5
+ "files": ["dist"],
6
+ "main": "./dist/morghulis.umd.cjs",
7
+ "module": "./dist/morghulis.js",
8
+ "types": "./dist/morghulis.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
- "import": "./dist/morghulis.es.js",
11
- "require": "./distmorghulis.umd.js"
11
+ "import": "./dist/morghulis.js",
12
+ "require": "./dist/morghulis.umd.js"
12
13
  },
13
- "./style.css": "./dist/style.css"
14
+ "./dist/style.css": "./dist/style.css"
14
15
  },
15
- "files": [
16
- "dist",
17
- "style.css"
18
- ],
19
16
  "scripts": {
20
17
  "dev": "vite",
21
- "build": "vite build",
22
- "type-check": "vue-tsc --noEmit"
18
+ "build": "vite build && vue-tsc --emitDeclarationOnly",
19
+ "preview": "vite preview"
23
20
  },
24
21
  "dependencies": {
25
- "element-plus": "^2.9.8",
26
- "vite-plugin-dts": "^4.5.3",
27
22
  "vue": "^3.5.13"
28
23
  },
29
24
  "devDependencies": {
30
- "@tsconfig/node22": "^22.0.1",
31
- "@types/node": "^22.14.0",
25
+ "@types/node": "^22.14.0",
32
26
  "@vitejs/plugin-vue": "^5.2.3",
33
- "@vue/tsconfig": "^0.7.0",
34
- "npm-run-all2": "^7.0.2",
35
27
  "typescript": "~5.8.0",
36
28
  "vite": "^6.2.4",
37
- "vite-plugin-vue-devtools": "^7.7.2",
38
29
  "vue-tsc": "^2.2.8"
39
30
  }
40
31
  }
41
-
42
-
43
-
44
-
@@ -1,35 +0,0 @@
1
- import { defineComponent as c, resolveComponent as a, createBlock as p, openBlock as r, withCtx as l, createElementVNode as _, toDisplayString as u } from "vue";
2
- const i = { class: "my-button" }, m = /* @__PURE__ */ c({
3
- __name: "MyButton",
4
- props: {
5
- text: { default: "hello" }
6
- },
7
- setup(t) {
8
- return (e, o) => {
9
- const n = a("el-button");
10
- return r(), p(n, {
11
- type: "primary",
12
- size: "small",
13
- plain: ""
14
- }, {
15
- default: l(() => [
16
- _("span", i, u(e.text), 1)
17
- ]),
18
- _: 1
19
- });
20
- };
21
- }
22
- }), d = (t, e) => {
23
- const o = t.__vccOpts || t;
24
- for (const [n, s] of e)
25
- o[n] = s;
26
- return o;
27
- }, f = /* @__PURE__ */ d(m, [["__scopeId", "data-v-e56ad9ce"]]), x = {
28
- install(t) {
29
- t.component("MyButton", f);
30
- }
31
- };
32
- export {
33
- f as MyButton,
34
- x as default
35
- };
@@ -1 +0,0 @@
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 l={class:"my-button"},c=((n,o)=>{const s=n.__vccOpts||n;for(const[i,r]of o)s[i]=r;return s})(e.defineComponent({__name:"MyButton",props:{text:{default:"hello"}},setup(n){return(o,s)=>{const i=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(i,{type:"primary",size:"small",plain:""},{default:e.withCtx(()=>[e.createElementVNode("span",l,e.toDisplayString(o.text),1)]),_:1})}}}),[["__scopeId","data-v-e56ad9ce"]]),p={install(n){n.component("MyButton",c)}};t.MyButton=c,t.default=p,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- text?: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
- text: string;
6
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { App } from 'vue';
2
- import { default as MyButton } from './MyButton';
3
- export { MyButton };
4
- declare const _default: {
5
- install(app: App): void;
6
- };
7
- export default _default;
package/style.css DELETED
File without changes