【发布时间】:2017-01-14 02:37:29
【问题描述】:
我有一个 MeteorJS 项目,并创建了一个打包脚本来构建所有依赖项并进行部署,效果很好。
我想知道是否有创建补丁的命令。这个想法是当我添加新文件和功能时,我想创建一个补丁,并且只构建和部署这些文件。
我的包脚本看起来像:
echo "Check if output folder exists"
if [ ! -d "output" ]; then
mkdir output
fi
echo "Building the project"
meteor build output/ --directory
echo "Changing directory"
cd output/bundle/programs/server
echo "Installing all Node dependencies"
nmp install
cd ../../../
echo "Compressing the package"
zip -r bundle.zip bundle
【问题讨论】: