Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 930 Bytes

migrate-repo.md

File metadata and controls

31 lines (20 loc) · 930 Bytes

Migrate a repository into the monorepo

First steps (source)

git remote add elasticms-admin [email protected]:ems-project/EMSCoreBundle.git
git fetch elasticms-admin
git read-tree --prefix=elasticms-admin -u elasticms-admin/4.x
git commit -m "Migrate elasticms-admin repo to EMS/elasticms-admin"

Second steps (source)

vendor/bin/monorepo-builder merge

Then resolve composer conflicts.

composer update

Add the repo's src and tests folders to the .php-cs-fixer.dist.php file. Run composer phpcs.

Add the repo's src folder to the phpstan.neon.dist file. Run composer phpstan.

Add the repo's src and tests folders to the phpunit.xml.dist file. Run composer phpunit.

Run composer rector.