@yyds-pitter/cli-project
v1.0.97
Published
前端项目模板命令行工具
Downloads
121
Readme
在 package.json 文件增加 bin 对象,并指定入口文件 dist/index.js。
在命令行运行需要在入口文件的第一行增加 #!/usr/bin/env node { "name": "cli-demo", "version": "0.0.1", "description": "cli demo", "keywords": [ "cli" ], "bin": { "cli-demo": "dist/index.js" } ... }
命令行工具,也会涉及到用户交互的动作
commander:完整的 node.js 命令行解决方案。 inquirer:交互式命令行工具。
lerna publish --no-git-tag-version 忽略git操作