使用node实现压缩文件,并上传到服务器。
- 实现交互式命令行
- 实现默认值使用配置文件的形式
- 压缩文件
- 实现进度条
- 链接服务器,删除源文件,上传压缩文件并解压
- 删除、上传和解压后实现提示
- 增加一个打包信息文件
1、node-ssh:使node可以进行ssh链接
2、archiver:压缩文件
3、inquirer:一个进度条插件 让等待不在无聊的插件
4、ora:压缩文件的插件 用来压缩打包好的静态文件
5、zip-local:交互式命令行
6、shelljs:用来在代码中执行命令行操作
7、chalk:用于控制台带颜色的输出 告别纯白字体
1、ora库无法使用require引入
使用5.4.1版本