Skip to content

Commit cd4dc4e

Browse files
authored
Merge pull request #21 from kouts/add_vitest_update_node_and_npm_packages
Add vitest, update node and npm packages
2 parents d2d827d + ff2e6d6 commit cd4dc4e

31 files changed

+5569
-6988
lines changed

.eslintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,41 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node: [20]
1514

1615
steps:
1716
- name: Checkout 🛎
18-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1918
with:
2019
fetch-depth: 0
2120

2221
- name: Setup node env 🏗
23-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2423
with:
25-
node-version: ${{ matrix.node }}
24+
node-version-file: '.nvmrc'
2625
check-latest: true
2726

27+
- name: Setup pnpm 📦
28+
uses: pnpm/action-setup@v4
29+
with:
30+
package_json_file: package.json
31+
2832
- name: Install dependencies 📦
29-
run: npm install
33+
run: pnpm install
3034

3135
- name: Install semantic-release extra plugins 📦
32-
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
36+
run: pnpm install --save-dev @semantic-release/changelog @semantic-release/git
3337

3438
- name: Run linter 👀
35-
run: npm run lint-fix
39+
run: pnpm run lint-fix
3640

3741
- name: Typecheck 👀
38-
run: npm run typecheck
42+
run: pnpm run typecheck
3943

4044
- name: Run tests 🧪
41-
run: npm run test:unit-coverage --if-present
45+
run: pnpm run test:unit-coverage --if-present
4246

4347
- name: Build
44-
run: npm run build
48+
run: pnpm run build
4549

4650
- name: Release
4751
env:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v23

babel.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

commitlint.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module.exports = {
1+
export default {
22
extends: ['@commitlint/config-conventional'],
33
rules: {
4-
'body-max-line-length': [1, 'always', 200]
5-
}
4+
'body-max-line-length': [1, 'always', 200],
5+
},
66
}

coverage/badge.svg

Lines changed: 1 addition & 1 deletion
Loading

coverage/coverage-summary.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{"total": {"lines":{"total":93,"covered":88,"skipped":0,"pct":94.62},"statements":{"total":101,"covered":95,"skipped":0,"pct":94.05},"functions":{"total":28,"covered":26,"skipped":0,"pct":92.85},"branches":{"total":79,"covered":72,"skipped":0,"pct":91.13},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
2-
,"/home/runner/work/vue-search-input/vue-search-input/src/SearchInput.types.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
3-
,"/home/runner/work/vue-search-input/vue-search-input/src/SearchInput.vue": {"lines":{"total":92,"covered":87,"skipped":0,"pct":94.56},"functions":{"total":28,"covered":26,"skipped":0,"pct":92.85},"statements":{"total":100,"covered":94,"skipped":0,"pct":94},"branches":{"total":79,"covered":72,"skipped":0,"pct":91.13}}
1+
{"total": {"lines":{"total":154,"covered":154,"skipped":0,"pct":100},"statements":{"total":154,"covered":154,"skipped":0,"pct":100},"functions":{"total":15,"covered":14,"skipped":0,"pct":93.33},"branches":{"total":52,"covered":51,"skipped":0,"pct":98.07},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
2+
,"/home/kouts/development/kouts/vue-search-input/src/SearchInput.types.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
3+
,"/home/kouts/development/kouts/vue-search-input/src/SearchInput.vue": {"lines":{"total":143,"covered":143,"skipped":0,"pct":100},"functions":{"total":14,"covered":13,"skipped":0,"pct":92.85},"statements":{"total":143,"covered":143,"skipped":0,"pct":100},"branches":{"total":47,"covered":46,"skipped":0,"pct":97.87}}
4+
,"/home/kouts/development/kouts/vue-search-input/src/filterObject.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":5,"covered":5,"skipped":0,"pct":100}}
45
}

dist/styles.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
transition: border-color 0.15s ease-in-out;
1717
}
1818
.search-input-wrapper input[data-search-input=true]:focus {
19-
background-color: white;
19+
background-color: hsl(210, 50%, 122.6470588235%);
2020
border-color: #1ea7fd;
2121
outline: 0;
2222
box-shadow: none;
2323
}
2424
.search-input-wrapper .search-icon {
25-
color: #83add6;
25+
color: rgb(131.25, 172.5, 213.75);
2626
position: absolute;
2727
}
2828
.search-input-wrapper .search-icon.search {
@@ -45,7 +45,7 @@
4545
border-radius: 3px;
4646
width: 2px;
4747
height: 7px;
48-
background: #83add6;
48+
background: rgb(131.25, 172.5, 213.75);
4949
transform: rotate(-45deg);
5050
top: 11px;
5151
left: 12px;
@@ -56,7 +56,7 @@
5656
cursor: text;
5757
right: 8px;
5858
bottom: 7px;
59-
background-color: #e7eff7;
59+
background-color: rgb(230.7, 238.8, 246.9);
6060
border-radius: 3px;
6161
z-index: 50;
6262
}
@@ -72,7 +72,7 @@
7272
top: 4px;
7373
left: 10px;
7474
z-index: 51;
75-
background-color: #96b9dc;
75+
background-color: rgb(150.375, 185.25, 220.125);
7676
}
7777
.search-input-wrapper .search-icon.clear {
7878
right: 5px;
@@ -90,7 +90,7 @@
9090
outline: none;
9191
}
9292
.search-input-wrapper .search-icon.clear:focus {
93-
background: #e7eff7;
93+
background: rgb(230.7, 238.8, 246.9);
9494
}
9595
.search-input-wrapper .search-icon.clear::after, .search-input-wrapper .search-icon.clear::before {
9696
content: "";
@@ -99,7 +99,7 @@
9999
position: absolute;
100100
width: 16px;
101101
height: 2px;
102-
background: #83add6;
102+
background: rgb(131.25, 172.5, 213.75);
103103
transform: rotate(45deg);
104104
border-radius: 5px;
105105
top: 9px;

dist/types/SearchInput.vue.d.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { FieldType } from './SearchInput.types';
21
import { PropType } from 'vue';
3-
4-
declare const _default: import('vue').DefineComponent<{
2+
import { FieldType } from './SearchInput.types';
3+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
54
type: {
65
type: PropType<FieldType>;
76
default: string;
@@ -51,9 +50,9 @@ declare const _default: import('vue').DefineComponent<{
5150
type: PropType<KeyboardEvent["key"]>;
5251
default: string;
5352
};
54-
}, {
55-
inputRef: import('vue').Ref<HTMLInputElement | null>;
56-
hasFocus: import('vue').Ref<boolean>;
53+
}>, {
54+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
55+
hasFocus: import('vue').Ref<boolean, boolean>;
5756
clear: () => void;
5857
onInput: (e: Event) => void;
5958
onKeydown: (e: KeyboardEvent) => void;
@@ -65,7 +64,7 @@ declare const _default: import('vue').DefineComponent<{
6564
}>;
6665
showClearIcon: import('vue').ComputedRef<boolean>;
6766
showShortcutIcon: import('vue').ComputedRef<boolean>;
68-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
67+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
6968
type: {
7069
type: PropType<FieldType>;
7170
default: string;
@@ -115,9 +114,9 @@ declare const _default: import('vue').DefineComponent<{
115114
type: PropType<KeyboardEvent["key"]>;
116115
default: string;
117116
};
118-
}>> & {
117+
}>> & Readonly<{
119118
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
120-
}, {
119+
}>, {
121120
type: "search" | "text" | "password";
122121
modelValue: string;
123122
wrapperClass: string;
@@ -130,5 +129,5 @@ declare const _default: import('vue').DefineComponent<{
130129
selectOnFocus: boolean;
131130
shortcutListenerEnabled: boolean;
132131
shortcutKey: string;
133-
}, {}>;
132+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
134133
export default _default;

dist/types/filterObject.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export declare const filterObject: (obj: {
2+
[key: string]: unknown;
3+
}, properties: (string | number)[], remove?: boolean) => {
4+
[key: string]: unknown;
5+
};

0 commit comments

Comments
 (0)