mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 15:46:37 +03:00
This PR was merged into the master branch.
Discussion
----------
Improve the readability of the Makefile tasks
In case https://github.com/fabpot/flex/issues/29 is accepted, this should be the solution.
Commits
-------
6785a02 Improve the readability of the Makefile tasks
53 lines
1.8 KiB
JSON
53 lines
1.8 KiB
JSON
{
|
|
"bundles": {
|
|
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"]
|
|
},
|
|
"copy-from-recipe": {
|
|
"etc/": "%ETC_DIR%/",
|
|
"src/": "%SRC_DIR%/",
|
|
"web/": "%WEB_DIR%/"
|
|
},
|
|
"composer-scripts": {
|
|
"make cache-warmup": "script",
|
|
"assets:install --symlink --relative %WEB_DIR%": "symfony-cmd"
|
|
},
|
|
"env": {
|
|
"APP_ENV": "dev",
|
|
"APP_DEBUG": "1",
|
|
"APP_SECRET": "%generate(secret)%"
|
|
},
|
|
"makefile": [
|
|
"cache-clear:",
|
|
"\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*",
|
|
".PHONY: cache-clear",
|
|
"",
|
|
"cache-warmup: cache-clear",
|
|
"\t@test -f bin/console && bin/console cache:warmup || echo \"cannot warmup the cache (needs symfony/console)\"",
|
|
".PHONY: cache-warmup",
|
|
"",
|
|
"serve:",
|
|
"\t@echo \"\\033[32;49mServer listening on http://127.0.0.1:8000\\033[39m\"",
|
|
"\t@echo \"Quit the server with CTRL-C.\"",
|
|
"\t@echo \"Run \\033[32mcomposer require symfony/web-server-bundle\\033[39m for a better web server\"",
|
|
"\tphp -S 127.0.0.1:8000 -t web",
|
|
".PHONY: serve"
|
|
],
|
|
"gitignore": [
|
|
".env",
|
|
"/var/",
|
|
"/vendor/",
|
|
"/web/bundles/"
|
|
],
|
|
"post-install-output": [
|
|
"<bg=blue;fg=white> </>",
|
|
"<bg=blue;fg=white> What's next? </>",
|
|
"<bg=blue;fg=white> </>",
|
|
"",
|
|
" * <fg=blue>Run</> your application:",
|
|
" 1. Execute the <comment>make serve</comment> command;",
|
|
" 2. Browse to the <comment>http://localhost:8000/</comment> URL.",
|
|
"",
|
|
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</comment>"
|
|
]
|
|
}
|