Skip to content

Commit

Permalink
Release 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Nov 13, 2013
1 parent 2208d66 commit c043dc7
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 4 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,35 @@ module.exports = function (grunt) {
'picture.min.js': ['picture.js']
}
}
},

bump: {
options: {
files: ['package.json', 'bower.json'],
updateConfigs: ['pkg'],
commit: true,
commitMessage: 'Release %VERSION%',
commitFiles: ['-a'], // '-a' for all files
createTag: true,
tagName: '%VERSION%',
tagMessage: 'Version %VERSION%',
push: false,
pushTo: 'upstream',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe'
}
}

});

grunt.loadNpmTasks( 'grunt-contrib-concat' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-bump' );

grunt.registerTask( 'default', ['concat:dist', 'uglify:dist'] );
grunt.registerTask( 'releasePatch', ['bump-only:patch', 'default', 'bump-commit'] );
grunt.registerTask( 'releaseMinor', ['bump-only:minor', 'default', 'bump-commit'] );
grunt.registerTask( 'releaseMajor', ['bump-only:major', 'default', 'bump-commit'] );


};

18 changes: 18 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Picture",
"main": "picture.js",
"version": "2.3.1",
"homepage": "https://github.com/niksy/picture",
"description": "Picture element polyfill for responsive images",
"authors": [
"David Knight"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Picture",
"version": "2.3.0",
"version": "2.3.1",
"description": "Picture element polyfill for responsive images",
"main": "picture.js",
"directories": {
Expand All @@ -22,6 +22,7 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.5",
"grunt-contrib-concat": "~0.3.0"
"grunt-contrib-concat": "~0.3.0",
"grunt-bump": "0.0.11"
}
}
2 changes: 1 addition & 1 deletion picture.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Picture v2.3.0 - Picture element polyfill for responsive images. Authors & copyright (c) 2013: WebLinc, David Knight. Forked & modified by Ivan Nikolić */
/* Picture v2.3.1 - Picture element polyfill for responsive images. Authors & copyright (c) 2013: WebLinc, David Knight. Forked & modified by Ivan Nikolić */
('HTMLPictureElement' in window) || (function(win) {
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion picture.min.js

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

0 comments on commit c043dc7

Please sign in to comment.