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

How to add specific parameter to ionic #48

Open
laurentyhuel opened this issue Jun 5, 2019 · 2 comments
Open

How to add specific parameter to ionic #48

laurentyhuel opened this issue Jun 5, 2019 · 2 comments

Comments

@laurentyhuel
Copy link
Contributor

In my package.json, I have multiple scripts to build Android (and iOS) to choose my angular environment file

My package.json:

"foo-mobile:android-build-int": "ionic cordova build android --prod --release --configuration=integration-cordova",
"foo-mobile:android-build-int-api": "ionic cordova build android --prod --release --configuration=integration-cordova-api",
"foo-mobile:android-build-qua": "ionic cordova build android --prod --release --configuration=qualif-cordova",
"foo-mobile:android-build": "ionic cordova build android --prod --release --configuration=production-cordova",

My angular.json:

        "qualif-cordova": {
          "fileReplacements": [
            {
              "replace": "foo-mobile/src/environments/environment.ts",
              "with": "foo-mobile/src/environments/environment.qua.ts"
            }
          ],

How to pass specific parameters with Fastfile ?

My Fastfile:

platform :android do
  desc "Build beta"
  lane :beta do
    ionic(
      platform: 'android',
      #prod: true,
      release: true,
@janpio
Copy link
Collaborator

janpio commented Jun 5, 2019

This is not possible yet - there is no param to pass rudimentary parameters to the ionic command. I would be happy to merge a Pull Request adding this though.

@laurentyhuel
Copy link
Contributor Author

laurentyhuel commented Jun 6, 2019

I create this PR : #51

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

2 participants