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

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

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

    echo "Downloading fonts librairies through bower..."
    node_modules/bower/bin/bower install

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