Skip to content

0.33.0

Choose a tag to compare

@searls searls released this 11 Jun 22:47
· 73 commits to master since this release
  • Exposes process.env["LINEMAN_ENV"] to allow scripts & and config to branch based on whether run, spec, or build is running. This isn't really meant to be user-overridable, but will be set to "development" in all cases but spec, spec-ci (which are "test") and build (which is "production")
  • Upgrades fetcher to support scripts that prepend and append content
  • Adds a custom grunt task that emulates the lineman fetch CLI 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.