Commit aa831242 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout de post-*-cmd utiles dans composer.json

parent eb8b611a
Pipeline #8873 passed with stage
in 14 seconds
......@@ -21,7 +21,22 @@
},
"scripts": {
"post-install-cmd": [
"mkdir -p data/DoctrineORMModule/Proxy ; chmod -R 777 data/DoctrineORMModule/Proxy"
"cp -r vendor/unicaen/app/public/unicaen public/",
"mkdir -p vendor/mpdf/mpdf/ttfontdata && chmod -R 777 vendor/mpdf/mpdf/ttfontdata",
"mkdir -p data/cache && chmod -R 777 data/cache && rm -rf data/cache/*",
"mkdir -p data/DoctrineModule/cache && chmod -R 777 data/DoctrineModule/cache && rm -rf data/DoctrineModule/cache/*",
"mkdir -p data/DoctrineORMModule/Proxy && chmod -R 777 data/DoctrineORMModule/Proxy && rm -rf data/DoctrineORMModule/Proxy/*",
"vendor/bin/doctrine-module orm:clear-cache:query &",
"vendor/bin/doctrine-module orm:clear-cache:metadata &",
"vendor/bin/doctrine-module orm:clear-cache:result &",
"vendor/bin/doctrine-module orm:generate-proxies &"
],
"post-create-project-cmd": [
"cp -r config/autoload/local.php.dist config/autoload/local.php",
"cp -r vendor/unicaen/app/config/unicaen-app.global.php.dist config/autoload/unicaen-app.global.php",
"cp -r vendor/unicaen/app/config/unicaen-app.local.php.dist config/autoload/unicaen-app.local.php",
"cp -r vendor/unicaen/auth/config/unicaen-auth.global.php.dist config/autoload/unicaen-auth.global.php",
"cp -r vendor/unicaen/auth/config/unicaen-auth.local.php.dist config/autoload/unicaen-auth.local.php"
]
},
"autoload": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment