meishij
v1.1.0
Published
美食杰工具系列
Downloads
22
Readme
#美食杰工具系列
###简介 主要目的:借助工具自动化完成一些以往需要人肉完成的工作,减少工作量,加快效率,减少错误。
###正片 ####安装nodejs及meishij 1.在 官网 下载安装 nodejs ,直接默认安装,不要改动安装路径,因为改了要重新配置nodejs自带的包管理器的一些参数,麻烦;
2.打开命令行;
3.执行 node -v
和 npm -v
查看node以及npm的版本,成功打印说明nodejs的安装没有问题;
4.执行 npm install meishij -g
在本地全局安装美食杰工具 meishij
####使用
1.执行 meishij -V
查看当前版本(大写 V )
2.执行 meishij -h
查看帮助
3.打开 C:\Users\
[用户名]\AppData\Roaming\npm\node_modules\meishij\lib\path.js
修改相应的路径;
需要修改的路径有三个:1. fontPath
:本地前端svn的根目录;2. backPath
:本地后台svn根目录;3. editorPath
:编辑器目录;
####命令详解
**以 jiang
这个专题为例 **
meishij goto <Name>
进入工作目录
如果想要对jiang
的专题进行操作,需要先执行meishij goto jiang
meishij check
检查当前工作目录meishij check
将打印出jiang
meishij release
发布(后台用) 将执行的操作有:1.拷贝jiang.css
到相应目录;2.拷贝jiang
图片文件夹到相应目录;3.格式化的PHP文件其他命令:前端用,就不在这写啦。