1 Star 0 Fork 13

yxssfxwzy / wxappUnpacker

forked from being / wxappUnpacker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.sh 1006 Bytes
一键复制 编辑 原始数据 按行查看 历史
Larack 提交于 2019-02-18 20:10 . 脚本命令优化
#!/usr/bin/env bash
install_dependency()
{
echo "1. install dependency"
sudo npm install esprima -g
sudo npm install css-tree -g
sudo npm install cssbeautify -g
sudo npm install vm2 -g
sudo npm install uglify-es -g
sudo npm install js-beautify -g
sudo npm install escodegen -g
echo "2. npm list"
npm list esprima
npm list css-tree
npm list cssbeautify
npm list vm2
npm list uglify-es
npm list js-beautify
npm list escodegen
# echo "3. npm install"
# npm install
return 0;
}
install_npm()
{
echo "install node"
brew install node
echo "node versin is"
node -v
echo "npm versin is"
npm -v
echo "install n"
npm i -g n
echo "update to stable"
n stable
npm i npm
# npm i handlebars --reg=https://registry.npmjs.org
return 0;
}
check_menu()
{
menu=$1
args=$2
param=$3
if [ "-npm" == "$1" ]
then install_npm $args $param
elif [ "-dpc" == "$1" ]
then
install_dependency $args $param
else
install_dependency $1 $2
fi
return 0;
}
# 菜单
check_menu $1 $2 $3
JavaScript
1
https://gitee.com/yxssfxwzy/wxappUnpacker.git
git@gitee.com:yxssfxwzy/wxappUnpacker.git
yxssfxwzy
wxappUnpacker
wxappUnpacker
master

搜索帮助