Skip to content

Commit

Permalink
Merge 1fe4662 into 34ec10e
Browse files Browse the repository at this point in the history
  • Loading branch information
blankoworld committed Sep 5, 2019
2 parents 34ec10e + 1fe4662 commit 151f88f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,20 @@ echo "Install with command: ${cmd} ${flags[@]}"
${cmd} ${flags[@]}

# install assets utils
npm i npm@latest -g --prefix `pipenv --venv` && pipenv run npm install --prefix `pipenv --venv` --silent -g node-sass@4.9.0 clean-css@3.4.19 uglify-js@2.7.3 requirejs@2.2.0 @angular/cli@7.0.4

virtualenv_path=`pipenv --venv`
pipenv run npm i npm@latest -g --prefix "${virtualenv_path}" && pipenv run npm install --prefix "${virtualenv_path}" --silent -g node-sass@4.9.0 clean-css@3.4.19 uglify-js@2.7.3 requirejs@2.2.0 @angular/cli@7.0.4

# collect static files and compile html/css assets
CWD=`pwd`
# build the angular ui application
cd ui; npm ci; pipenv run npm run deploy
cd ui; pipenv run npm ci; pipenv run npm run deploy

# install the npm dependencies
cd ${CWD}
pipenv run invenio npm
static_folder=$(pipenv run invenio shell --no-term-title -c "print('static_folder:%s' % app.static_folder)"|grep static_folder| cut -d: -f2-)
cd $static_folder
npm install
pipenv run npm install
cd ${CWD}

# build the web assets
Expand Down

0 comments on commit 151f88f

Please sign in to comment.