@compass-aiden/cli v0.18.0
@compass-aiden/cli
Command line interfaces for Compass CLI
Getting Started
npm install -g @compass-aiden/cli
全局安装cli 或着 npm使用 npx @compass-aiden/cli <command>
, pnpm使用pnpm dlx @compass-aiden/cli <command>
等方式临时使用
compass --help
获取帮助信息
compass update
Cli更新检查
compass pull
通过拉取模板来创建项目, compass pull --help
可以获得更多可选项说明,支持拉取的模板如下:
Name | Description |
---|---|
Utils | Utils实用程序工具库模板 |
Styles | Styles基础样式库模板 |
Commandline | Commandline 命令行模板 |
Vue | Vue 基础项目模板 |
VueComponents | Vue 组件库模板 |
自定义模板 | 支持拉取Github自定义模板,支持注入模板变量,排除模板文件等定制化处理 |
compass plugin
向项目添加或删除插件, compass plugin --help
可以获得更多可选项说明,支持创建的插件如下:
Name | Description |
---|---|
eslint | Eslint 基于Airbnb规范对代码进行检查 |
prettier | Prettier 代码格式化 |
jest | Jest 单元测试 |
stylelint | Stylelint 样式检查 |
githubactions | Github actions 基于github actions添加CICD |
githooks | 使用SimpleGitHooks基于githooks对项目添加自动化任务 |
commitlint | Commitlint 提交信息格式校验,该插件依赖于githooks插件 |
prettyquick | PrettyQuick 在Commit前仅对变更文件进行快速格式化,该插件依赖于githooks及prettier插件 |
compass create
创建各官方标准项目, compass create --help
可以获得更多可选项说明, 支持创建的项目如下:
Name | Description |
---|---|
Vue | Vue项目 |
React | React项目 |
Angular | Angular项目 |
Next | Next SSR项目 |
Turbo | Turbo monorepo项目 |
Uniapp | Uniapp 跨端项目 |
Electron | Electron桌面端项目 |
Nest | Nest后端项目 |
Contributes
Install
pnpm install
Base commands
pnpm dev
启用开发模式pnpm build
生产构建pnpm lint
代码校验pnpm format
代码格式化
Publish library
提交合并请求至master即可, publish,tag,release都将自动化处理
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago