Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Jan 11, 2017
1 parent 0db4bb7 commit 684846a
Show file tree
Hide file tree
Showing 11 changed files with 333 additions and 306 deletions.
14 changes: 12 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ module.exports = function(grunt) {
{ src: ['**/*'], dest: '', cwd: 'distribute/', expand: true }
];

var pkg = grunt.file.readJSON('package.json');

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: pkg,
concat: {
options: {
banner: VERSION_TEMPLATE
banner: VERSION_TEMPLATE,
process: function(src, filepath) {

if ( filepath === 'src/js/intro.js' ) {
src = src.replace('%%REPLACE_THIS_WITH_VERSION%%', pkg.version);
}

return src;
}
},
basic: {
src: getFiles(),
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ npm [(package)](https://www.npmjs.com/package/nouislider)
Changelog
---------

### 9.1.1 (*2017-01-17*)
- Added: Version number to exceptions;
- Added: `noUiSlider.version` holds current version number;
- Added: Throw exception on invalid `pips` configuration (#721);

### 9.1.0 (*2016-12-10*)
- Fixed: Slider not properly handling multitouch (#700, #704);
- Fixed: Removed a querySelector for the currently active handle (#720);
Expand Down
Loading

0 comments on commit 684846a

Please sign in to comment.