aboutsummaryrefslogblamecommitdiffhomepage
path: root/install.sh
blob: 29b343b2954ab66135db427124eff3033e15cc31 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                    
                                 
                                                          
                                                                    

                                                          
                                                

                                                      

                                                  

                                                                    
  
#! /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 librairies through npm..."
    vendor/mouf/nodejs-installer/bin/local/npm install

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