
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
coderhxl is a CLI for quickly building and developing front-end projects.
coderhxl 是一个快速搭建和开发前端项目的 CLI 。
语言: 简体中文 | English
无需每次创建项目都要从零构建, 减少重复工作。
通过 coderhxl 创建的项目是基于 Vite , 并且做了很多配置, 比如: 对 axios 进行封装, 动态导入路由配置。详情在 Vue 部分 。
在一个项目中, 必定要创建很多组件, 同时也需要配置对应的路由。比如有 15 个, 依次创建组件再配置路由必然是个重复工作, 效率低。 而通过 coderhxl 的一条命令,一键创建一个组件并自动配置路由再搭配 coderhxl 配置的自动导入路由功能给 vue-router 导入所有路由配置, 效率高。
使用 NPM:
npm install coderhxl -g
使用 Yarn:
yarn add coderhxl -g
使用 PNPM:
pnpm add coderhxl -g
coderhxl 目前支持 Vue 项目, 后续会考虑 React 项目。
项目配置:
coderhxl create <project>
创建的组件使用的是
coderhxl add-cpn <name>
coderhxl add-cpn main # 默认创建到 src/components
coderhxl add-cpn main -d src/components # 指定创建到 src/components
状态管理采用 pinia ( Vue 官方推荐的状态管理)
coderhxl add-pinia <name>
coderhxl add-pinia main # 默认创建到 src/store/main
coderhxl add-pinia main -d src/store/main # 指定创建到 src/store/main
组件
coderhxl add-page <name>
coderhxl add-page main # 默认创建到 src/views
coderhxl add-page main -d src/views # 指定创建到 src/views
coderhxl add-page2 <name>
coderhxl add-page2 main # 组件默认创建到 src/views/main , 路由配置默认创建到 src/router/main
coderhxl add-page2 main -d src/views/main # 指定将组件创建到 src/views/main , 路由配置创建到 src/router/main
请在命令行工具中运行:
coderhxl -h
如有问题请在 https://github.com/coder-hxl/coderhxl 中提 Issues 。
coderhxl is a CLI for quickly building and developing front-end projects.
langue: 简体中文 | English
You don't have to build from scratch every time you create a project, reducing repetitive work.
Using NPM:
npm install coderhxl -g
Using Yarn:
yarn add coderhxl -g
Using PNPM:
pnpm add coderhxl -g
coderhxl currently supports Vue projects, and will consider React projects in the future.
project configuration:
coderhxl create <project>
The component created is written in < script setup >.
coderhxl add-cpn <name>
coderhxl add-cpn main # Create to src/components by default
coderhxl add-cpn main -d src/components # Specify to create to src/components
State management adopts pinia (state management officially recommended by Vue)
coderhxl add-pinia <name>
coderhxl add-pinia main # Create to src/store/main by default
coderhxl add-pinia main -d src/store/main # Specify to create to src/store/main
Component < script setup > is written, and the corresponding routing information is configured (lazy loading mode)
coderhxl add-page <name>
coderhxl add-page main # Create to src/views by default
coderhxl add-page main -d src/views # Specify to create to src/views
coderhxl add-page2 <name>
coderhxl add-page2 main # Components are created to src/views/main by default, and routing configuration is created to src/router/main by default
coderhxl add-page2 main -d src/views/main # Specify that components are created to src/views/main and routing configuration is created to src/router/main
##More
Run the command line tool:
coderhxl -h
If you have any questions, please mention Issues in https://github.com/coder-hxl/coderhxl.
FAQs
coderhxl is a CLI for quickly building and developing front-end projects.
The npm package coderhxl receives a total of 7 weekly downloads. As such, coderhxl popularity was classified as not popular.
We found that coderhxl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.