New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hhorg/hh-cli

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hhorg/hh-cli

项目基础架构脚手架

  • 1.3.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@hhorg/hh-cli

项目基础架构脚手架。环境要求:node(任意版本)

一、全局安装脚手架,命令行执行:

npm install @hhorg/hh-cli -g

二、初始化项目模板

hh init
选择一个项目模板,自动初始化项目,及自动安装依赖

三、配置脚手架内置config.json文件,操作命令,如下:

执行指令后,会自动打开config.json配置文件,自行去配置配置项,命令行执行:
hh sync_config

四、config.json配置文件中各字段含义:

字段类型
含义
备注
blackListArray文件同步黑名单默认:["git", "node_modules", "dist", "yarn.lock", "package-lock"]
sourcePathString本地源仓库文件夹路径pwd获取绝对路径(如:/Users/fanghui/projects_plugins/node-copy-repo/xiaohui)
targetPathString本地目标仓库文件夹路径
targetBranchString想要提交到目标仓库的分支pushGit为true时生效
pushGitBoolern是否直接push到目标仓库远端true:是;false:否
pushGitCommitNameString提交远端的commit名称提交的真正commit会在本名称后默认加上时间戳(如:同步-1712796640434)。pushGit为true时生效

五、配置完成后,执行同步代码操作,(基于脚手架内置config.json文件),命令行执行:

hh sync

六、脚手架工具版本,如下:

hh -v // 查看当前脚手架工具版本

FAQs

Package last updated on 11 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc