wise 下的顶部提示模块
npm install --registry=http://registry.npm.baidu-int.com
在工程根目录新建 dev.config.js
文件,内容如下(把机器名换成你的测试机/调研机):
module.exports = {
receiver: 'http://xxx.baidu.com:8210'
};
npm run lint
: 检查代码风格npm run test
: 执行单元测试npm run coveralls
: 产出测试覆盖率报告npm run build
: 编译并将编译后的代码生成至dist目录下npm run deploy
: 将dist目录下的文件部署到测试机,依赖测试机的 receiver 文件,以及本地dev.config.js配置npm run watch
: 实时编译部署开发环境代码,依赖测试机的 receiver 文件,以及本地dev.config.js配置dev.config.js
。参考:http://agroup.baidu.com/wise-survive/md/article/977636
预编译文件路径:/home/work/odp/tmp/odp/smarty/modules/{{projectName}}/ 预编译部署路径:/home/work/odp/