[DEV] ⚡ update submodule script
This commit is contained in:
parent
2eac04c1e1
commit
ec6c04debb
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -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
|
||||
|
@ -1,7 +1,6 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block body %}
|
||||
<div id="wrapper">
|
||||
<div id="container" class="container">
|
||||
<div id="wrapper">
|
||||
<div id="caisse-now" class="tab-pane fade in active">
|
||||
<div class="caisse-main row"
|
||||
ng-app="caisse"
|
||||
|
8
app/Resources/views/logged/ng2.html.twig
Normal file
8
app/Resources/views/logged/ng2.html.twig
Normal 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 %}
|
1
assets/js/build-frontend-submodule/main.js
Normal file
1
assets/js/build-frontend-submodule/main.js
Normal 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
1
caisse-bliss-frontend
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 474d8db5d74ec1283bf9b9e1a0fe03221538d44c
|
11
compile-frontend.sh
Executable file
11
compile-frontend.sh
Executable 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 "###########";
|
Loading…
Reference in New Issue
Block a user