Skip to content

Commit df4f467

Browse files
authored
Merge pull request #72 from obewds/dev
1.6.0 - updated outdated deps & switching to automated publishing
2 parents 80ca8f4 + 33a82a9 commit df4f467

30 files changed

+1700
-1859
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ./.github/workflows/publish_npm_package.yml
2+
3+
# For more information see: https://github.com/marketplace/actions/npm-publish
4+
5+
name: Node.js CI NPM Publish Package
6+
7+
on:
8+
pull_request:
9+
types:
10+
- closed
11+
12+
jobs:
13+
publish:
14+
if: github.event.pull_request.merged == true
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [16.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
- id: publish
27+
uses: JS-DevTools/npm-publish@v1
28+
with:
29+
access: "public"
30+
tag: ${{ steps.publish.outputs.version }}
31+
token: ${{ secrets.NPM_GITHUB_OBEWDS_AUTOMATION_AUTH_TOKEN }}
32+
- if: steps.publish.outputs.old-version != steps.publish.outputs.version
33+
run: npm install && npm run pkg:org && npm run git:tag
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ./.github/workflows/vitest_pull_request_tests.yml
2+
3+
# This workflow will do a clean installation of node dependencies
4+
# then cache/restore them
5+
# then build the source code (currently disabled)
6+
# then run tests across different versions of node (only node 16.x for Vitest currently)
7+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
8+
9+
name: Node.js CI Vitest Run Tests
10+
11+
on:
12+
pull_request:
13+
branches: [ "main" ]
14+
# push:
15+
# branches: [ "main" ]
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
node-version: [16.x]
23+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'npm'
31+
- run: npm ci
32+
# - run: npm run generate --if-present
33+
- run: npm test

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,27 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7-
#### [v1.5.0](https://github.com/obewds/vue-el/compare/v1.5.0...v1.5.0)
7+
#### [v1.6.0](https://github.com/obewds/vue-el/compare/v1.5.0...v1.6.0)
8+
9+
- Bump @types/node from 17.0.36 to 18.0.1 [`#60`](https://github.com/obewds/vue-el/pull/60)
10+
- Bump vite from 2.9.9 to 2.9.13 [`#59`](https://github.com/obewds/vue-el/pull/59)
11+
- Bump vitest from 0.13.0 to 0.17.0 [`#58`](https://github.com/obewds/vue-el/pull/58)
12+
- Bump tailwindcss from 3.0.24 to 3.1.4 [`#56`](https://github.com/obewds/vue-el/pull/56)
13+
- Bump vue-tsc from 0.35.2 to 0.38.2 [`#54`](https://github.com/obewds/vue-el/pull/54)
14+
- Bump @types/node from 17.0.36 to 18.0.0 [`#51`](https://github.com/obewds/vue-el/pull/51)
15+
- Bump vue-tsc from 0.35.2 to 0.38.1 [`#48`](https://github.com/obewds/vue-el/pull/48)
16+
- Bump @rollup/plugin-typescript from 8.3.2 to 8.3.3 [`#43`](https://github.com/obewds/vue-el/pull/43)
17+
- Bump vue from 3.2.36 to 3.2.37 [`#41`](https://github.com/obewds/vue-el/pull/41)
18+
- Bump typescript from 4.7.2 to 4.7.3 [`#38`](https://github.com/obewds/vue-el/pull/38)
19+
- Bump typescript from 4.7.2 to 4.7.4 [`#49`](https://github.com/obewds/vue-el/pull/49)
20+
- Bump happy-dom from 4.1.0 to 6.0.0 [`#61`](https://github.com/obewds/vue-el/pull/61)
21+
- 1.5.0 - updated deps and now using vitepress alpha v4 for docs [`#62`](https://github.com/obewds/vue-el/pull/62)
22+
- updated outdated deps [`#34`](https://github.com/obewds/vue-el/pull/34)
23+
- updated outdated deps [`#20`](https://github.com/obewds/vue-el/pull/20)
24+
- added tw config/helper pattern to main.ts [`#14`](https://github.com/obewds/vue-el/pull/14)
25+
- reinstalled node modules and regenerated package-lock [`d569f60`](https://github.com/obewds/vue-el/commit/d569f602bbd4800ca3f853c049ae01e17ac8a24c)
26+
- 1.6.0 - updated outdated deps & switching to automated publishing [`b0c0e39`](https://github.com/obewds/vue-el/commit/b0c0e39a311d469436b051717dd4b2a15b226d13)
27+
- removed c8 dep [`e0919b6`](https://github.com/obewds/vue-el/commit/e0919b6ad132deb004d6d3a161f2a1f862450000)
828

929
#### [v1.5.0](https://github.com/obewds/vue-el/compare/v1.4.0...v1.5.0)
1030

dist/types/components/VueEl.vue.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare const _default: {
3838
type: StringConstructor;
3939
default: string;
4040
};
41-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
41+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
4242
text: string;
4343
}> & {
4444
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -84,7 +84,7 @@ declare const _default: {
8484
type: StringConstructor;
8585
default: string;
8686
};
87-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
87+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
8888
text: string;
8989
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
9090
$slots: {

dist/vue-el.cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-el.es.js

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1-
import { defineComponent, openBlock, createElementBlock, Fragment, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, renderSlot } from "vue";
2-
import { elementTags } from "@obewds/vue-validators";
3-
import { isEmptyOrUnsupportedElement } from "@obewds/vue-component-helpers";
4-
const _hoisted_1 = /* @__PURE__ */ createTextVNode("VueEl");
5-
const _sfc_main = /* @__PURE__ */ defineComponent({
1+
import { defineComponent as m, openBlock as r, createElementBlock as n, Fragment as o, createBlock as i, resolveDynamicComponent as u, withCtx as c, createTextVNode as a, toDisplayString as p, renderSlot as s } from "vue";
2+
import { elementTags as d } from "@obewds/vue-validators";
3+
import { isEmptyOrUnsupportedElement as y } from "@obewds/vue-component-helpers";
4+
const f = /* @__PURE__ */ a("VueEl"), S = /* @__PURE__ */ m({
65
__name: "VueEl",
76
props: {
87
tag: {
98
type: String,
10-
required: true,
11-
validator: (prop) => elementTags.includes(prop)
9+
required: !0,
10+
validator: (e) => d.includes(e)
1211
},
1312
text: {
1413
type: String,
1514
default: ""
1615
}
1716
},
18-
setup(__props) {
19-
function emptyElementOrUnsupportedError(tag) {
20-
return isEmptyOrUnsupportedElement(tag);
17+
setup(e) {
18+
function l(t) {
19+
return y(t);
2120
}
22-
return (_ctx, _cache) => {
23-
return emptyElementOrUnsupportedError(__props.tag) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : (openBlock(), createBlock(resolveDynamicComponent(__props.tag), { key: 1 }, {
24-
default: withCtx(() => [
25-
__props.text ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26-
createTextVNode(toDisplayString(__props.text), 1)
27-
], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
28-
_hoisted_1
29-
])
30-
]),
31-
_: 3
32-
}));
33-
};
21+
return (t, g) => l(e.tag) ? (r(), n(o, { key: 0 }, [], 64)) : (r(), i(u(e.tag), { key: 1 }, {
22+
default: c(() => [
23+
e.text ? (r(), n(o, { key: 0 }, [
24+
a(p(e.text), 1)
25+
], 64)) : s(t.$slots, "default", { key: 1 }, () => [
26+
f
27+
])
28+
]),
29+
_: 3
30+
}));
3431
}
3532
});
36-
export { _sfc_main as VueEl };
33+
export {
34+
S as VueEl
35+
};

dist/vue-el.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)