I have a typical mimosa front-end project with coffeescript for scripting. I want a certain variable (api path) to have different values, depending on build profile (dev or prod). How can I achieve this in mimosa?
Example of what I want:
prod.coffee:
exports.api = 'myserver'
dev.coffee:
exports.api = 'localhost'
api-accessor.coffee
config = getCurrentConfig(); # this is the part I do not know how to implement
exports.getStuff = () ->
# here I want config.api to have different values depending on build profile
$.ajax config.api + 'getStuff'