aboutsummaryrefslogtreecommitdiffhomepage
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 00000000..a486e8a5
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,18 @@
1#! /usr/bin/env bash
2
3if [[ $ASSETS == 'build' ]]; then
4 echo "Installing PHP dependencies through Composer..."
5 composer install --no-interaction --no-progress --prefer-dist -o
6
7 chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
8 echo "Downloading javascript librairies through npm..."
9 vendor/mouf/nodejs-installer/bin/local/npm install
10
11 echo "Downloading fonts librairies through bower..."
12 node_modules/bower/bin/bower install
13
14 echo "Concat, minify and installing assets..."
15 node_modules/grunt/bin/grunt
16else
17 composer install --no-interaction --no-progress --prefer-dist -o
18fi