yii-dev-tool icon indicating copy to clipboard operation
yii-dev-tool copied to clipboard

Make it usable for other projects

Open thenotsoft opened this issue 5 years ago • 4 comments

Now this tool is used only for Yii 3, but it would be convenient to use it for developing other projects, for example, a project based on modules.

What needs to be changed/added:

  • [ ] Extract core files to yiisoft/dev-tool and add dependency it to yii-dev-tool

  • [x] Make configuration of repositories possible, decouple from yii

  • [ ] Add a command that creates a package from a template

  • [x] Add a command to run unit tests in packages

thenotsoft avatar Aug 27 '20 08:08 thenotsoft

Make configuration of repositories possible, decouple from yii

Isn't it there? https://github.com/yiisoft/yii-dev-tool/blob/master/packages.local.php.example

Add a command that creates a package from a template

That is easy to do via GitHub currently:

image

samdark avatar Aug 27 '20 11:08 samdark

Make configuration of repositories possible, decouple from yii

Isn't it there? https://github.com/yiisoft/yii-dev-tool/blob/master/packages.local.php.example

Add a command that creates a package from a template

That is easy to do via GitHub currently:

image

  1. I'm talking about this https://github.com/yiisoft/yii-dev-tool/blob/master/src/Command/InstallCommand.php#L107 there is still where it is tied. Make the default repository address so that you can simply specify test/test, not the full path to the repository.

  2. It is possible to do with the help of github, but it is not as convenient as ./dev-tool package/create yiisoft/test Make a template folder that you can change if needed for yourself, make automatic insertion of the package name into composer.json, etc. And someone uses gitlab or bitbucket, it's easier to specify the repository and then the script will do everything

thenotsoft avatar Aug 27 '20 11:08 thenotsoft

Alright. Makes sense but not a priority at this stage.

samdark avatar Aug 27 '20 12:08 samdark

Alright. Makes sense but not a priority at this stage.

Of course, this is not a priority now, I created iusse so as not to forget, and so I have already forgotten some ideas)

thenotsoft avatar Aug 27 '20 12:08 thenotsoft