$ git clone [email protected]:fieteam/fie.git
依赖安装完后,会自动执行 lerna bootstrap
npm install
# 进入 git clone 下来的fie 项目根目录,执行npm run link
$ npm run link
执行完上面的步骤之后 ,现在你在本机任何目录运行的 fie xxx 命令都将执行你当前项目目录下的代码,你可以轻松的进行调试和修改.
$ npm install node-inspector -g
$ node-debug /path/to/fie/bin/fie [commands]
通过调用命令时传入 DEBUG=fie-* 可以查看 fie 核心打印的一些调试信息,用于快速定位错误原因
$ DEBUG=fie-* node /path/to/fie/bin/fie [commands]
可以结合 node-debug 一起使用, 在调试套件,插件时也可以在 DEBUG 中传入多个值,使用英文逗号分隔, 具体可以查看debug模块
执行单元测试
$ npm test