Commit 527965ad authored by 夏彬's avatar 夏彬

添加自动化构建的代码

parent 8381d679
......@@ -5,4 +5,5 @@
/pinlei
/pinpai
/t
/d/file
\ No newline at end of file
/d/file
/build/
version=1.0.0
commit="none"
name=${phing.project.name}
author.name="xiabin"
author.email="xiabin@pp.cc"
author.username="xiabin"
pear.channel="pear.marcelog.name"
dir.output=${project.basedir}/build
dir.fe_output=${project.basedir}/static/assets
dir.tmp=${dir.output}/tmp
dir.front_end=${project.basedir}/static
node=/home/ops/dev/node/bin/node
webpack = ${node} /home/ops/dev/node/bin/webpack
npm=/home/ops/dev/node/bin/npm
cnpm=${node} /home/ops/dev/node/bin/cnpm
ftp.host=192.168.1.35
ftp.port=40021
ftp.username=pp_pro
ftp.password=8XFX`kAox4j_or1&m=$q0d87bx
ftp.dir=./
php.bin=/usr/local/webserver/php715/bin/php
defaultpear.bin=/home/ops/dev/pear/bin/pear
<project name="zuiketang" default="all" basedir="./">
<echo message="platform ${platform}"/>
<if>
<equals arg1="${platform}" arg2="win"/>
<then>
<property file="${project.basedir}/build_win.properties"/>
</then>
<else>
<property file="./build.properties"/>
</else>
</if>
<!--创建构建输出目录-->
<target name="prepare" depends="clean">
<mkdir dir="${dir.output}"/>
</target>
<!--清空构建输出目录-->
<target name="clean">
<delete dir="${dir.output}"/>
</target>
<!-- 初始化框架 -->
<target name="init" depends="prepare">
<echo message="copy to build start"/>
<!--copy common -->
<copy todir="${dir.output}/">
<fileset dir="./">
<patternset>
<exclude name="e/config/"/>
<include name="**/**"/>
</patternset>
</fileset>
</copy>
<delete file="${dir.output}/build.xml" />
<delete file="${dir.output}/build.properties" />
<delete file="${dir.output}/build_win.properties" />
<echo message="copy to build end"/>
</target>
<target name="all" depends="init"/>
</project>
version=1.0.0
commit="none"
name=${phing.project.name}
author.name="xiabin"
author.email="xiabin@pp.cc"
author.username="xiabin"
pear.channel="pear.marcelog.name"
dir.output=${project.basedir}/build
dir.fe_output=${project.basedir}/static/assets
dir.front_end=${project.basedir}/static
node=node
webpack=webpack
npm=cnpm
cnpm=cnpm
ftp.host=114.112.81.8
ftp.port=40021
ftp.username=pp_pro
ftp.password=8XFX`kAox4j_or1&m=$q0d87bx
ftp.dir=
php.bin=php
defaultpear.bin=pear
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment