0.33.0
- Exposes
process.env["LINEMAN_ENV"]to allow scripts & and config to branch based on whetherrun,spec, orbuildis running. This isn't really meant to be user-overridable, but will be set to "development" in all cases butspec,spec-ci(which are "test") andbuild(which is "production") - Upgrades
fetcherto support scripts that prepend and append content - Adds a custom grunt task that emulates the
lineman fetchCLI command.
When these powers, combine, lineman build scripts can now fetch (presumably volatile) third party dependencies as part of the build.
For example, if you configure your config/application.js to look like this:
var prependCommonTasks = lineman.config.application.prependTasks.common;
if(process.env["LINEMAN_ENV"] == "production") {
prependCommonTasks = lineman.config.application.prependTasks.common.concat("fetch:facebook-connect-api-all:google-analytics:twitter-widgets-api");
}
return {
prependTasks: {
common: prependCommonTasks
}
};Then facebook connect's API, twitter's widget API, and google analytics will all be fetched at build-time, which is desirable in the case of those dependencies, given their relative volatility and lack of application-facing APIs.