[DEV] update submodule script

This commit is contained in:
Baptiste Lemoine 2018-10-09 16:13:28 +02:00 committed by Baptiste Lemoine
parent 2eac04c1e1
commit ec6c04debb
7 changed files with 26 additions and 4 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "caisse-bliss-frontend"]
path = web/caisse-bliss-frontend
url = https://gitlab.com/tykayn1/caisse-bliss-frontend
path = caisse-bliss-frontend
url = https://framagit.org/tykayn/caisse-bliss-frontend.git

View File

@ -1,7 +1,6 @@
{% extends 'base.html.twig' %}
{% block body %}
<div id="wrapper">
<div id="container" class="container">
<div id="caisse-now" class="tab-pane fade in active">
<div class="caisse-main row"
ng-app="caisse"

View File

@ -0,0 +1,8 @@
{% extends 'base.html.twig' %}
{% block body %}
<div id="wrapper">
<h1>Appli angular embarquée</h1>
<script href="{{ asset('/assets/js/build-frontend-submodule/main.js') }}"></script>
<div ng-app="tktest"></div>
</div>
{% endblock %}

View File

@ -0,0 +1 @@
console.log('this file is a placeholder, if you see this, it means you did not update the frontend submodule');

1
caisse-bliss-frontend Submodule

@ -0,0 +1 @@
Subproject commit 474d8db5d74ec1283bf9b9e1a0fe03221538d44c

11
compile-frontend.sh Executable file
View File

@ -0,0 +1,11 @@
#/bin/bash
echo "###############################";
echo "start update of frontend submodule assets";
echo "###############################";
git submodule update;
cd caisse-bliss-frontend
ng build
cp caisse-bliss-frontend/dist/appli/* /assets/js/build-frontend-submodule
echo "###########";
echo "update done";
echo "###########";

View File

@ -8,6 +8,8 @@ composer self-update
composer update
yarn --version
bash compile-frontend.sh
yarn run encore production
php bin/console doctrine:schema:update --dump-sql
php bin/console doctrine:schema:update --force