Skip to content

Feature Request: allow specifying default flags in package.json #3873

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

Closed
rigor789 opened this issue Sep 8, 2018 · 1 comment
Closed

Feature Request: allow specifying default flags in package.json #3873

rigor789 opened this issue Sep 8, 2018 · 1 comment
Labels

Comments

@rigor789
Copy link
Member

rigor789 commented Sep 8, 2018

It would be convenient to allow setting default flags for tns commands in package.json

For example

{
  "nativescript": {
    "id": "com.nativescript.application",
    "defaults": {
      "bundle": true 
    },
    "tns-ios": {},
    "tns-android: {}
  }
}

would force the --bundle flag when running tns run android/ios

This would make it easier to work on projects that require bundling (nativescript-vue for example must be bundled to compile .vue files) without having to remember to use --bundle.

@rosen-vladimirov
Copy link
Contributor

This is now possible by setting "useLegacyWorkflow": false in your `nsconfig.json file. More information is available here: https://docs.nativescript.org/core-concepts/project-structure#nsconfigjson-enabling-hmr-example

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

No branches or pull requests

3 participants