Skip to content

feat: antdv-next cli - #1

Draft
lonewolfyx wants to merge 37 commits into
antdv-next:mainfrom
lonewolfyx:feat/init
Draft

feat: antdv-next cli#1
lonewolfyx wants to merge 37 commits into
antdv-next:mainfrom
lonewolfyx:feat/init

Conversation

@lonewolfyx

Copy link
Copy Markdown

No description provided.

@lonewolfyx lonewolfyx changed the title chore: initial project feat: antdv-next cli Aug 11, 2026
@lonewolfyx
lonewolfyx marked this pull request as draft August 11, 2026 06:47
- Remove author field from package.json
- Update homepage URL to new repository location
- Update repository URL to point to new organization
- Update bugs URL to match new repository location
- Changed CLI tool description from antd to antdv-next
- Updated package description to accurately represent the project scope
- Added @clack/prompts v1.7.0 for interactive command line prompts
- Integrated citty v0.2.2 for improved configuration management
- Included pkg-types v2.3.1 for better package type definitions
- Updated publishConfig with public access settings
- Modified package.json structure to accommodate new dependencies
- Updated pnpm lockfile with new dependency resolutions
- Add bin/antdv.js as the CLI entry point
- Include shebang line for node execution
- Import the main module from dist/index.mjs
- Enable command-line execution of the build output
- Provide direct access to the compiled library
- Support executable script functionality for the CLI tool
- Change main export from ./dist/cli.mjs to ./dist/index.mjs
- Update types declaration from ./dist/cli.d.mts to ./dist/index.d.mts
- Rename binary entry point from cli.js to antdv.js
- Maintain package.json exports mapping
- Preserve data directory in files array
- Removed duplicate ./types/* path mapping in compiler options
- Kept only ./src/types/* for cleaner module resolution
- Fixed potential conflicts with type definitions lookup
…er utility

- Create help banner utility with version display
- Implement bug reporting command for antdv-next repository
- Add bug-cli command for reporting CLI-specific issues
- Create changelog command for version comparison
- Add demo command for retrieving component source code
- Implement design command for outputting design language document
- Create doc command for generating component API documentation
- Add doctor command for diagnosing antd configuration issues
- Implement env command for collecting environment information
- Create info command for querying component API details
- Add lint command for checking antdv-next usage best practices
- Implement list command for displaying all components with details
- Create mcp command for starting MCP server for AI integration
- Add migrate command for version migration with auto-fix option
- Implement semantic command for querying component customization structure
- Create setup command for configuring Ant Design MCP/Skill
- Add token command for querying design tokens
- Implement upgrade command for CLI version updates
- Create usage command for scanning component usage statistics
- Set up main CLI entry point with command routing and banner display
- Configure build system with tsdown and version injection
- Import renderUsage function from citty module
- Add custom showUsage implementation to createMain
- Display help banner before command usage
- Render command usage asynchronously with parent context
- Maintain CLI version information in banner display
- Removed extra blank line in the setup function of src/index.ts
- Maintained the original functionality while improving code formatting consistency
- Added tsdown/client type definition to types array in tsconfig.json
- This enables proper type checking for tsdown client functionality
- Resolves potential type errors when using tsdown client features
- Import dirname and fileURLToPath from node modules
- Export __dirname constant using import.meta.url
- Provide cross-platform path resolution utility
- Enable consistent directory path handling across the application
- Configure pull request trigger for package publishing
- Set up Ubuntu runner with 30-minute timeout
- Add checkout step using actions/checkout@v7
- Integrate pnpm action setup for dependency management
- Configure Node.js LTS with pnpm caching
- Implement dependency installation and build steps
- Add pkg.pr.new publishing command execution
@lonewolfyx
lonewolfyx marked this pull request as ready for review August 12, 2026 05:52
@lonewolfyx
lonewolfyx marked this pull request as draft August 12, 2026 05:52
- Changed workflow name from "PullRequest Contributor Welcome" to "Pull Request Contributor Welcome"
- Improved readability by adding space between words in workflow title
- Add vitest dependency for testing capabilities
- Update @antfu/eslint-config with vitest integration
- Include chai assertion library and related type definitions
- Add vitest-related packages (@vitest/expect, @vitest/mocker, etc.)
- Include supporting libraries (assertion-error, convert-source-map, etc.)
- Add various platform-specific lightningcss binaries
- Update package lockfile with new dependency tree
- Replace JSON.parse(JSON.stringify()) with direct JSON.stringify()
- Remove unnecessary parsing operation for version string
- Improve configuration loading performance
- Extracted subCommands definition into separate constant object
- Updated main command to use the extracted subCommands object
- Modified run function to properly handle subcommand routing
- Added conditional check for subcommand existence before showing usage
- Maintained all existing subcommand imports and functionality
- Removed console.log from setup function
- Added console.log back in the correct location after showUsage call
- Ensures help banner displays properly when command is executed
- Add vitest as testing framework with test scripts
- Create comprehensive CLI test suite covering basic commands
- Implement helper functions for temporary directory management
- Add test cases for 'antdv' and 'antdv env' commands
- Integrate tinyexec for subprocess command execution
- Set up proper test environment with mock directories
- Configure before/after hooks for test cleanup
- Removed hardcoded cwd argument definition from index.ts
- Imported defaultArgs from '@/args.ts' module
- Replaced manual args configuration with defaultArgs reference
- Maintained same functionality while improving code organization
- Centralized argument definitions in separate module for better maintainability
- Define default arguments for current working directory with alias 'c'
- Add output format option supporting json, text, and markdown formats
- Create CommandArgs type extending ParsedArgs with deep writeable conversion
- Implement DeepWriteable utility type to convert readonly properties
- Set default values for cwd to process.cwd() and format to 'text'
- Move CLI_PATH, genPath, run, and createMockDir functions to new run.ts file
- Replace local implementations with imports from shared test utilities
- Remove unused imports and helper functions from cli.test.ts
- Centralize test setup logic for better maintainability
- Improve code organization by separating test utilities from test cases
- Added src/**/* to include all source files in compilation
- Ensures proper TypeScript compilation of project files
- Create resolveConfig function to process command arguments
- Add ResolvedConfig interface with cwd and format properties
- Add PackageInfo interface with optional version and path fields
- Implement configuration structure for command line options
- Define type definitions for package information handling
…ystem and dependency data

- Add comprehensive envinfo collection including system, binaries, managers, utilities, servers, IDEs, languages, databases and browsers
- Integrate package version detection for core dependencies like antdv-next, vue, vite, typescript and other build tools
- Implement ecosystem package scanning to identify @antdv-next and @v-c scoped packages
- Add npm registry detection in binaries section
- Create structured data output with text, markdown and JSON formatting options
- Replace basic arg parsing with resolved config integration
- Add proper error handling for package info retrieval and system command execution
- Implement formatted table output for markdown rendering with proper alignment
- Update command description from 'ant-related' to 'antdv-related' for clarity
- Import ArgsDef and create OUTPUT_FORMATS constant with supported formats
- Define OutputFormat type for better type safety
- Change format arg type from string to enum with validation options
- Update defaultArgs to use satisfies ArgsDef for better typing
- Remove unnecessary DeepWriteable utility type
- Update ResolvedConfig to use OutputFormat type instead of generic string
@lonewolfyx

Copy link
Copy Markdown
Author

support antdv env command:

  • antdv env --format=json
  • antdv env --format=markdow
image

…dule

- Move console output logic from env command to output utility
- Create ResolvedContent interface for structured content handling
- Implement output function with format switching capability
- Remove direct console.log calls in favor of centralized output
- Maintain support for json, markdown, and text formats
- Centralize formatting logic for better maintainability
… files

- Fetch remote git tags matching antdv-next@1.* pattern from repository
- Parse semantic version tags and validate major version requirement
- Group tags by minor versions to create organized changelog records
- Generate JSON files for each version containing changelog data
- Remove stale minor version files during synchronization process
- Create output directory and write formatted changelog JSON files
- Implement error handling for invalid tags and git operations
- Add semver package version ^7.8.5 as production dependency
- Add @types/semver package version ^7.8.0 as dev dependency
- Update pnpm-lock.yaml with new dependency resolutions
- Include proper type definitions for semver usage
- Added support for parsing and handling multiple major versions (1, 2, 3, 4)
- Modified tag fetching to work with different major versions instead of fixed target
- Updated semver parsing using proper semver library for better version handling
- Changed output structure to generate separate changelog files per major version
- Implemented minor changelog files that track highest base version within each group
- Updated file naming pattern to include major version numbers in filenames
- Modified stale file removal to only clean up files belonging to synced major versions
- Enhanced error handling for empty tag collections and invalid semantic versions
- Added comprehensive version comparison and grouping logic for multi-major support
- Add publishedAt field to changelog records with npm publish timestamps
- Fetch package publish times from npm registry using tinyexec
- Create VersionRecord and ChangelogRecord interfaces for better typing
- Implement formatSemver function to handle build metadata correctly
- Add validation for missing npm publish times in changelog data
- Update script to use PACKAGE_NAME constant for tag prefixing
- Refactor buildOutputFiles to integrate publish time data into output
- Add error handling for invalid npm publish time responses
- Added dayjs dependency to package.json
- Imported dayjs and utc plugin in sync script
- Extended dayjs with utc functionality
- Replaced native Date constructor with dayjs.utc for parsing
- Used dayjs validation instead of isNaN check
- Formatted date output as YYYY-MM-DD string format
- Added giget package version 3.3.1 to package.json dependencies
- Updated pnpm-lock.yaml with giget specification and resolution
- Included giget in the locked dependency tree structure
- Ensured proper integration with existing build tooling ecosystem
- Create new script to parse English and Chinese changelog files
- Download Ant Design Vue repository from GitHub as template source
- Parse changelog markdown files using regex patterns for version headings
- Validate release dates and handle both inline and separate date formats
- Merge English and Chinese changelog entries by version number
- Generate JSON output with multilingual changelog records
- Add proper error handling for duplicate versions and mismatched dates
- Include temporary directory cleanup after processing completes
…it format

- Replace locale-based dual changelog system with single English changelog parsing
- Add ChangelogItem interface with component, type, and description fields
- Implement list item collection with proper multiline support
- Add conventional commit pattern matching for changelog entries
- Remove Chinese changelog integration and merging logic
- Update output format to include changelog item counts and statistics
- Add warning for skipped list items without conventional commit metadata
- Add regex validation to ensure date follows YYYY-MM-DD format
- Throw error with context when invalid date format is detected
- Extract year, month, and day using slice instead of split
- Maintain UTC date parsing behavior after validation
- Preserve existing date validation logic flow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant