KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This is my composer.json file: "require": { "php": ">=5.4", "zendframework/zendframework": "2.*", "doctrine/doctrine-module": "dev-master", "doctrine/doctrine-orm-module": "0.*", "gedmo/doctrine-extensions": "dev-master" }, "require-dev": { "phpunit/phpunit": "3.7.*" }, "scripts": { "post-update-cmd": [ "rm -rf vendor/Behat", "git clone git://github.com/Behat/Behat.git", "cp composer.phar Behat/composer.phar", "cd Behat && git submodule update --init", "cd Behat && php composer.phar install", "cd Behat && php composer.phar require guzzle/guzzle:3.0.*", "mv Behat vendor/Behat", "ln -sf ../Behat/bin/behat vendor/bin/" ] } How can I make it so the scripts are only run in the dev environment? Basically I want the scripts to run only when I call: php composer.phar update --dev
Tags (comma-separated)
Save Edits
Cancel