Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
4e6da03a
Commit
4e6da03a
authored
Oct 18, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加微信支付的模块
parent
33733ea3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
196 additions
and
8 deletions
+196
-8
build.properties
src/build.properties
+21
-0
build.xml
src/build.xml
+154
-0
build_win.properties
src/build_win.properties
+21
-0
test.php
src/test.php
+0
-8
No files found.
src/build.properties
0 → 100644
View file @
4e6da03a
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
src/build.xml
0 → 100644
View file @
4e6da03a
<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>
src/build_win.properties
0 → 100644
View file @
4e6da03a
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
src/test.php
deleted
100644 → 0
View file @
33733ea3
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2016/10/13
* Time: 上午10:38
*/
var_dump
(
function_exists
(
'fnmatch'
));
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment