Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddfreiling/nativescript-dev-appconfig
Nativescript CLI runtime config injector
https://github.com/ddfreiling/nativescript-dev-appconfig
cli nativescript nativescript-cli
Last synced: 18 days ago
JSON representation
Nativescript CLI runtime config injector
- Host: GitHub
- URL: https://github.com/ddfreiling/nativescript-dev-appconfig
- Owner: ddfreiling
- Created: 2018-10-10T09:01:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T11:30:46.000Z (over 6 years ago)
- Last Synced: 2024-04-26T08:03:21.711Z (9 months ago)
- Topics: cli, nativescript, nativescript-cli
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nativescript-dev-appconfig
Adds support for `--env.config` argument to Nativescript CLI commands.
`--env.config ` will load `$ProjectDir/config/.json` and inject it as `$ProjectDir/app/config.json`
If config contains an "app_name" key, the native app will have its product name updated.
The config file is injected into the app as "config.json", so that it can be loaded at runtime.
## Install:
```bash
tns plugin add nativescript-dev-appconfig
```## Example:
`tns prepare android --env.config beta` will load `$ProjectDir/config/beta.json`If beta.json contains `"app_name": "My Beta App"`,
it will update product name in `Info.plist` for iOS and `strings.xml` for Android.