grunt-build-control
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "grunt-build-control", | ||
"description": "Automate version control tasks for your project's built code. Keep built code in sync with source code, maintain multiple branches of built code, commit with automatic messages, and push to remote repositories.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/robwierzbowski/grunt-build-control", | ||
@@ -6,0 +6,0 @@ "author": "Rob Wierzbowski <hello@robwierzbowski.com> (http://robwierzbowski)", |
@@ -7,3 +7,3 @@ # grunt-build-control | ||
This plugin requires [Grunt](http://gruntjs.com/) `~0.4.0` and [Git](http://git-scm.com/). | ||
This plugin requires [Grunt](http://gruntjs.com/) `~0.4.0` and [Git](http://git-scm.com/) `> 1.8`. | ||
@@ -41,3 +41,3 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide which explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with Grunt you can install the plugin with the command: | ||
Type: `String` | ||
Default: *Required* | ||
Default: `dist` | ||
@@ -49,3 +49,3 @@ The directory that contains your built code. | ||
Type: `String` | ||
Default: *Required* | ||
Default: `dist` | ||
@@ -57,3 +57,3 @@ The branch to commit to. | ||
Type: `String` | ||
Default: *Required* | ||
Default: `../` | ||
@@ -195,3 +195,4 @@ The remote to push to. Common examples include a distribution repository (Heroku or Scalr), your main project's remote (gh-pages branch on Github), or the local project repository itself (`../`). | ||
- 2013-10-X v0.0.0 | ||
- 2013-11-29 v0.1.2: Add defaults for all properties. | ||
- 2013-10-19 v0.1.1: Stable initial release. | ||
@@ -198,0 +199,0 @@ ## License |
@@ -24,2 +24,5 @@ /* | ||
var options = this.options({ | ||
branch: 'dist', | ||
dir: 'dist', | ||
remote: '../', | ||
commit: false, | ||
@@ -59,9 +62,2 @@ // tag: false, | ||
function checkRequirements () { | ||
// Check that required options are set. | ||
['branch', 'dir', 'remote'].forEach( function (element) { | ||
if (!options.hasOwnProperty(element)) { | ||
throw('The "' + element + '" option is required.'); | ||
} | ||
}); | ||
// Check that the build directory exists | ||
@@ -68,0 +64,0 @@ if (!fs.existsSync(options.dir)) { |
198
20919
347