Update: Set environments w/ globals (fixes #1577)
Merge pull request #1586 from es128/globals

Use globals npm package to set environments
New: Configuration by package.json (fixes #698)