Skip to content

TheRatG/symdep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SymDep

Often I execute a lot of similar commands for update my local project, thats why this project was created.

Latest Stable Version Total Downloads Latest Unstable Version License

SensioLabsInsight

Requirements

Any symfony project.

Install

composer require therat/symdep ~3.0

Create deploy.php file into your project

cp vendor/therat/symdep/deploy.php.example deploy.php

Add file symdep.lock to your .gitignore

Extend tasks

Modify properties

Example

/**
 * modify properties
 */
task(
    'env',
    function () {
        switch (get('build_type')) {
            case BuildType::TYPE_DEV:
                break;
            case BuildType::TYPE_TEST:
                break;
            case BuildType::TYPE_PROD:
                break;
        }
    }
);
after('properties', 'env');

Delete useless branch folder from test

./bin/project-drop-branches-from-test

Build new version of geggs

  • Create and push tag
  • Create phar
./bin/box-build
  • Go to github and upload new symdep.phar into new release
  • Publish new manifest
./bin/generate-manifest