buildtest-dwalker
v1.0.2
Published
Proof of concept for creating JS files from the environment variables available at build time
Downloads
11
Readme
buildtest-dwalker
Proof of concept for capturing environment variables available at build time and using them at run time.
The problem
At build time we want to configure certain connections strings and other data that varies by environment.
This solution
This package captures the build environment variables into a file that can be referenced at runtime.
Installation
This module is distributed via [npm][npm] which is bundled with [node][node] and
should be installed as one of your project's devDependencies
:
npm install --save-dev buildtest-dwalker
Usage
Reference this from javascript.
var buildConfig = require("buildtest-dwalker");
var connectionString = buildConfig.AppConnection;