Download the PHP package eddiejaoude/dev-helper-cmds without Composer
On this page you can find all versions of the php package eddiejaoude/dev-helper-cmds. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eddiejaoude/dev-helper-cmds
More information about eddiejaoude/dev-helper-cmds
Files in eddiejaoude/dev-helper-cmds
Package dev-helper-cmds
Short Description Useful commands for every Developer
License
Informations about the package dev-helper-cmds
Dev Helper Commands
Useful commands for every Developer.
This abstracts the commands required for development.
For example:
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.
Usage
-
Create a
Makefile
in the root of your project. - Added a
LOCATION
parameter to the top of theMakefile
If you have brought in this Helper Library with composer
, then you need to update the location of the include files.
In your main Makefile update the location parameter:
Note: must NOT end in a /
-
Now include the commands you want to use or include all by adding the following to your
Makefile
- Then you are done.
Below our the built-in commands.
Overriding commands
You can override these by adding to your Makefile that contains all the includes.
Combining commands to make new ones
It is also possible to combine exist or new commands with a new command:
Added Custom commands
-
Create a directory in your project root
.make/
-
Add command files inside new directory
.make/log
- In your Makefile include new custom files with
All done!
Built-in commands
Git commands
make git.status
make git.branch branch=build-feature/symfony2-behat-35
(this can be a branch or tag or commit hash)
Composer commands
make composer.download
make composer.install
- dependency on
composer.download
- dependency on
make composer.update
- dependency on
composer.download
- dependency on
Symfony
Built-in Server
make symfony.server
Dump logs
make symfony.logs
Database
-
make symfony.dev.rebuild
runs all the commands below... make symfony.dev.db.drop
drops the databasemake symfony.dev.db.create
creates the databasemake symfony.dev.db.update
updates the databasemake symfony.dev.db.data
loads fixture data into database
Dump & commit assets
make build.assets
Example usage / override, add the following to your custom Makefile (or include)
Running tests in parallel using Robo
make symfony.test.run
- dependency on Robo
Running Behat tests
make symfony.test.bdd
- dependency on Behat & SymfonyBehat bundle
Running PHPSpec
make symfony.test.spec
- dependency on PHPSpec
Running PHPUnit
symfony.test.unit suite=app