Commit b0f4cd68 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

deploy : ajout des .ignore dans les plugins. max.sh : Pas de npm install dans un env de prod

parent 26bd0a29
......@@ -32,6 +32,11 @@ cp $DIRECTORY/../max.xq $RELEASE_FOLDER
cp $DIRECTORY/../legal.txt $RELEASE_FOLDER
cp $DIRECTORY/../README.md $RELEASE_FOLDER
cp -Lr $DIRECTORY/../plugins $RELEASE_FOLDER
MAX_PLUGINS_DIR=$RELEASE_FOLDER/plugins
for i in `ls $MAX_PLUGINS_DIR`
do
touch $MAX_PLUGINS_DIR/$i/.ignore
done
cp $DIRECTORY/../tools/max.sh $RELEASE_FOLDER/tools
cp -r $DIRECTORY/../tools/xq $RELEASE_FOLDER/tools
cp $DIRECTORY/../tools/*.xml $RELEASE_FOLDER/tools
......@@ -60,9 +65,9 @@ mv site ../$RELEASE_FOLDER/documentation
cd ..
rm -rf max-documentation
echo "RELEASE BUILT DONE in "$RELEASE_FOLDER
zip -r $RELEASE_FOLDER.zip $RELEASE_FOLDER
mkdir dist
mv $RELEASE_FOLDER.zip $RELEASE_FOLDER dist
\ No newline at end of file
mv $RELEASE_FOLDER.zip $RELEASE_FOLDER dist
echo "RELEASE BUILT DONE in dist/"$RELEASE_FOLDER.zip
\ No newline at end of file
......@@ -369,6 +369,8 @@ new_edition_build(){
init_dev_max(){
if [ -f $DIRECTORY'/../package.json' ]
then
dependency_test npm
cd $DIRECTORY/..
npm install
......@@ -383,6 +385,7 @@ init_dev_max(){
echo "
*** MaX initialization is finished :) ***
";
fi
}
......
Supports Markdown
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