@ontrackms/nativescript-dotenv
by ontrackms | v1.3.3
Adds common NativeScript configurations to Dotenv
npm i --save @ontrackms/nativescript-dotenv

NativeScript Dotenv Plugin

Static Badge

NPM Test Workflow GitHub License

Adds common NativeScript configurations to Dotenv

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