Skip to content

Commit

Permalink
🐳 chore: 升级依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoJikun committed Nov 23, 2023
1 parent 7a78a88 commit 9def7ae
Show file tree
Hide file tree
Showing 9 changed files with 1,047 additions and 1,348 deletions.
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"dependencies": {
"@ivy-design/ce": "workspace:*",
"vue": "^3.3.4"
"vue": "^3.3.8"
},
"devDependencies": {
"vitepress": "1.0.0-rc.29"
Expand Down
7 changes: 7 additions & 0 deletions packages/docs/src/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 更新日志

## v1.1.0 版本

功能:

- 新增组件 `Text`(文字)
- 新增组件 `Link`(链接)

## v1.0.2 版本

修复:
Expand Down
45 changes: 23 additions & 22 deletions packages/ivy-design-wc/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@ivy-design/ce",
"version": "1.0.2",
"version": "1.1.0",
"private": false,
"type": "module",
"main": "dist/ivy-design.js",
"module": "dist/ivy-design.mjs",
"module": "dist/ivy-design.js",
"types": "types/index.d.ts",
"unpkg": "dist/ivy-design.js",
"jsdelivr": "dist/ivy-design.js",
Expand Down Expand Up @@ -51,31 +52,31 @@
"format": "prettier --write src/"
},
"dependencies": {
"@vueuse/core": "^10.2.1",
"vue": "^3.3.4"
"@vueuse/core": "^10.6.1",
"vue": "^3.3.8"
},
"devDependencies": {
"@popperjs/core": "^2.11.8",
"@rushstack/eslint-patch": "^1.2.0",
"@tsconfig/node18": "^2.0.1",
"@types/jsdom": "^21.1.1",
"@types/node": "^18.16.17",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vue/eslint-config-prettier": "^7.1.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/test-utils": "^2.3.2",
"@rushstack/eslint-patch": "^1.6.0",
"@tsconfig/node18": "^18.2.2",
"@types/jsdom": "^21.1.6",
"@types/node": "^18.18.12",
"@vitejs/plugin-vue": "^4.5.0",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.2",
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.39.0",
"eslint-plugin-vue": "^9.11.0",
"eslint": "^8.54.0",
"eslint-plugin-vue": "^9.18.1",
"jsdom": "^22.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"sass": "^1.69.4",
"typescript": "~5.0.4",
"vite": "^4.3.9",
"vite-plugin-dts": "^3.6.0",
"vitest": "^0.32.0",
"vue-tsc": "^1.6.5"
"prettier": "^3.1.0",
"sass": "^1.69.5",
"typescript": "~5.3.2",
"vite": "^5.0.2",
"vite-plugin-dts": "^3.6.3",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.22"
}
}
8 changes: 4 additions & 4 deletions packages/ivy-design-wc/src/components/dialog/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineCustomElement } from 'vue'
import { install } from '@/utils/index'
import comp from './index.ce.vue'
import indexCeVue from './index.ce.vue'

const Dialog = defineCustomElement(comp)
const Dialog = defineCustomElement(indexCeVue)

const registerComponent = (prefix = 'Ivy') => {
const key = `${prefix}${comp.name}`
install(key, comp)
const key = `${prefix}${indexCeVue.name}`
install(key, indexCeVue)
}

export { Dialog, registerComponent as registerDialogComponent }
Expand Down
1 change: 0 additions & 1 deletion packages/ivy-design-wc/src/components/icon/index.ce.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const styles = computed(() => {
</script>

<template>
<!-- <span :class="className"></span> -->
<svg class="ivy-icon" :style="styles">
<use :href="`${svg}#ivy-icon-${props.name}`"></use>
</svg>
Expand Down
61 changes: 0 additions & 61 deletions packages/ivy-design-wc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,67 +125,6 @@ const comp: Record<string, any> = {
Text
}

// export const Button = comp.Button
// export const Grid = comp.Grid
// export const GridItem = comp.GridItem
// export const Tooltip = comp.Tooltip
// export const Collapse = comp.Collapse
// export const CollapseItem = comp.CollapseItem
// export const Divider = comp.Divider
// export const Card = comp.Card
// export const Space = comp.Space
// export const Empty = comp.Empty
// export const Timeline = comp.Timeline
// export const TimelineItem = comp.TimelineItem
// export const Breadcrumb = comp.Breadcrumb
// export const BreadcrumbItem = comp.BreadcrumbItem
// export const Tag = comp.Tag
// export const Badge = comp.Badge
// export const Row = comp.Row
// export const Col = comp.Col
// export const Result = comp.Result
// export const Progress = comp.Progress
// export const Drawer = comp.Drawer
// export const Input = comp.Input
// export const Tip = comp.Tip
// export const Select = comp.Select
// export const Option = comp.Option
// export const Loading = comp.Loading
// export const Details = comp.Details
// export const Dialog = comp.Dialog
// export const Dropdown = comp.Dropdown
// export const DropdownMenu = comp.DropdownMenu
// export const DropdownItem = comp.DropdownItem
// export const Steps = comp.Steps
// export const Step = comp.Step
// export const Switch = comp.Switch
// export const Radio = comp.Radio
// export const RadioGroup = comp.RadioGroup
// export const Checkbox = comp.Checkbox
// export const CheckboxGroup = comp.CheckboxGroup
// export const AspectRatio = comp.AspectRatio
// export const Message = comp.Message
// export const Icon = comp.Icon
// export const Circle = comp.Circle
// export const Pagination = comp.Pagination
// export const Carousel = comp.Carousel
// export const CarouselItem = comp.CarouselItem
// export const Image = comp.Image
// export const Description = comp.Description
// export const DescriptionItem = comp.DescriptionItem
// export const Tabs = comp.Tabs
// export const TabPane = comp.TabPane
// export const Contextmenu = comp.Contextmenu
// export const Rate = comp.Rate
// export const Avatar = comp.Avatar
// export const Scrollbar = comp.Scrollbar
// export const Table = comp.Table
// export const TableColumn = comp.TableColumn
// export const CopyToClipboard = comp.CopyToClipboard
// export const Tree = comp.Tree
// export const Link = comp.Link
// export const Text = comp.Text

export const registerComponents = async (prefix = 'Ivy') => {
for (const key in comp) {
const name: string = `${prefix}${key}`.replace(/([A-Z])([a-z]+)/g, (val, _, p, offset) => {
Expand Down
27 changes: 14 additions & 13 deletions packages/ivy-design-wc/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"nightwatch.conf.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"module": "ESNext",
"types": ["node"]
}
"extends": "@tsconfig/node18/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"nightwatch.conf.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"moduleResolution": "bundler",
"module": "ESNext",
"types": ["node"]
}
}
37 changes: 30 additions & 7 deletions packages/ivy-design-wc/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
import { fileURLToPath, URL } from 'node:url'
import { readdirSync } from 'node:fs'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import dts from 'vite-plugin-dts'
import { c } from 'vitest/dist/reporters-5f784f42.js'

const genInput = () => {
const target: any = {}
const dir = readdirSync('./src/components')
dir.forEach((name) => {
target[`components/${name}`] = fileURLToPath(
new URL(`./src/components/${name}/index.ts`, import.meta.url)
)
})
return target
}

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -22,24 +35,34 @@ export default defineConfig({
}
},
build: {
target: 'esnext',
target: 'es2017',
lib: {
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),

name: 'ivy-design',
fileName: (format) => {
if (format === 'es') {
return 'ivy-design.mjs'
} else {
return 'ivy-design.js'
}
if (format === 'es') return 'ivy-design.js'
return 'ivy-design.cjs'
}
},
rollupOptions: {
// treeshake: false,
// input: {
// 'ivy-design': fileURLToPath(new URL('./src/index.ts', import.meta.url)),
// ...genInput()
// },
output: {
// interop: 'auto',
// format: 'es',
// entryFileNames: '[name].js',
// assetFileNames: (assetInfo) => {
// if (assetInfo.name === 'ivy-design.css') return 'style.css'

// return 'assets/[name][extname]'
// },
exports: 'named'
}
},

cssTarget: 'chrome61'
}
})
Loading

0 comments on commit 9def7ae

Please sign in to comment.