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 configuration and project parameters for ionic #51

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

laurentyhuel
Copy link
Contributor

Add support for monorepo project https://ionicframework.com/docs/cli/configuration#config-file with --project
Add support for configuration https://ionicframework.com/docs/cli/commands/build#advanced-options with --configuration

@janpio
Copy link
Collaborator

janpio commented Jun 6, 2019

I didn't know about these features, when were they added to Ionic CLI? Maybe that information should be added to the parameter description.

@laurentyhuel
Copy link
Contributor Author

I found in doc for --project : https://ionicframework.com/docs/cli/configuration#multi-app-projects => Available in CLI 4.3.0+

I don't find for --configuration but it come with Angular 6:
https://blog.angularindepth.com/becoming-an-angular-environmentalist-45a48f7c20d8
So I think with Ionic v4

@janpio
Copy link
Collaborator

janpio commented Jun 6, 2019

@laurentyhuel
Copy link
Contributor Author

Ok I updated readme

@rvirani1
Copy link

This would be great to have. It's kinda clunky right now use angular staging environments.

@janpio
Copy link
Collaborator

janpio commented Jun 19, 2019

@laurentyhuel I see you fixed some bugs, do you think this is good to merge now?

@laurentyhuel
Copy link
Contributor Author

3 ionic commands are used by plugin:

ionic cordova platform add
ionic cordova prepare
ionic cordova compile

On official doc, --project parameter in not mentioned, --configuration parameter is mentioned only for prepare command.
https://ionicframework.com/docs/cli/commands/cordova-platform
https://ionicframework.com/docs/cli/commands/cordova-prepare
https://ionicframework.com/docs/cli/commands/cordova-compile

I used ionic-cli version 4.12.0.

  • For parameter "--project":
    On my projet (mono-repo), this parameter not works, I must execute command in the folder of sub-project.

  • For parameter "--configuration":
    It works.

It's strange official doc not the same as release notes:
https://github.com/ionic-team/ionic-cli/blob/develop/packages/ionic/CHANGELOG.md#4102-2019-02-04

But it seems to works as described in official doc and not release notes.

So there's possibilities:

  1. I remove --project and keep --configuration
  2. Keep both and --project will work in future version.

@mcailleaux
Copy link

We realy need this now for ci, it work fine localy on dev environment, is it possible to merge quickly?

@janpio
Copy link
Collaborator

janpio commented Jun 20, 2019

No, just leaving for a short vacation. But you can use @laurentyhuel 's fork and branch from https://github.com/laurentyhuel/fastlane-plugin-ionic/tree/add-ionic-parameters2

@rvirani1
Copy link

Yup, we're having to use the fork for now. It would be great to get a new version with this merged in.

@laurentyhuel
Copy link
Contributor Author

Hello @janpio ,
Is there something I need to do before you merge PR ?

@rubiktubik
Copy link

When this PR will be merged? It's already september 😅

@laurentyhuel
Copy link
Contributor Author

Hello @janpio ,
It seems you forgot my PR ;-) or I miss something ?

@MarioC3
Copy link

MarioC3 commented Jun 2, 2020

Hi!
Thank you all for your work. Quick question, will this be merge soon? I see this was made last year, but it wasn't merge to the project. I think a lot of people would find value in this PR.
Thanks

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

Successfully merging this pull request may close these issues.

6 participants