aboutsummaryrefslogtreecommitdiffhomepage
path: root/install.sh
blob: 6bf0263b6e087f1d0fd161282cd8132368b99cae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env bash

if [[ $ASSETS == 'build' ]]; then
    echo "Installing PHP dependencies through Composer..."
    composer update --no-interaction --no-progress

    chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
    echo "Downloading librairies through npm..."
    vendor/mouf/nodejs-installer/bin/local/npm install

    echo "Concat, minify and installing assets..."
    node_modules/grunt/bin/grunt
else
    composer update --no-interaction --no-progress
fi