Skip to content

Commit

Permalink
feat: new version publish cli (#382)
Browse files Browse the repository at this point in the history
* chore: init

* chore: update

* chore: func update

* chore: update

* chore: update

* chore: update

* fix: new component version

* chore: publish test

* fix: lastest

* fix: lint

* fix: publish

* fix: publish

* feat: chore 0.5.0 publish

* chore: update readme

* chore: fix alert export

* fix: lint

* chore: fix update

* fix: lint issues

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
productdevbook and autofix-ci[bot] committed Sep 26, 2023
1 parent afab153 commit 17a1270
Show file tree
Hide file tree
Showing 34 changed files with 337 additions and 302 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ pnpm play:nuxt # Run the playground with Nuxt
pnpm clean: all # Clean all node_modules
pnpm clean:dist # Clean dist folder in all packages
pnpm clean:dts # Clean dts folder in all packages

pnpm oku # Run Oku CLI (packages/cli) // pnpm oku publish (publish packages)
```

## Testing
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build": "pnpm nx run-many -t build",
"build:skip": "pnpm nx run-many -t build --skip-nx-cache",
"p:build": "tsup",
"oku": "pnpm jiti ./scripts/index.ts",
"story": "pnpm storybook dev -p 6006 --no-open",
"lint": "eslint . --cache ",
"lint:fix": "eslint . --fix --cache",
Expand All @@ -37,6 +38,7 @@
"update:version": "esno scripts/update-version.ts"
},
"devDependencies": {
"@clack/prompts": "^0.7.0",
"@egoist/tailwindcss-icons": "^1.1.0",
"@iconify-json/ph": "^1.1.6",
"@oku-ui/alert-dialog": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/alert-dialog/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/alert-dialog",
"type": "module",
"version": "0.4.0-alpha.12",
"version": "0.1.1",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineComponent, toRefs, watchEffect } from 'vue'

import { CONTENT_NAME, DESCRIPTION_NAME, DESCRIPTION_WARNING_NAME, dialogDescriptionWarningProps } from './props'
import { CONTENT_NAME, DESCRIPTION_NAME, DESCRIPTION_WARNING_NAME, alertDialogDescriptionWarningProps } from './props'

const alertDialogDescriptionWarning = defineComponent({
name: DESCRIPTION_WARNING_NAME,
inheritAttrs: false,
props: {
...dialogDescriptionWarningProps.props,
...alertDialogDescriptionWarningProps.props,
},
setup(props, { attrs: _attrs }) {
const { contentRef } = toRefs(props)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { defineComponent, h, mergeProps, reactive, toRefs } from 'vue'
import { reactiveOmit, useForwardRef } from '@oku-ui/use-composable'
import { OkuDialogDescription } from '@oku-ui/dialog'
import type { AlertDialogDescriptionNaviteElement } from './props'
import { DESCRIPTION_NAME, alertDialogDescriptionProps, scopeAlertDialogProps, useAlertDialogScope } from './props'
import { DESCRIPTION_NAME, alertDialogDescriptionWarningProps, scopeAlertDialogProps, useAlertDialogScope } from './props'

const alertDialogDescription = defineComponent({
name: DESCRIPTION_NAME,
inheritAttrs: false,
props: {
...alertDialogDescriptionProps.props,
...alertDialogDescriptionWarningProps.props,
...scopeAlertDialogProps,
},
setup(props, { attrs, slots }) {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/alert-dialog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ export {
alertDialogPortalProps,
alertDialogTitleProps,
alertDialogTriggerProps,
dialogDescriptionWarningProps,
alertDialogDescriptionWarningProps,
scopeAlertDialogProps,
} from './props'
2 changes: 1 addition & 1 deletion packages/components/alert-dialog/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const alertDialogDescriptionProps = {
export type DescriptionWarningProps = {
contentRef: HTMLDivElement
}
export const dialogDescriptionWarningProps = {
export const alertDialogDescriptionWarningProps = {
props: {
contentRef: {
type: [Object, null] as PropType<HTMLDivElement | null>,
Expand Down
1 change: 1 addition & 0 deletions packages/components/primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"vue": "^3.3.0"
},
"dependencies": {
"@oku-ui/alert-dialog": "latest",
"@oku-ui/aspect-ratio": "latest",
"@oku-ui/avatar": "latest",
"@oku-ui/checkbox": "latest",
Expand Down
2 changes: 2 additions & 0 deletions packages/components/primitives/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ export * from '@oku-ui/slider'
export * from '@oku-ui/radio-group'
export * from '@oku-ui/hover-card'
export * from '@oku-ui/dialog'
export * from '@oku-ui/alert-dialog'
export * from '@oku-ui/scroll-area'
2 changes: 1 addition & 1 deletion packages/components/scroll-area/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/scroll-area",
"type": "module",
"version": "0.4.0-alpha.11",
"version": "0.0.2",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/arrow/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/arrow",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/collection/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/collection",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/direction/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/direction",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/dismissable-layer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/dismissable-layer",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/focus-guards/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/focus-guards",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/focus-scope/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/focus-scope",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/popper/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/popper",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/portal/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/portal",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/presence/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/presence",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/primitive/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/primitive",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/provide/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/provide",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/roving-focus/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/roving-focus",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/slot/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/slot",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/use-composable/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/use-composable",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/utils",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/visually-hidden/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/visually-hidden",
"type": "module",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
25 changes: 24 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions scripts/README.md

This file was deleted.

Loading

0 comments on commit 17a1270

Please sign in to comment.