Comparing version 1.6.5 to 1.6.8
@@ -440,2 +440,3 @@ #Index | ||
**Example** | ||
```js | ||
fireproofRef.set('something') | ||
@@ -447,2 +448,3 @@ .then(function()) { | ||
}); | ||
``` | ||
@@ -449,0 +451,0 @@ <a name="Fireproof#update"></a> |
@@ -12,2 +12,5 @@ | ||
jsdoc2md = require('gulp-jsdoc-to-markdown'), | ||
filter = require('gulp-filter'), | ||
git = require('gulp-git'), | ||
tagVersion = require('gulp-tag-version'), | ||
version = require('./package.json').version; | ||
@@ -29,4 +32,15 @@ | ||
} | ||
function inc(importance, done) { | ||
return gulp.src(['./package.json']) | ||
.pipe(bump({type: importance})) | ||
.pipe(gulp.dest('./')) | ||
.pipe(git.commit('new release')) | ||
.pipe(filter('package.json')) | ||
.pipe(tagVersion()) | ||
.on('end', npmPublish(done)); | ||
} | ||
gulp.task('clean', 'Remove all build files', function(done) { | ||
@@ -37,3 +51,3 @@ rmdir('./dist', done); | ||
gulp.task('build', 'Builds the Javascript for distribution.', function() { | ||
gulp.task('build', 'Builds the Javascript for distribution.', ['clean'], function() { | ||
@@ -122,31 +136,17 @@ return gulp.src(['index.js', 'lib/*.js']) | ||
var bumpDeps = ['build', 'test', 'docs']; | ||
gulp.task('bump', 'Publishes a new bugfix version.', function(done) { | ||
return gulp.src('./package.json') | ||
.pipe(bump()) | ||
.pipe(gulp.dest('./')) | ||
.on('end', npmPublish(done)); | ||
gulp.task('bump', 'Publishes a new bugfix version.', bumpDeps, function(done) { | ||
inc('patch', done); | ||
}); | ||
gulp.task('bump:minor', 'Publishes a new bugfix version.', function(done) { | ||
return gulp.src('./package.json') | ||
.pipe(bump({ type: 'minor' })) | ||
.pipe(gulp.dest('./')) | ||
.on('end', npmPublish(done)); | ||
gulp.task('bump:minor', 'Publishes a new bugfix version.', bumpDeps, function(done) { | ||
inc('minor', done); | ||
}); | ||
gulp.task('bump:major', 'Publishes a new bugfix version.', function(done) { | ||
return gulp.src('./package.json') | ||
.pipe(bump({ type: 'major' })) | ||
.pipe(gulp.dest('./')) | ||
.on('end', npmPublish(done)); | ||
gulp.task('bump:major', 'Publishes a new bugfix version.', bumpDeps, function(done) { | ||
inc('major', done); | ||
}); | ||
{ | ||
"name": "fireproof", | ||
"version": "1.6.5", | ||
"version": "1.6.8", | ||
"description": "Promises for Firebase objects.", | ||
@@ -23,2 +23,4 @@ "main": "dist/fireproof.js", | ||
"gulp-concat": "^2.4.1", | ||
"gulp-filter": "^1.0.2", | ||
"gulp-git": "^0.5.3", | ||
"gulp-help": "^1.3.0", | ||
@@ -28,2 +30,3 @@ "gulp-jsdoc-to-markdown": "^0.1.5", | ||
"gulp-rename": "^1.2.0", | ||
"gulp-tag-version": "^1.1.0", | ||
"gulp-wrap": "^0.5.0", | ||
@@ -30,0 +33,0 @@ "kew": "^0.4.0", |
102324
2402
18