53 Star 181 Fork 0

腾讯开源/wepy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
packages
scripts
test
build-cases
scripts
build.sh
unit.js
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.nycrc
.prettierrc.yml
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
CONTRIBUTING_COMMIT.md
LICENSE
README.md
README_EN.md
lerna.json
package-lock.json
package.json
verpub.config.js
克隆/下载
build.sh 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# test wepy new demo
# Start in tasks/ even if run from root directory
cd "$(dirname "$0")"
function cleanup() {
echo 'Cleaning up.'
}
# Error messages are redirected to stderr
function handle_error() {
echo "$(basename $0): ERROR! An error was encountered executing line $1." 1>&2;
cleanup
echo 'Exiting with error.' 1>&2;
exit 1
}
function handle_exit() {
cleanup
echo 'Exiting without error.' 1>&2;
exit
}
# Exit the script with a helpful error message when any error is encountered
trap 'set +x; handle_error $LINENO $BASH_COMMAND' ERR
# Cleanup before exit on any termination signal
trap 'set +x; handle_exit' SIGQUIT SIGTERM SIGINT SIGKILL SIGHUP
# Echo every command being executed
set -x
# Go to root
cd ..
root_path=$PWD
npm link packages/cli
wepy -v
wepy list
mkdir -p /tmp/templates/
cd /tmp/templates/
buildcases="${root_path}/test/build-cases"
for bc in ${buildcases}/*; do
name=$(basename $bc .sh)
"$root_path"/test/build-cases/"$name".sh
cd "/tmp/templates/${name}"
node "$root_path"/packages/cli/bin/wepy.js build
done
# Test build demos
cd /tmp/templates
# node "$root_path"/packages/cli/bin/wepy.js init wepyjs/wepy-wechat-demo wepy-wechat-demo
git clone https://github.com/wepyjs/wepy-wechat-demo.git --branch 2.0
cd wepy-wechat-demo
npm install
npm run build
cd ..
# Cleanup
cleanup
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Tencent/wepy.git
git@gitee.com:Tencent/wepy.git
Tencent
wepy
wepy
master

搜索帮助