Usage

May 2, 2016 ยท View on GitHub

Basic

aurelia.env

ENV1 = VALUE

example.js

import {load} from 'aurelia-environment';

load().then(() => {
  console.log(window.env.ENV1); // outputs VALUE
});

console.log(window.env.ENV1); // outputs VALUE as well

Syntax

Assignment

To assign values, the syntax is key = value. However, all of the assignments below are valid:

TEST1 = value
TEST2= VALUE
TEST3 =VALUE
TEST4=VALUE
 TEST5 = VALUE
TEST6  =   VALUE

Comments

Comments are added by prefixing a line with a #:

# This is a comment
ENV1 = value

It is also possible to use inline comments by adding a space and the # to a line:

ENV1 = value # This is an inline comment
ENV1 = value# This is no inline comment