Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit c3b209f

Browse files
authored
Merge pull request #291 from asigloo/deps/update-07022022
Deps/update-07022022
2 parents 647385a + 9d4029d commit c3b209f

File tree

6 files changed

+3231
-2498
lines changed

6 files changed

+3231
-2498
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Setup Node.js
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: 12
17+
node-version: 16
1818
- name: Install dependencies
1919
run: yarn
2020
- name: Build Library

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Setup Node.js
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: 12
17+
node-version: 16
1818
- name: Install dependencies
1919
run: yarn
2020
- name: Build Library

package.json

+41-41
Original file line numberDiff line numberDiff line change
@@ -54,58 +54,58 @@
5454
"./dist/themes/": "./dist/themes/"
5555
},
5656
"dependencies": {
57-
"@tailwindcss/typography": "^0.4.1",
5857
"deep-clone": "^3.0.3",
59-
"deep-object-diff": "^1.1.0"
58+
"deep-object-diff": "^1.1.7"
6059
},
6160
"devDependencies": {
6261
"@asigloo/prettier-config": "^0.2.0",
63-
"@cypress/vite-dev-server": "^2.0.1",
64-
"@iconify/json": "^1.1.373",
65-
"@microsoft/api-extractor": "^7.18.1",
66-
"@types/jest": "^26.0.24",
67-
"@typescript-eslint/eslint-plugin": "^4.28.2",
68-
"@typescript-eslint/parser": "^4.28.2",
69-
"@vitejs/plugin-vue": "^1.2.4",
70-
"@vue/compiler-sfc": "3.1.4",
71-
"@vue/test-utils": "^2.0.0-rc.10",
72-
"autoprefixer": "^10.3.0",
73-
"babel-core": "7.0.0-bridge.0",
62+
"@cypress/vite-dev-server": "^2.2.2",
63+
"@iconify/json": "^2.0.34",
64+
"@microsoft/api-extractor": "^7.19.4",
65+
"@tailwindcss/typography": "^0.5.1",
66+
"@types/jest": "^27.4.0",
67+
"@typescript-eslint/eslint-plugin": "^5.10.2",
68+
"@typescript-eslint/parser": "^5.10.2",
69+
"@vitejs/plugin-vue": "^2.1.0",
70+
"@vue/compiler-sfc": "3.2.30",
71+
"@vue/test-utils": "2.0.0-rc.17",
72+
"autoprefixer": "^10.4.2",
73+
"babel-core": "6.26.3",
7474
"babel-eslint": "10.1.0",
75-
"babel-jest": "27.0.6",
76-
"cypress": "^7.7.0",
77-
"eslint": "7.30.0",
78-
"eslint-plugin-prettier": "^3.4.0",
79-
"eslint-plugin-vue": "^7.13.0",
80-
"husky": "^7.0.1",
81-
"is-ci": "^3.0.0",
82-
"jest": "^27.0.6",
75+
"babel-jest": "27.5.0",
76+
"cypress": "^9.4.1",
77+
"eslint": "8.8.0",
78+
"eslint-plugin-prettier": "^4.0.0",
79+
"eslint-plugin-vue": "^8.4.1",
80+
"husky": "^7.0.4",
81+
"is-ci": "^3.0.1",
82+
"jest": "^27.5.0",
8383
"jest-serializer-vue": "^2.0.2",
8484
"jest-transform-stub": "^2.0.0",
85-
"jest-watch-typeahead": "^0.6.4",
86-
"node-sass": "6.0.1",
85+
"jest-watch-typeahead": "^1.0.0",
86+
"node-sass": "7.0.1",
8787
"pinst": "^2.1.6",
88-
"postcss": "^8.3.5",
89-
"prettier": "2.3.2",
90-
"rollup": "^2.53.0",
88+
"postcss": "^8.4.6",
89+
"prettier": "2.5.1",
90+
"rollup": "^2.67.1",
9191
"rollup-plugin-copy": "^3.4.0",
92-
"rollup-plugin-typescript2": "^0.30.0",
93-
"sass": "^1.35.2",
94-
"semantic-release": "17.4.4",
95-
"tailwindcss": "^2.2.4",
92+
"rollup-plugin-typescript2": "^0.31.2",
93+
"sass": "^1.49.7",
94+
"semantic-release": "19.0.2",
95+
"tailwindcss": "^3.0.18",
9696
"tailwindcss-animatecss": "^1.0.7",
97-
"ts-jest": "^27.0.3",
98-
"ts-node": "^10.1.0",
99-
"typescript": "~4.3.5",
100-
"vite": "^2.5.0",
101-
"vite-plugin-components": "^0.13.2",
102-
"vite-plugin-icons": "^0.6.5",
103-
"vite-plugin-pwa": "^0.11.2",
104-
"vitepress": "^0.16.1",
105-
"vue": "^3.1.4",
97+
"ts-jest": "^27.1.3",
98+
"ts-node": "^10.4.0",
99+
"typescript": "~4.5.5",
100+
"unplugin-icons": "^0.13.0",
101+
"unplugin-vue-components": "^0.17.17",
102+
"vite": "^2.7.13",
103+
"vite-plugin-pwa": "^0.11.13",
104+
"vitepress": "^0.21.6",
105+
"vue": "^3.2.30",
106106
"vue-jest": "^5.0.0-alpha.10",
107-
"vue-router": "^4.0.1",
108-
"vue-select": "3.11.2"
107+
"vue-router": "^4.0.12",
108+
"vue-select": "3.16.0"
109109
},
110110
"types": "dist/as-dynamic-forms.d.ts"
111111
}

src/components.d.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// generated by unplugin-vue-components
2+
// We suggest you to commit this file into source control
3+
// Read more: https://github.com/vuejs/vue-next/pull/3399
4+
5+
declare module 'vue' {
6+
export interface GlobalComponents {
7+
CheckboxInput: typeof import('./components/checkbox-input/CheckboxInput.vue')['default']
8+
CodiconGithub: typeof import('~icons/codicon/github')['default']
9+
Console: typeof import('./../demos/vue-3/src/components/Console.vue')['default']
10+
DynamicForm: typeof import('./components/dynamic-form/DynamicForm.vue')['default']
11+
DynamicInput: typeof import('./components/dynamic-input/DynamicInput.vue')['default']
12+
IonDocumentTextOutline: typeof import('~icons/ion/document-text-outline')['default']
13+
NumberInput: typeof import('./components/number-input/NumberInput.vue')['default']
14+
RadioInput: typeof import('./components/radio-input/RadioInput.vue')['default']
15+
SelectInput: typeof import('./components/select-input/SelectInput.vue')['default']
16+
TextAreaInput: typeof import('./components/text-area-input/TextAreaInput.vue')['default']
17+
TextInput: typeof import('./components/text-input/TextInput.vue')['default']
18+
Toolbar: typeof import('./../demos/vue-3/src/components/Toolbar.vue')['default']
19+
}
20+
}
21+
22+
export { }

vite.config.ts

+29-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { defineConfig } from 'vite';
2-
import vue from '@vitejs/plugin-vue';
3-
import ViteComponents from 'vite-plugin-components';
1+
import { defineConfig } from 'vite'
2+
import vue from '@vitejs/plugin-vue'
3+
import Components from 'unplugin-vue-components/vite'
4+
import Icons from 'unplugin-icons/vite'
5+
import IconsResolver from 'unplugin-icons/resolver'
46

5-
import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons';
6-
7-
const { resolve } = require('path');
7+
const { resolve } = require('path')
88

99
// https://vitejs.dev/config/
1010
export default defineConfig({
@@ -15,12 +15,28 @@ export default defineConfig({
1515
},
1616
plugins: [
1717
vue(),
18-
ViteComponents({
19-
dirs: ['src/components', 'demos/vue-3/src/components'],
20-
customComponentResolvers: ViteIconsResolver({
21-
componentPrefix: '', // <--
22-
}),
18+
Components({
19+
// allow auto load markdown components under `./src/components/`
20+
extensions: ['vue', 'md'],
21+
22+
// allow auto import and register components used in markdown
23+
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
24+
dirs: ['./src/components', 'demos/vue-3/src/components'],
25+
26+
// custom resolvers
27+
resolvers: [
28+
// auto import icons
29+
// https://github.com/antfu/unplugin-icons
30+
IconsResolver({
31+
prefix: false,
32+
// enabledCollections: ['carbon']
33+
}),
34+
],
35+
36+
dts: 'src/components.d.ts',
37+
}),
38+
Icons({
39+
autoInstall: true,
2340
}),
24-
ViteIcons({}),
2541
],
26-
});
42+
})

0 commit comments

Comments
 (0)