diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-06-23 09:25:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-23 09:25:01 +0200 |
commit | 49e2854d5c15bbce3f24f91da34450e8f209295b (patch) | |
tree | f5aa95445549cc151e86f144b40464eecee28cf7 /install.sh | |
parent | 4eaaa27bb5b9a5725b26471a39548d764fc9cd0a (diff) | |
parent | 496cfdc0172fd55cb555f74b64704c8f50c71b77 (diff) | |
download | wallabag-49e2854d5c15bbce3f24f91da34450e8f209295b.tar.gz wallabag-49e2854d5c15bbce3f24f91da34450e8f209295b.tar.zst wallabag-49e2854d5c15bbce3f24f91da34450e8f209295b.zip |
Merge pull request #2142 from wallabag/v2-use-npm
Manage assets through npm
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..414f73f2 --- /dev/null +++ b/install.sh | |||
@@ -0,0 +1,29 @@ | |||
1 | #! /usr/bin/env bash | ||
2 | |||
3 | if [[ $ASSETS == 'nobuild' ]]; then | ||
4 | composer install --no-interaction --no-progress --prefer-dist -o | ||
5 | else | ||
6 | |||
7 | echo "Installing PHP dependencies through Composer..." | ||
8 | if [[ $ASSETS == 'build' ]]; then | ||
9 | composer install --no-interaction --no-progress --prefer-dist -o | ||
10 | else | ||
11 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | ||
12 | fi | ||
13 | |||
14 | chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm | ||
15 | echo "Downloading javascript librairies through npm..." | ||
16 | vendor/mouf/nodejs-installer/bin/local/npm install | ||
17 | |||
18 | echo "Downloading fonts librairies through bower..." | ||
19 | node_modules/bower/bin/bower install | ||
20 | |||
21 | echo "Concat, minify and installing assets..." | ||
22 | node_modules/grunt/bin/grunt | ||
23 | |||
24 | if [[ $ASSETS != 'build' ]]; then | ||
25 | echo "Installing wallabag..." | ||
26 | php bin/console wallabag:install --env=prod | ||
27 | fi | ||
28 | |||
29 | fi | ||