 Wallogit.com
                    
                    2017 © Pedro Peláez
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
Useful commands for every Developer
Useful commands for every Developer., (*2)
This abstracts the commands required for development., (*3)
For example:, (*4)
If a developer/tester needs to start the webserver, then should **NOT* * care if you are using vagrant or php built-in webserver. They should just run the same command (eg. make dev.server). This way, when updating the architecture, the same commands can be run, even if they are doing something slightly different or more than in an earlier version., (*5)
Create a Makefile in the root of your project., (*6)
Added a LOCATION parameter to the top of the Makefile, (*7)
LOCATION=.
If you have brought in this Helper Library with composer, then you need to update the location of the include files., (*8)
In your main Makefile update the location parameter:, (*9)
LOCATION=vendor/eddiejaoude/dev-helper-cmds
Note: must NOT end in a /, (*10)
Makefile
include $(LOCATION)/include.all
Below our the built-in commands., (*11)
You can override these by adding to your Makefile that contains all the includes., (*12)
# ---
# Below is example overwriting commands
# Note: you will get warnings
# ---
symfony.test.spec:
    bin/phpspec run  --config test/phpspec.yml
symfony.test.bdd:
    bin/behat --config test/behat.yml 
It is also possible to combine exist or new commands with a new command:, (*13)
new.command: old.cmd1 old.cmd2
    echo NEW CMD
Create a directory in your project root .make/, (*14)
Add command files inside new directory .make/log, (*15)
In your Makefile include new custom files with, (*16)
include .make/*
All done!, (*17)
make git.statusmake git.branch branch=build-feature/symfony2-behat-35 (this can be a branch or tag or commit hash)make composer.downloadmake composer.install
composer.download
make composer.update
composer.download
make symfony.servermake symfony.logsmake symfony.dev.rebuild runs all the commands below..., (*18)
make symfony.dev.db.drop drops the database, (*19)
make symfony.dev.db.create creates the databasemake symfony.dev.db.update updates the databasemake symfony.dev.db.data loads fixture data into databasemake build.assetsExample usage / override, add the following to your custom Makefile (or include), (*20)
build.package: build.user build.version build.changelog build.assets build.tag, (*21)
make symfony.test.run
make symfony.test.bdd
make symfony.test.spec
symfony.test.unit suite=app