forked from melhoridadesa/portalv5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
47 lines (46 loc) · 1.62 KB
/
build.xml
File metadata and controls
47 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<project name="Melhor Idade" default="start">
<target name="start" depends="composer,update,dirs,node,bower,gulp, dirsPermission, env"/>
<target name="composer">
<available file="composer.phar" property="composer.exists"/>
<echo msg="${composer.exists}"/>
<if>
<not>
<isset property="composer.exists"/>
</not>
<then>
<php expression="file_put_contents('composer.phar',file_get_contents('https://getcomposer.org/installer'))" />
<exec command="php composer.phar"/>
<composer command="install"/>
</then>
</if>
</target>
<target name="update">
<echo msg="Atualizando os pacotes PHP"/>
<composer command="update"/>
</target>
<target name="node">
<echo msg="Instalando o node"/>
<exec command="npm install" />
</target>
<target name="bower">
<echo msg="Instalando o bower"/>
<exec command="bower install --allow-root" />
</target>
<target name="gulp">
<echo msg="Executando a tarefa do Gulp"/>
<exec command="gulp portal-scritps" dir="public/src" />
</target>
<target name="dirs">
<mkdir dir="log" />
<chmod file="log" mode="0777" verbose="true" />
</target>
<target name="dirsPermission">
<echo msg="Aplicando permissão na pasta"/>
<chmod file="vendor" mode="0777" verbose="true" />
</target>
<target name="env">
<echo msg="Criando .env"/>
<exec command="cp .env.example .env" />
</target>
</project>