getstream
Advanced tools
Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "getstream", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "dist/js/getstream.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
@@ -79,9 +79,3 @@ var gulp = require('gulp'); | ||
// release to bower | ||
gulp.task('release', function () { | ||
// read version from package.json | ||
// update bower to match package.json | ||
// git tag and push | ||
// npm publish . | ||
//TODO: use something gulp instead of make, gulp-git seems broken | ||
// TODO: why does bower read from master? | ||
gulp.task('write_bower', function () { | ||
var packageJSON = require('./package.json'); | ||
@@ -92,23 +86,25 @@ var bowerJSON = require('./bower.json'); | ||
var versionName = 'v' + version; | ||
console.log('Releasing version ' + versionName); | ||
console.log(process.cwd()); | ||
// write the new bower.json file | ||
console.log('Updating bower.json'); | ||
bowerJSON.version = version; | ||
fs.writeFileSync('bower.json', JSON.stringify(bowerJSON, null, ' ')); | ||
// push to github (which also impacts bower) | ||
console.log('Git tagging and releasing'); | ||
return gulp.src('./', {read: false}) | ||
.pipe(shell.task(['npm publish .'])) | ||
.pipe(gulp.dest('./')); | ||
return gulp.src('./', {read: false}) | ||
.pipe(git.commit(message)) | ||
.pipe(git.tag(versionName, message)) | ||
.pipe(git.push('origin', 'master', '--tags')) | ||
.pipe(gulp.dest('./')); | ||
//.pipe(); | ||
return; | ||
}); | ||
gulp.task('tag', function () { | ||
var pkg = require('./package.json'); | ||
var v = 'v' + pkg.version; | ||
var message = 'Release ' + v; | ||
return gulp.src('./') | ||
.pipe(git.commit(message)) | ||
.pipe(git.tag(v, message)) | ||
.pipe(git.push('origin', 'master', '--tags')) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
// full release flow | ||
gulp.task('release', ['write_bower', 'npm'], function () { | ||
return; | ||
}); | ||
// full publish flow | ||
@@ -115,0 +111,0 @@ gulp.task('publish', ['build', 'test', 'release'], function () { |
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://getstream.io/", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"config": { | ||
@@ -13,0 +13,0 @@ "blanket": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200031
6614