Commit 4e6da03a authored by xiabin's avatar xiabin

添加微信支付的模块

parent 33733ea3
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
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/php55/bin/php
defaultpear.bin=/home/ops/dev/pear/bin/pear
<project name="zuiketang" default="all" basedir="./src">
<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}"/>
<mkdir dir="${dir.fe_output}"/>
</target>
<!--清空构建输出目录-->
<target name="clean">
<delete dir="${dir.output}"/>
<delete dir="${dir.fe_output}"/>
</target>
<target name="package">
<echo message="package start"/>
<copy todir="${dir.output}">
<filelist dir="." files="index.php"/>
<filelist dir="." files=".htaccess"/>
</copy>
<copy todir="${dir.output}/system">
<fileset dir="./system">
<include name="**/**"/>
</fileset>
</copy>
<copy todir="${dir.output}/uploads">
<fileset dir="./uploads">
<include name="**/**"/>
</fileset>
</copy>
<copy todir="${dir.output}/static">
<fileset dir="./static">
<include name="assets/**"/>
</fileset>
</copy>
<copy todir="${dir.output}/application">
<fileset dir="./application">
<exclude name="**/*.log"/>
<exclude name="./config/constants.php"/>
</fileset>
</copy>
<tstamp>
<format property="DATE" pattern="%Y%m%d%H%M" locale="zh_ZH"/>
</tstamp>
<copy file="./application/config/constants.php" tofile="${dir.output}/application/config/constants.php"
overwrite="true">
<filterchain>
<replaceregexp>
<regexp pattern='\d{8}(?=\"\).+)' replace="${DATE}"/>
</replaceregexp>
</filterchain>
</copy>
<echo message="package end"/>
</target>
<target name="deploy">
<echo message="deploy start"/>
<ftpdeploy
host="${ftp.host}"
port="${ftp.port}"
username="${ftp.username}"
password="${ftp.password}"
dir="${ftp.dir}"
passive="true">
<fileset dir="${dir.output}">
<include name="**/**"/>
<exclude name="index.php"/>
<exclude name=".htaccess"/>
</fileset>
</ftpdeploy>
<echo message="deploy end"/>
</target>
<target name="fe_build">
<echo message="fe_bulid start"/>
<exec command="${npm} install" passthru="true" dir="${dir.front_end}"/>
<if>
<equals arg1="${platform}" arg2="win"/>
<then>
<exec command=" ${npm} run test" dir="${dir.front_end}" passthru="true"/>
</then>
<else>
<exec command="${npm} run test" passthru="true" dir="${dir.front_end}"/>
</else>
</if>
<echo message="fe_bulid end"/>
</target>
<target name="composer_install">
<echo message="composer install start"/>
<exec command="${php.bin} ${project.basedir}/bin/composer.phar install --optimize-autoloader" passthru="true"
dir="${project.basedir}/application"/>
<exec command="${php.bin} ${project.basedir}/bin/composer.phar dump-autoload --optimize" passthru="true"
dir="${project.basedir}/application"/>
<echo message="composer install end"/>
</target>
<target name="fe_build_production">
<echo message="fe_bulid start"/>
<exec command="${npm} install" passthru="true" dir="${dir.front_end}"/>
<if>
<equals arg1="${platform}" arg2="win"/>
<then>
<exec command=" ${npm} run pro" dir="${dir.front_end}" passthru="true"/>
</then>
<else>
<exec command="${npm} run pro" passthru="true" dir="${dir.front_end}"/>
</else>
</if>
<echo message="fe_bulid end"/>
</target>
<target name="timestamp">
<tstamp>
<format property="DATE" pattern="%Y%m%d%H%M" locale="nl_NL"/>
</tstamp>
<copy file="./application/config/constants.php" tofile="constants.php" overwrite="true">
<filterchain>
<replaceregexp>
<regexp pattern='\d{8}(?=\"\).+)' replace="${DATE}"/>
</replaceregexp>
</filterchain>
</copy>
</target>
<target name="index_testing">
<copy file="./index-testing.php" tofile="./build/index.php" overwrite="true"></copy>
</target>
<target name="index_production">
<copy file="././index-production.php" tofile="./build/index.php" overwrite="true"/>
</target>
<target name="production_build">
<delete file="${dir.output}/application/controllers/Test.php"/>
</target>
<target name="all" depends="clean, prepare,composer_install, fe_build,package,index_testing"/>
<target name="build" depends="clean, prepare,fe_build, package"/>
<target name="package" depends="clean, prepare, fe_build,package, deploy"/>
<target name="test" depends="clean, prepare,composer_install,fe_build,package,index_testing, deploy"/>
<target name="production"
depends="clean,prepare,composer_install,fe_build_production,package,index_production,production_build"/>
</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=npm
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
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2016/10/13
* Time: 上午10:38
*/
var_dump(function_exists('fnmatch'));
\ No newline at end of file
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