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 application-base init commands #12

Closed
schmunk42 opened this issue Nov 29, 2018 · 5 comments
Closed

add application-base init commands #12

schmunk42 opened this issue Nov 29, 2018 · 5 comments

Comments

@schmunk42
Copy link
Contributor

What steps will reproduce the problem?

Install a project template, people complaining about too complicated setup.

What is the expected result?

Example commands

$ yii init
Querying application bases...
[1] yii-base-web
[2] yii-base-api
[3] yii-base-cli
Which one(s) do you want to install?

What do you get instead?

Copy and paste command from docs.

@samdark
Copy link
Member

samdark commented Nov 29, 2018

I'm against having init command. While it's better than copy-pasting, it still is more complicated than what was done by @hiqsol initially: one composer command to install it and then another to start a web server.

@schmunk42
Copy link
Contributor Author

I am against having a web-application installed by default, primarily based on the discussion in yiisoft/yii-base-api#1 and the comments from @roslov and @rob006

An init command could be attached to the post-create-project hook of composer and detect if npm and or yarn is available. If so I'd suggest to offer this as the primary asset-management with foxy, if not the only option is to use asset-packagist.

@samdark
Copy link
Member

samdark commented Nov 30, 2018

What if web application won't install any external assets?

@schmunk42
Copy link
Contributor Author

That would simplify things a lot!

@samdark
Copy link
Member

samdark commented Dec 1, 2018

Let's close this one then. If it will be still too complicated, we'll add some commands.

@samdark samdark closed this as completed Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants