Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.0 #129

Closed
wants to merge 14 commits into from
2 changes: 2 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
push:
branches: [ "main" ]
paths:
- "!scripts/**"

permissions:
contents: read
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/changelogensets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
branches:
- main

permissions:
pull-requests: write
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: ${{ github.event_name != 'push' }}

jobs:
update-changelog:
if: github.repository_owner == 'oku-ui'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- run: pnpm jiti ./scripts/update-changelog.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
push:
branches:
- main
paths:
- "!scripts/**"

# "You must append a colon (:) to all events, including events without configuration."
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-multiple-events-with-activity-types-or-configuration
pull_request:
paths: # Only run if the frontend has changed
- 'packages/components/**'
- '.storybook/**'
- 'package.json'
- "!scripts/**"

permissions:
contents: write
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ on:
push:
branches:
- main
paths:
- "!scripts/**"

pull_request:
branches:
- main
paths:
- "!scripts/**"

jobs:
build-test:
Expand Down
100 changes: 100 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Changelog


## ...main


### 🚀 Enhancements

- Structure (#35)
- Primitive (#39)
- Use-callback-ref package (#41)
- Label package (#42)
- Aspect-ratio (#43)
- Provide core package (#44)
- Avatar (#46)
- Playground vue3 (#47)
- Playground nuxt3 (#48)
- Packages core and components folder create (#51)
- Storybook (#54)
- **compose-refs:** New package (84620fe)
- **use-previous:** New package (3636d75)
- **use-size:** New package (5ff1387)
- **OkuSeparator:** Create new component (#83)
- Element type (#85)
- Utils package (#86)
- **checkbox:** New component (#87)
- New struct storybook folder (#93)
- Add OkuProgress component (#89)
- Vue 3.3 support structural change (#96)
- RefElement and primitive add new types (#99)
- **toggle:** New component (#111)

### 🩹 Fixes

- Github folder name (95b04d4)
- Optimize expose (#84)
- **progress:** Stroybook and fix some progress bugs (#98)
- Checkbox (#113)
- **deps:** Update dependency @antfu/eslint-config to ^0.38.6 (#116)

### 💅 Refactors

- Vite build change to unbuild (#92)
- **label:** Add merge props with @oku-ui/utils (#94)
- Cleanup configs and package.json files (#100)
- **core:** One package use-composable (#109)

### 🏡 Chora

- Update readme (1aafefe)
- Update readme (49e98ef)
- Fix github (a804142)
- Add issuas link (8cdacbf)
- Fix readme (fd1025e)
- Fix readme (3d8963f)
- Fix readme (819e7d0)
- Drop the numbers (a0f8cea)
- Fix drop published (ad63d38)
- Fix toggle typo and add contributor (316e1d1)
- Add thank you new message (3ddf1c6)
- Add sponsors readme (#31)
- Fix readme (1930d6e)
- Update readme (024afed)
- Update renovate (aff3ded)
- Update renovate (d823836)
- Update renovate (0a0bc81)
- Update readme (026ba28)
- Add chromatic (#56)
- Storybook theme (#63)
- Add more scripts and update contributing (#68)
- Fix primitive ref (#71)
- Fix aspect-ratio change ratio type to number and change the div element (#73)
- Fix tsconfig (#74)
- Fix ref expose (#76)
- Feat use-controllable-ref package (#77)
- Fix pnpmlock (4d18463)
- Fix turbo build dependsOn (29db953)
- Update package.json (d5ea788)
- Update renovate (7829a2c)
- Change struct label storybook demo vue (#90)
- Auto import component nuxt playground (#91)
- Add label test (#95)
- Fix build (4ab9372)
- Refactor unbuild settings (#97)
- Update readme (3312737)
- **separator:** Add test (#102)
- Fix dev mode (78eecfa)
- Update README (#112)
- Pnpm overrides (590c6c0)

### ❤️ Contributors

- Productdevbook <[email protected]>
- Faithful Ojebiyi ([@faithfulojebiyi](http://github.com/faithfulojebiyi))
- Mehmet <[email protected]>
- Suxiong
- Victor Akintunde
- Sadegh Barati ([@sadeghbarati](http://github.com/sadeghbarati))
- Fatih Yıldız

29 changes: 29 additions & 0 deletions changelog.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { ChangelogConfig } from 'changelogen'

function getDefaultConfig() {
return <Partial<ChangelogConfig>>{
types: {
version: { title: '🔖 Version', semver: 'patch' },
feat: { title: '🚀 Enhancements', semver: 'minor' },
perf: { title: '🔥 Performance', semver: 'patch' },
fix: { title: '🩹 Fixes', semver: 'patch' },
refactor: { title: '💅 Refactors', semver: 'patch' },
docs: { title: '📖 Documentation', semver: 'patch' },
build: { title: '📦 Build', semver: 'patch' },
types: { title: '🌊 Types', semver: 'patch' },
chore: { title: '🏡 Chore' },
examples: { title: '🏀 Examples' },
test: { title: '✅ Tests' },
style: { title: '🎨 Styles' },
ci: { title: '🤖 CI' },
},
repo: {
repo: 'oku-ui/primitives',
provider: 'github',
domain: 'github.com',
token: process.env.GITHUB_TOKEN,
},
}
}

export default getDefaultConfig
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "oku-ui",
"name": "primitives",
"type": "module",
"private": true,
"version": "0.1.0",
"packageManager": "[email protected]",
"repository": "oku-ui/primitives",
"scripts": {
"p:build": "tsup",
"build": "turbo run build --filter='./packages/**'",
Expand Down Expand Up @@ -45,11 +46,14 @@
"@vitejs/plugin-vue": "^4.2.2",
"@vitest/coverage-c8": "^0.31.0",
"@vue/test-utils": "^2.3.2",
"changelogen": "^0.5.3",
"chromatic": "^6.17.4",
"eslint": "8.39.0",
"eslint-config-custom": "workspace:*",
"eslint-plugin-storybook": "^0.6.12",
"jiti": "^1.18.2",
"jsdom": "^22.0.0",
"ofetch": "^1.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/aspect-ratio/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/aspect-ratio",
"type": "module",
"version": "1.0.0",
"version": "0.0.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/checkbox/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/checkbox",
"type": "module",
"version": "1.0.0",
"version": "0.0.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/progress/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/progress",
"type": "module",
"version": "1.0.0",
"version": "0.0.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": "1.0.0",
"version": "0.0.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": "1.0.0",
"version": "0.0.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
2 changes: 1 addition & 1 deletion packages/example-package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/example",
"type": "module",
"version": "1.0.0",
"version": "0.0.0",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
Loading