Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
1c7ad29
chore: initial project
lonewolfyx Aug 11, 2026
6903669
chore(project): update repository and author information
lonewolfyx Aug 11, 2026
549cfcf
docs(package): update description to reflect antdv-next focus
lonewolfyx Aug 11, 2026
cf41b89
chore(core): add new dependencies for enhanced functionality
lonewolfyx Aug 11, 2026
80f44f4
chore(build): add antdv cli entry point
lonewolfyx Aug 11, 2026
f626cab
build(package): update export paths and binary entry point
lonewolfyx Aug 11, 2026
db1e5cf
chore: add antdv.js
lonewolfyx Aug 11, 2026
008b6bb
types(config): remove redundant types path mapping from tsconfig
lonewolfyx Aug 11, 2026
ea41927
feat(cli): add comprehensive CLI tool with multiple commands and bann…
lonewolfyx Aug 11, 2026
9ea963f
feat(cli): customize usage display with help banner
lonewolfyx Aug 11, 2026
b3fe8b8
chore(cli): remove unnecessary blank line in index setup function
lonewolfyx Aug 11, 2026
512d6ce
types(config): add tsdown/client types to tsconfig
lonewolfyx Aug 11, 2026
a17b343
feat(constants): add dirname constant utility
lonewolfyx Aug 11, 2026
e81d347
ci(workflow): add pkg.pr.new publishing workflow for pull requests
lonewolfyx Aug 12, 2026
3c1958b
ci(pr-welcome): update pull request contributor welcome workflow name
lonewolfyx Aug 12, 2026
adb6c6a
feat(deps): add vitest testing framework and update dependencies
lonewolfyx Aug 12, 2026
a2e4f16
perf(vitest): optimize CLI version definition in config
lonewolfyx Aug 12, 2026
b52d70d
refactor(cli): extract subCommands object and update command handling
lonewolfyx Aug 12, 2026
6600c9f
fix(cli): move help banner log to proper location in command setup
lonewolfyx Aug 12, 2026
c84e991
test(cli): add CLI integration tests with vitest
lonewolfyx Aug 12, 2026
4679b13
fix(cli): replace inline args with defaultArgs import
lonewolfyx Aug 12, 2026
811a14d
feat(args): add command line arguments configuration
lonewolfyx Aug 12, 2026
4e2425a
refactor(test): extract test utilities to separate module
lonewolfyx Aug 12, 2026
f5d6e3a
chore(tsconfig): add include pattern for source files
lonewolfyx Aug 12, 2026
87aaed3
feat(config): add configuration resolution and types
lonewolfyx Aug 12, 2026
2c59682
feat(env): enhance environment information collection with detailed s…
lonewolfyx Aug 12, 2026
1174e39
feat(args): add output format validation and type safety
lonewolfyx Aug 12, 2026
bbed4d3
refactor(env): extract output formatting logic to separate utility mo…
lonewolfyx Aug 12, 2026
52aeedc
feat(sync): add script to sync remote git tags and generate changelog…
lonewolfyx Aug 12, 2026
12acaed
chore(deps): add semver and @types/semver dependencies
lonewolfyx Aug 12, 2026
dd1ea41
feat(sync): support multiple major versions in changelog generation
lonewolfyx Aug 12, 2026
5ea7aae
feat(scripts): enhance changelog sync with npm publish times
lonewolfyx Aug 12, 2026
82eec52
feat(sync): add dayjs library for date handling
lonewolfyx Aug 12, 2026
82baa58
chore(deps): add giget dependency to project
lonewolfyx Aug 12, 2026
2df42e1
feat(changelog): add changelog parsing script for multilingual support
lonewolfyx Aug 12, 2026
091d4b2
refactor(changelog): update changelog parser to use conventional comm…
lonewolfyx Aug 12, 2026
7a7692e
fix(changelog): validate release date format before parsing
lonewolfyx Aug 12, 2026
31de7bb
perf(changelog): change temp directory handling to use cwd
lonewolfyx Aug 13, 2026
36214fe
perf(sync): update changelog record property name
lonewolfyx Aug 13, 2026
a1f0771
fix(args): enforce strict typing for output format default value
lonewolfyx Aug 13, 2026
db99581
types(version): move __CLI_VERSION__ declaration to types module
lonewolfyx Aug 13, 2026
e6499cf
types(cli): move CLI version type declaration to separate file
lonewolfyx Aug 13, 2026
77d7cbd
feat(args): add target version option for antdv-next migration
lonewolfyx Aug 13, 2026
2620a2c
feat(utils): add package manager version detection utility
lonewolfyx Aug 13, 2026
59502ad
chore(devdeps): add utils package and changelog script
lonewolfyx Aug 13, 2026
9b340a6
chore(deps): remove unused @lonewolfyx/utils package and update pnpm …
lonewolfyx Aug 13, 2026
fbf24fe
fix(output): change output function to log content instead of returni…
lonewolfyx Aug 13, 2026
06533b7
feat(bug): add comprehensive bug report command with issue creation u…
lonewolfyx Aug 13, 2026
f648b80
test(issue): add comprehensive test suite for issue utilities
lonewolfyx Aug 13, 2026
a89be11
test(bug): add comprehensive unit tests for bug command functionality
lonewolfyx Aug 13, 2026
3ad8e9c
refactor(bug): extract bug creation logic into separate function
lonewolfyx Aug 13, 2026
5420ca7
refactor(bug): extract bug command arguments to separate module
lonewolfyx Aug 13, 2026
4ae8674
refactor(args): move default arguments to separate file
lonewolfyx Aug 13, 2026
ee8f183
feat(bug): implement bug reporting command for cli repository
lonewolfyx Aug 13, 2026
cc1d25a
types(config): remove redundant baseUrl from tsconfig
lonewolfyx Aug 13, 2026
f453831
feat(design): add design.md command with proper file reading
lonewolfyx Aug 14, 2026
cea247b
docs(design): update description according to Ant Design guidelines
lonewolfyx Aug 14, 2026
615ddad
feat(sync): add version.json generation with major.minor version mapping
lonewolfyx Aug 14, 2026
c48c786
ci(sync): add sync data workflow
lonewolfyx Aug 14, 2026
95022c5
ci(sync): add scheduled sync trigger to GitHub workflow
lonewolfyx Aug 14, 2026
b74b5f4
feat(scripts): add changelog extraction functionality
lonewolfyx Aug 14, 2026
a3fe96f
fix(changelog): update component field to always be string
lonewolfyx Aug 14, 2026
2f90d59
refactor(bug): integrate default arguments into bug command
lonewolfyx Aug 14, 2026
2b64bae
feat(config): switch CommandArgs with OptionsArgs type
lonewolfyx Aug 14, 2026
36ba699
feat(dependencies): add boxen package and update dependency tree
lonewolfyx Aug 14, 2026
5cb5725
feat(cli): add check command to verify CLI version updates
lonewolfyx Aug 14, 2026
0f96463
feat(upgrade): implement CLI version upgrade functionality
lonewolfyx Aug 15, 2026
775dea3
feat(sync): add globalTokens field to changelog records
lonewolfyx Aug 15, 2026
d6bff23
refactor(changelog): update script to read local antdv-source directory
lonewolfyx Aug 17, 2026
4700501
feat(sync): integrate token fetching into changelog generation
lonewolfyx Aug 17, 2026
16646eb
refactor(sync): remove unnecessary version filter in changelog genera…
lonewolfyx Aug 17, 2026
051fe68
feat(tokens): add script to fetch token metadata from antdv-next package
lonewolfyx Aug 17, 2026
4a2debb
fix(args): make bugArgs optional in OptionsArgs type
lonewolfyx Aug 17, 2026
e0ed809
types(args): remove unused ParsedArgs import and CommandArgs type
lonewolfyx Aug 17, 2026
efdb372
feat(args): add default value for target version argument
lonewolfyx Aug 17, 2026
fcbdc69
feat(config): add version field to resolved config
lonewolfyx Aug 17, 2026
16d4d86
feat(config): add version option to configuration
lonewolfyx Aug 17, 2026
3ab2867
chore(mcp): add todo comment for second development stage
lonewolfyx Aug 17, 2026
a3b2bd4
refactor(sync): update token fetching logic to use separate loader fu…
lonewolfyx Aug 17, 2026
69e4ba9
perf(workflow): optimize antdv-next source cloning in sync workflow
lonewolfyx Aug 17, 2026
1a182d5
feat(sync): add component documentation parsing and sync functionality
lonewolfyx Aug 17, 2026
3b4343b
feat(sync): add documentation fields to component records
lonewolfyx Aug 17, 2026
9bafd5f
feat(sync): add component tokens, FAQ, and demos extraction
lonewolfyx Aug 17, 2026
a6d920a
refactor(sync): update token file handling and demo processing logic
lonewolfyx Aug 17, 2026
314f47d
refactor(sync): update token handling and data structures
lonewolfyx Aug 17, 2026
cc1c868
feat(sync): add comprehensive logging and improve sync workflow
lonewolfyx Aug 17, 2026
1b04b2d
feat(changelog): add git checkout to main branch before reading chang…
lonewolfyx Aug 17, 2026
e2bf279
refactor(sync): update VersionFile type definition and return value
lonewolfyx Aug 17, 2026
075f65f
fix(build): update version file name from version.json to versions.json
lonewolfyx Aug 17, 2026
d21357a
feat(token): add design token query command with component filtering
lonewolfyx Aug 17, 2026
aa9e4a4
chore(token): add todo comment for format console display
lonewolfyx Aug 17, 2026
a9a7892
chore(token): add component name logging for token output
lonewolfyx Aug 17, 2026
7fa62a7
fix(token): handle missing component argument and show global tokens
lonewolfyx Aug 17, 2026
bb2220b
test(version): add comprehensive tests for version resolution utilities
lonewolfyx Aug 17, 2026
800ec3d
refactor(args): update import paths and type references for better mo…
lonewolfyx Aug 17, 2026
50bd2e6
chore(build): update gitignore with temporary build files
lonewolfyx Aug 17, 2026
03fabf1
feat(token): add token command with table output support
lonewolfyx Aug 18, 2026
aaaa64f
chore(token): remove unused todo comment in token command
lonewolfyx Aug 18, 2026
bb2a7c3
feat(utils): move version metadata loading logic to dedicated function
lonewolfyx Aug 18, 2026
e6ed8a5
fix(sync): update Chinese name field extraction from frontmatter
lonewolfyx Aug 18, 2026
667a193
feat(list): implement component listing with bilingual support
lonewolfyx Aug 18, 2026
08c26f4
chore(test): remove pro-components dependency from ecosystem scan test
lonewolfyx Aug 18, 2026
088224d
chore(cli): remove unused todo comment from subCommands object
lonewolfyx Aug 18, 2026
bdd9569
feat(cli): add TODO comments for command implementations
lonewolfyx Aug 18, 2026
f26a4a8
feat(version): add version mapping configuration
lonewolfyx Aug 18, 2026
27ec605
chore(eslint): add eslint-plugin-vuoto for zero-width character detec…
lonewolfyx Aug 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "schedule:weekly"],
"enabledManagers": ["github-actions"],
"packageRules": [
{
"matchManagers": ["github-actions"],
"matchDepTypes": [
"docker",
"container",
"service",
"github-runner",
"uses-with"
],
"enabled": false
}
]
}
30 changes: 30 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: autofix.ci

on:
pull_request:
permissions:
contents: write

jobs:
autofix:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v7

- name: Use Node.js lts/*
uses: actions/setup-node@v7
with:
node-version: lts/*

- name: Install pnpm
uses: pnpm/action-setup@v6

- name: Install
run: pnpm i

- name: Lint
run: pnpm run lint:fix

- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@v6

- name: Set node
uses: actions/setup-node@v7
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm i

- name: Lint
run: pnpm run lint
36 changes: 36 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish pkg.pr.new

on:
pull_request: { }

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Use pnpm
uses: pnpm/action-setup@v6

- uses: actions/setup-node@v7
with:
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm i

- name: Build
run: pnpm build

- name: Publish pkg.pr.new
run: npx pkg-pr-new publish
37 changes: 37 additions & 0 deletions .github/workflows/pr-contributor-welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pull Request Contributor Welcome

on:
pull_request_target:
types:
- closed
# paths:
# - 'components/**'

permissions:
contents: read

jobs:
comment:
permissions:
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
if: github.event.pull_request.merged == true && github.repository == 'antdv-next/cli'
runs-on: ubuntu-latest
steps:
- name: get commit count
id: get_commit_count
run: |
PR_AUTHOR=$(echo "${{ github.event.pull_request.user.login }}")
RESULT_DATA=$(curl -s "https://api.github.com/repos/${{ github.repository }}/commits?author=${PR_AUTHOR}&per_page=5")
DATA_LENGTH=$(echo $RESULT_DATA | jq 'if type == "array" then length else 0 end')
echo "COUNT=$DATA_LENGTH" >> $GITHUB_OUTPUT
- name: Comment on PR
if: steps.get_commit_count.outputs.COUNT < 3
uses: actions-cool/maintain-one-comment-backup@fbbc22ad1809c1bcf46f19b58397b6254773588c
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
🎉 Thx for the PR @${{ github.event.pull_request.user.login }}

<!-- WELCOME_CONTRIBUTION -->
body-include: <!-- WELCOME_CONTRIBUTION -->
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: actions/setup-node@v6
with:
node-version: lts/*

- run: npx genereleaselog
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
61 changes: 61 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Sync data

on:
schedule:
- cron: '28 * * * *'
workflow_dispatch:

permissions:
contents: write
id-token: write

concurrency:
group: sync-data
cancel-in-progress: false

jobs:
sync:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Install latest pnpm
uses: pnpm/action-setup@v6
with:
version: latest

- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Clone antdv-next source
run: git clone --filter=tree:0 --no-checkout https://github.com/antdv-next/antdv-next.git antdv-source

- name: Generate changelog data
run: pnpm exec tsx scripts/changelog.ts

- name: Sync version data
run: pnpm exec tsx scripts/sync.ts

- name: Remove antdv-next source
if: always()
run: rm -rf antdv-source

- name: Commit data changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -- data/

git commit --no-verify -m "chore(data): sync antdv-next metadata"
git push origin main
env:
GH_TOKEN: ${{ github.token }}
147 changes: 147 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.*
!.env.example

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist
.output

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp directory
.temp

# Sveltekit cache directory
.svelte-kit/

# vitepress build output
**/.vitepress/dist

# vitepress cache directory
**/.vitepress/cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Firebase cache directory
.firebase/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# pnpm
.pnpm-store

# yarn v3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Vite files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vite/

.idea
.tmp-npm-pack
/antdv-source/
Loading