diff options
Diffstat (limited to 'app-from-scratch.sh')
-rw-r--r-- | app-from-scratch.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-from-scratch.sh b/app-from-scratch.sh index 9d6ed70..9fcdf90 100644 --- a/app-from-scratch.sh +++ b/app-from-scratch.sh @@ -208,3 +208,22 @@ cat ~/chd_gestion/schema/enum-tables-data-mysql.sql | sudo mariadb fai_gestion # - ALTER TABLE equipements CHANGE ipmgmt_id ip_management VARCHAR(39) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; # - import PROCEDURE refresh_network_elt(IN root INT) # - TODO : work on fai_gestion_exports permissions +# - TODO : dump everything cleanly then git + +# bake initial setup +cd ~/chd_gestion/fai_gestion/ +composer.phar require --dev cakephp/bake:~1.0 +yes | cake bake plugin CustomTheme +v=vendor/cakephp/bake/src/Template/Bake +p=plugins/CustomTheme/src/Template/Bake +mkdir -p $p/{Controller,Element/Controller,Model,Template} +cp -a $v/Controller/controller.twig $p/Controller/ +cp -a $v/Element/form.twig $p/Element/ +cp -a $v/Element/Controller/{add,edit,index}.twig $p/Element/Controller +cp -a $v/Model/{entity,table}.twig $p/Model/ +cp -a $v/Template/{index,view}.twig $p/Template/ +editor config/bootstrap.php config/bootstrap_cli.php +# load the plugin only in cli mode +git checkout -- config/bootstrap.php +git add ../app-from-scratch.sh composer.json composer.lock config/bootstrap_cli.php plugins/ +git commit -m "Bake : setup and create empty CustomTheme" |