Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create-project to cli #76

Open
jasny opened this issue Aug 14, 2018 · 6 comments
Open

Add create-project to cli #76

jasny opened this issue Aug 14, 2018 · 6 comments

Comments

@jasny
Copy link

jasny commented Aug 14, 2018

Feature request to expose the createProject method to the command line interface.

It would be useful to add a create-method command. Having to browse to insight.sensiolabs.com is a bit of a burden. Adding a project from the shell would be nice. Also maybe integrating it into IDEs like PHPStorm.

php insight.phar create-project \
  --repository-url=http://github.com/jasny/assetic-extensions \
  --type=php-library
@lyrixx
Copy link
Contributor

lyrixx commented Aug 21, 2018

Hello @jasny

Would you mind submit a pull request ?

Thanks.

@jasny
Copy link
Author

jasny commented Aug 26, 2018

@lyrixx Normally not. But as sensiolabs insight is no longer freely available for open-source projects and has a 5 project limit for a basic plan, it's not usable for me. I create micro-libraries and have dozens of those.

@tgalopin
Copy link
Contributor

Hello Arnold,

I will have a look at this next week.

Note that if you have multiple small libraries, I would recommend you to use a single main repository with subtree splits. This would ease your maintenance a lot as well as allow you to analyze all your libraries at once using SensioLabsInsight basic plan.

Best regards,

@jasny
Copy link
Author

jasny commented Aug 26, 2018

I don't think that's a good way of structuring components as you get a monolith project (also for ci). Using composer, micro-libraries are the way to go imho. Beyond that, I also use micro-services for my projects, so it will never hold up. Limiting a plan by the number of repositories is ruling out people that prefer a micro-architecture. Not cool...

@tgalopin
Copy link
Contributor

Thanks for your feedback.

I still think having a single main repository is the best way to manage micro-services (but this is an opinion of course :) ). Even when using a micro-services architecture, you can still have a single main Git repository (with independent micro-services inside it) and use a subtree split to create read-only repositories for each of your libraries. The main advantage is that it dramatically decreases the time needed to maintain multiple repositories (a single place for PR and issues) while keeping the flexibility and simplicity of micro-services. There are many options available to create subtree splits, don't hesitate to have a look.

For you issue, I understand our plans may not suit your needs. I am open to consider any proposal you may have for an offer that would match your needs as well as ours.

Thanks,
Best regards,

@jasny
Copy link
Author

jasny commented Aug 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants