Skip to content

trendscenter/coins-grunt-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coins-grunt-env

We like grunt-env in our build process. Our many repos all use it!

But why duplicate more than we have to? This simple exported config enables us, in all of our projects, to always build with the latest COINS env config.

// grunt/env.js
'use strict';
module.exports = require('coins-grunt-env');

What's in 'coins-grunt-env'?

module.exports = {
    development: {
        NODE_ENV: 'development',
        COINS_ENV: 'development',
        COINS_NODE_API_SSL_PORT: 8443
    },
    staging: {
        NODE_ENV: 'staging',
        COINS_ENV: 'staging',
        COINS_NODE_API_HOSTNAME: 'stage-coins-api.mrn.org'
    },
    production: {
        NODE_ENV: 'production',
        COINS_ENV: 'production',
        COINS_NODE_API_HOSTNAME: 'coins-api.mrn.org'
    }
};