Skip to content

Commit

Permalink
Merge pull request #9 from jdelauney/main
Browse files Browse the repository at this point in the history
Improve Symfony Makefile
  • Loading branch information
yoanbernabeu authored Oct 6, 2022
2 parents 8b94696 + c6d2c55 commit 8915639
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ sf-dd: ## Drop symfony database.
$(SYMFONY_CONSOLE) doctrine:database:drop --if-exists --force
.PHONY: sf-dd

sf-su: ## Update symfony schema database.
$(SYMFONY_CONSOLE) doctrine:schema:update --force
.PHONY: sf-su

sf-mm: ## Make migrations.
$(SYMFONY_CONSOLE) make:migration
.PHONY: sf-mm
Expand All @@ -106,6 +110,18 @@ sf-fixtures: ## Load fixtures.
$(SYMFONY_CONSOLE) doctrine:fixtures:load --no-interaction
.PHONY: sf-fixtures

sf-me: ## Make symfony entity
$(SYMFONY_CONSOLE) make:entity
.PHONY: sf-me

sf-mc: ## Make symfony controller
$(SYMFONY_CONSOLE) make:controller
.PHONY: sf-mc

sf-mf: ## Make symfony Form
$(SYMFONY_CONSOLE) make:form
.PHONY: sf-mf

sf-perm: ## Fix permissions.
chmod -R 777 var
.PHONY: sf-perm
Expand Down
22 changes: 21 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ tasks:
cmds:
- "{{.SYMFONY_CONSOLE}} doctrine:database:drop --if-exists --force"

sf-dc:
desc: "Update symfony schema database"
cmds:
- "{{.SYMFONY_CONSOLE}} doctrine:schema:update --force"

sf-mm:
desc: "Make symfony migration"
cmds:
Expand All @@ -95,7 +100,22 @@ tasks:
desc: "Load fixtures"
cmds:
- "{{.SYMFONY_CONSOLE}} doctrine:fixtures:load --no-interaction"


sf-me:
desc: "Make entity"
cmds:
- "{{.SYMFONY_CONSOLE}} make:entity"

sf-mc:
desc: "Make controller"
cmds:
- "{{.SYMFONY_CONSOLE}} make:controller"

sf-mf:
desc: "Make form"
cmds:
- "{{.SYMFONY_CONSOLE}} make:form"

sf-perm:
desc: "Fix permissions"
cmds:
Expand Down

0 comments on commit 8915639

Please sign in to comment.