Skip to content

Releases: carrot/sprout

v1.2.1

10 Feb 02:05
Compare
Choose a tag to compare
  • Fix async callback warnings in node 7
  • Remove unnecessary files from npm package

v1.2.0

16 May 17:37
Compare
Choose a tag to compare
  • Better error messages
  • Dependencies up to date
  • Installs only production dependencies in a new template, skips install if there are no dependencies in package.json - creating a decent speed boost for most use-cases ⚡

v1.1.0

10 May 19:09
Compare
Choose a tag to compare
  • Project in a sprout directory are not required to be git repos, this is helpful for testing
  • Questionnaire function no longer uses skip, it only passes questions that have not been already configured
  • Dependencies up to date

v1.0.0

28 Mar 17:00
Compare
Choose a tag to compare

Large breaking release! Upgrade with care!

  • Significant internal rewrites, replacing bluebird with when.js and moving from coffee to es6
  • All dependencies fully up to date
  • Better options validation
  • init.js can only be js, no coffee anymore

v0.4.4

16 Oct 00:39
Compare
Choose a tag to compare
  • updates dependencies

v0.4.3

10 Jun 20:51
Compare
Choose a tag to compare
  • switches utils._src to utils.src.path
  • switches utils._target to utils.target.path
  • utils.copy now copies directories (not just files) recursively
  • exports.before hooks in init.js now passes utils and config

v0.4.2

03 Jun 19:03
Compare
Choose a tag to compare
  • use git clone --recursive when cloning down sprout templates to ensure submodules are also included

v0.4.1

18 May 13:59
Compare
Choose a tag to compare
  • adds utils.copy function
  • exposes utils._src and utils._target variables
  • updates dependencies

v0.2.1

26 Mar 20:24
Compare
Choose a tag to compare
  • generators (#64)
  • utils.exec() (#61)

v0.2.0

24 Mar 16:25
Compare
Choose a tag to compare

A thorough refactor; intended to make API more independent and develop a more comprehensive test suite.

Overall:

  • now exports a Sprout constructor, which can be passed any path as a base Sprout path.
  • includes a Template constructor which manages individual templates.
  • more encompassing test suite.
  • written in vanilla JavaScript.

New features:

  • Verbose mode in CLI by passing -v or --verbose.
  • Init file can either be init.js or init.coffee
  • Pass a config.json or config.yml file to CLI or API to predefine a large set of values.

Notes on moving templates from <0.2:

  • The before_render hook is now beforeRender

  • Hooks are now passed a Utils instance (see README) and, on all hooks except before, the init config:

    exports.before = function (utils) {}
    exports.beforeRender = function (utils, config) {}
    exports.after = function (utils, config) {}
  • Utils has been cleaned up significantly (see README).

  • The configuration is no longer automatically merged into Utils; sending the configuration is optional.