Grunt plugin for specifying environment variable configurations in task chains
81
Create an environment setup for two build targets where shared options are merged after each target's own environment values.
API_URL=http://localhost:3000 intact while applying shared options afterward so COMMON_TOKEN=shared-token is present and APP_MODE ends as global-default even though the target defined APP_MODE=dev. @testAPP_MODE, resulting in APP_MODE=production while still receiving the shared COMMON_TOKEN and keeping target data such as LOG_LEVEL=warn. @testenvdir-style flag (or another non-environment option), that control flag is not copied into process.env, but the merged environment values from the target data and options remain. @test@generates
module.exports = function configureEnvironment(grunt);Provides environment-merging tasks for the build tool.
Install with Tessl CLI
npx tessl i tessl/npm-grunt-env