@kengic/vue 0.0.2-beta.5 → 0.0.2-beta.8

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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18
package/dist/index.js CHANGED
@@ -1,55 +1,55 @@
1
- import { defineComponent as c, defineProps as a, createVNode as n, openBlock as p, createElementBlock as i, Fragment as m, createElementVNode as u, toDisplayString as d, unref as o, withCtx as f, createTextVNode as _ } from "vue";
1
+ import { defineComponent as c, createVNode as n, openBlock as p, createElementBlock as s, Fragment as m, createElementVNode as i, toDisplayString as u, unref as o, withCtx as d, createTextVNode as _ } from "vue";
2
2
  import { Button as l } from "ant-design-vue";
3
- const s = /* @__PURE__ */ c({
4
- setup() {
5
- const e = a({
6
- name: String
7
- });
3
+ const a = c({
4
+ props: {
5
+ name: String
6
+ },
7
+ setup(e) {
8
8
  return () => n(l, {
9
9
  type: "ghost"
10
10
  }, {
11
11
  default: () => [e.name]
12
12
  });
13
13
  }
14
- }), g = /* @__PURE__ */ c({
14
+ }), f = /* @__PURE__ */ c({
15
15
  __name: "ComponentA",
16
- props: { msg: String },
16
+ props: {
17
+ msg: String
18
+ },
17
19
  setup(e) {
18
- return (t, b) => (p(), i(m, null, [
19
- u("div", null, "Hello " + d(e.msg) + "!", 1),
20
- n(o(l), { type: "primary" }, {
21
- default: f(() => [
22
- _("CLICK")
23
- ]),
24
- _: 1
25
- }),
26
- n(o(s), { name: "FOO" })
27
- ], 64));
20
+ return (t, S) => (p(), s(m, null, [i("div", null, "Hello " + u(e.msg) + "!", 1), n(o(l), {
21
+ type: "primary"
22
+ }, {
23
+ default: d(() => [_("CLICK")]),
24
+ _: 1
25
+ }), n(o(a), {
26
+ name: "FOO"
27
+ })], 64));
28
28
  }
29
29
  }), r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30
30
  __proto__: null,
31
- B: s,
32
- ComponentA: g
31
+ ComponentA: f,
32
+ B: a
33
33
  }, Symbol.toStringTag, { value: "Module" }));
34
- const y = 100, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34
+ const g = 100, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
35
  __proto__: null,
36
- MAGIC_NUM: y
36
+ MAGIC_NUM: g
37
37
  }, Symbol.toStringTag, { value: "Module" }));
38
- function C(e, t) {
38
+ function y(e, t) {
39
39
  return e + t;
40
40
  }
41
- const j = {
42
- add: C
41
+ const O = {
42
+ add: y
43
43
  };
44
- function S(e) {
44
+ function C(e) {
45
45
  for (const t in r)
46
46
  e.component(t, r[t]);
47
47
  }
48
- const A = { install: S };
48
+ const j = { install: C };
49
49
  export {
50
- s as B,
51
- g as ComponentA,
52
- O as MyConstants,
53
- j as MyUtil,
54
- A as default
50
+ a as B,
51
+ f as ComponentA,
52
+ M as MyConstants,
53
+ O as MyUtil,
54
+ j as default
55
55
  };
@@ -0,0 +1,8 @@
1
+ declare const B: import("vue").DefineComponent<{
2
+ /** 名称. */
3
+ name: StringConstructor;
4
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5
+ /** 名称. */
6
+ name: StringConstructor;
7
+ }>>, {}>;
8
+ export { B };
package/package.json CHANGED
@@ -1,49 +1,50 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.5",
4
- "types": "./dist/types/index.d.ts",
5
- "module": "./dist/index.js",
6
- "exports": {
7
- ".": {
8
- "import": "./dist/index.js"
9
- },
10
- "./dist/index.css": "./dist/index.css"
11
- },
3
+ "version": "0.0.2-beta.8",
12
4
  "scripts": {
13
5
  "build": "rimraf dist && vue-tsc && vite build",
14
- "bump-version:beta": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts beta",
15
- "bump-version:major": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts major",
16
- "bump-version:minor": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts minor",
17
- "bump-version:patch": "ts-node --project=./scripts/tsconfig.json scripts/bump-version.ts patch",
18
- "publish:all": "ts-node --project=./scripts/tsconfig.json scripts/publish.ts",
19
6
  "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
20
7
  "publish:all:major": "npm run bump-version:major && npm run publish:all",
21
8
  "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
22
9
  "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
10
+ "--------------------": "",
11
+ "bump-version:beta": "tsx scripts/bump-version.ts beta",
12
+ "bump-version:major": "tsx scripts/bump-version.ts major",
13
+ "bump-version:minor": "tsx scripts/bump-version.ts minor",
14
+ "bump-version:patch": "tsx scripts/bump-version.ts patch",
15
+ "publish:all": "tsx scripts/publish.ts",
23
16
  "publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
24
17
  },
25
18
  "peerDependencies": {
26
19
  "vue": "~3.2.45"
27
20
  },
28
21
  "dependencies": {
29
- "ant-design-vue": "3.2.15"
22
+ "ant-design-vue": "~3.2.15"
30
23
  },
31
24
  "devDependencies": {
32
- "@types/node": "18.11.19",
33
- "@types/semver": "7.3.13",
34
- "@vitejs/plugin-vue": "4.0.0",
35
- "@vitejs/plugin-vue-jsx": "3.0.0",
36
- "chalk": "4.1.2",
37
- "less": "4.1.3",
38
- "prettier": "2.8.3",
39
- "rimraf": "4.1.2",
40
- "rollup": "3.14.0",
41
- "semver": "7.3.8",
42
- "ts-node": "10.9.1",
43
- "typescript": "4.7.4",
44
- "vite": "4.1.1",
45
- "vue": "3.2.45",
46
- "vue-tsc": "1.0.24"
25
+ "@types/node": "~18.14.6",
26
+ "@types/semver": "~7.3.13",
27
+ "@vitejs/plugin-vue": "~3.2.0",
28
+ "@vitejs/plugin-vue-jsx": "~1.3.10",
29
+ "chalk": "~4.1.2",
30
+ "less": "~4.1.3",
31
+ "prettier": "~2.8.4",
32
+ "rimraf": "~3.0.2",
33
+ "rollup": "~2.79.1",
34
+ "semver": "~7.3.8",
35
+ "tsx": "~3.12.3",
36
+ "typescript": "~4.8.4",
37
+ "vite": "~3.2.5",
38
+ "vue": "~3.2.45",
39
+ "vue-tsc": "~1.2.0"
40
+ },
41
+ "types": "./dist/types/index.d.ts",
42
+ "module": "./dist/index.js",
43
+ "exports": {
44
+ ".": {
45
+ "import": "./dist/index.js"
46
+ },
47
+ "./dist/index.css": "./dist/index.css"
47
48
  },
48
49
  "prettier": {
49
50
  "endOfLine": "auto",
@@ -1,6 +0,0 @@
1
- declare const B: import("vue").DefineComponent<{
2
- name: string;
3
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
4
- name: string;
5
- }>, {}>;
6
- export { B };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes