Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kleeh committed Dec 8, 2015
1 parent 780c7c1 commit 7ab880d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 49 deletions.
2 changes: 1 addition & 1 deletion angular-confirm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* angular-confirm
* https://github.com/Schlogen/angular-confirm
* @version v1.2.1 - 2015-11-18
* @version v1.2.2 - 2015-12-08
* @license Apache
*/
(function (root, factory) {
Expand Down
13 changes: 11 additions & 2 deletions angular-confirm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-confirm-modal",
"main": "angular-confirm.min.js",
"version": "1.2.1",
"version": "1.2.2",
"homepage": "https://github.com/Schlogen/angular-confirm",
"authors": [
"James Kleeh"
Expand Down
44 changes: 0 additions & 44 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,48 +26,4 @@ gulp.task('bump-json', function (done) {
return gulp.src(['./package.json', './bower.json'])
.pipe(bump())
.pipe(gulp.dest('./'));
});

gulp.task('bump', ['bump-json'], function() {
var pkg = require('./package.json');
var banner = ['/*',
' * <%= pkg.name %>',
' * <%= pkg.homepage %>',
' * @version v<%= pkg.version %> - <%= today %>',
' * @license <%= pkg.license %>',
' */',
''].join('\n');

function pad(val) {
val = String(val);
var len = 2;
while (val.length < len) val = "0" + val;
return val;
}

var date = new Date();
var day = date.getDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();

return gulp.src('./angular-confirm.js')
.pipe(header(banner, { pkg : pkg, today: (year + '-' + pad(monthIndex+1) + '-' + pad(day)) } ))
.pipe(gulp.dest('./'));
});

gulp.task('tag', ['bump'], 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('./'));
});

gulp.task('npm', ['tag'], function (done) {
require('child_process').spawn('npm', ['publish'], { stdio: 'inherit' })
.on('close', done);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-confirm",
"version": "1.2.1",
"version": "1.2.2",
"description": "Angular Confirm Modal",
"main": "angular-confirm.min.js",
"scripts": {
Expand Down

0 comments on commit 7ab880d

Please sign in to comment.