Commit 7acd6bfc authored by Tyrannas's avatar Tyrannas
Browse files

installation automatique des packages

parent c9378a2e
<?xml version="1.0" encoding="UTF-8"?>
<project name="antModule" default="main" basedir="./">
<taskdef resource="net/sf/antcontrib/antlib.xml">
<taskdef resource="net/sf/antcontrib/antlib.xml">
<pathelement location="lib/ant-contrib.jar"/>
<property name="node" value="false" ></property>
......@@ -53,6 +53,7 @@
<target name="insertion" if="wantToInsert">
<antcall target="installModules"/>
<exec executable="node" dir="./node">
<arg line="insert.js"/>
......@@ -64,4 +65,19 @@
<target name="checkModules">
<condition property="modNotInstalled">
<available file="node_modules" type="dir"/>
<target name="installModules" depends="checkModules" if="modNotInstalled">
<echo>"modules non installés"</echo>
<exec executable="npm" dir=".">
<arg line="install"/>
\ 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