@ontrackms/nativescript-dotenv
Adds common NativeScript configurations to Dotenv
npm i --save @ontrackms/nativescript-dotenv
- Version: 1.3.3
- GitHub: https://github.com/ontrackms/nativescript-dotenv
- NPM: https://www.npmjs.com/package/%40ontrackms%2Fnativescript-dotenv
- Downloads:
- Last Day: 1
- Last Week: 1
- Last Month: 5
Installation
npm i -D @ontrackms/nativescript-dotenv
Usage
Add the following lines to the exported function in webpack.config.js
const { NativeScriptDotEnvPlugin } = require("@ontrackms/nativescript-dotenv");
module.exports = (env) => {
webpack.init(env);
// must be called after webpack.init
NativeScriptDotEnvPlugin.init(webpack);
return webpack.resolveConfig();
};
Configuration
The following environment variables are supported in the dotenv (.env) file.
All variables are optional ⚙️
NATIVESCRIPT_BUNDLE_ID=com.corp.app.test
NATIVESCRIPT_BUNDLE_VERSION=3.2.1
NATIVESCRIPT_APPLE_TEAM_ID=ASDFG1234