# npm-cli **Repository Path**: moretime_2023/npm-cli ## Basic Information - **Project Name**: npm-cli - **Description**: @moretime/cli 开发脚手架创建 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-06 - **Last Updated**: 2024-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 闲暇·npm脚本 ## 安装 ```bash pnpm add @moretime/npm-sh -D npm install @moretime/npm-sh -D yarn add @moretime/npm-sh -D ``` ## 使用 ```sh # 规范化提交git,添加提交类型,集成修改版本信息 npx git-push # 映射应用,从配置文件中提取仓库与本地目录的映射关系,并自动映射 # 需要注意的是,这里不能使用相对路径,只能使用/开头,/指向项目根目录 npx app-mapping /repo.mapping.json # 集成npm发布,接受路径传参 # 路径传参时,应这样编写命令 npx npm-publish ./dist; 此操作将会仅发布dist目录下的内容,在此之前,至少应把package.json复制至提交目录之下,保证发布能够完成。 npx npm-publish ``` ## License MIT