1 Star 0 Fork 8

shenhua/NoahV

forked from 百度开源/NoahV 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
travis.sh 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
yuyouwen 提交于 2019-04-17 11:57 . add npm cache
#!/bin/sh
FILE_NAME="noahv"
CUR_DIR=$(cd `dirname $0`; pwd)
# prepare
if [ -d $CUR_DIR/template/common/noahv ]; then
rm -rf $CUR_DIR/template/common/noahv
fi
cd $CUR_DIR/template/common
echo "install node_module"
npm install
# build
echo "start build common project"
node scripts/build.js
if [ $? -ne 0 ]; then
echo "common project build failed!"
exit 1;
fi
echo "common project build success"
# prepare
if [ -d $CUR_DIR/template/dashboard/noahv ]; then
rm -rf $CUR_DIR/template/dashboard/noahv
fi
cd $CUR_DIR/template/dashboard
echo "install node_module"
npm install
# build
echo "start build dashboard project"
node scripts/build.js
if [ $? -ne 0 ]; then
echo "dashboard project build failed!"
exit 1;
fi
echo "dashboard project build success"
# test:coverage
cd $CUR_DIR/components/common
echo "install node_module for common components"
npm install
# build
npm run test:coverage
echo "common components tested"
cd $CUR_DIR/components/common
echo "install node_module for visual components"
npm install
# build
npm run test:coverage
echo "visual components tested"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/shenhua2014/NoahV.git
git@gitee.com:shenhua2014/NoahV.git
shenhua2014
NoahV
NoahV
master

搜索帮助