Skip to content

Commit

Permalink
noUiSlider dist submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Sep 11, 2014
1 parent e7435f7 commit 1aa095f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "submodules/libLink"]
path = submodules/libLink
url = https://github.com/leongersen/libLink
[submodule "submodules/noUiSlider-dist"]
path = submodules/noUiSlider-dist
url = https://github.com/leongersen/noUiSlider-dist
35 changes: 25 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ module.exports = function(grunt) {
return files;
}

var releaseFiles = [
{ src: ['**/*'], dest: '', cwd: 'distribute/', expand: true },
{ src: ['**/*.css'], dest: '', cwd: 'src/', expand: true },
{ src: ['**/archive.md'], rename: function(){ return 'README.md'; }, dest: '', cwd: 'src/', expand: true }
];

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
Expand Down Expand Up @@ -100,21 +106,27 @@ module.exports = function(grunt) {
options: {
archive: 'noUiSlider.<%= pkg.version %>.zip'
},
files: [
{ src: ['**/*'], dest: '', cwd: 'distribute/', expand: true },
{ src: ['**/*.css'], dest: '', cwd: 'src/', expand: true },
{ src: ['**/archive.md'], rename: function(){ return 'README.md'; }, dest: '', cwd: 'src/', expand: true }
]
files: releaseFiles
}
},
copy: {
all: {
expand: true,
cwd: 'distribute/',
src: '**',
dest: 'submodules/noUiSlider-dist/',
flatten: true,
filter: 'isFile'
}
}
});

// https://github.com/gruntjs/grunt-contrib-concat
grunt.loadNpmTasks('grunt-contrib-concat');

// https://github.com/gruntjs/grunt-contrib-uglify
grunt.loadNpmTasks('grunt-contrib-uglify');

// https://github.com/gruntjs/grunt-contrib-jshint
grunt.loadNpmTasks('grunt-contrib-jshint');

Expand All @@ -123,11 +135,14 @@ module.exports = function(grunt) {

// https://github.com/gruntjs/grunt-contrib-cssmin
grunt.loadNpmTasks('grunt-contrib-cssmin');

// https://github.com/gruntjs/grunt-contrib-compress
grunt.loadNpmTasks('grunt-contrib-compress');


// https://www.npmjs.org/package/grunt-contrib-copy
grunt.loadNpmTasks('grunt-contrib-copy');

grunt.registerTask('default', ['concat', 'jshint']);
grunt.registerTask('create', ['concat', 'jshint', 'uglify', 'cssmin']);
grunt.registerTask('release', ['string-replace', 'compress']);
grunt.registerTask('release', ['string-replace', 'compress', 'copy']);
};
22 changes: 5 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,18 @@ An extensive documentation, including **examples**, **options** and **configurat

Bower
-----
Bower users can install all compiled and minified files easily.
Bower users can install all compiled and minified files easily using `bower install noUiSlider --save`.
This will install [a separate repository](https://github.com/leongersen/noUiSlider-dist) which is only used for Bower.

Run:
```
bower install https://github.com/leongersen/noUiSlider/releases/download/<<Current Version>>/noUiSlider.<<Current Version>>.zip
```

Or create a `bower.json` with the following dependency:
```
"noUiSlider": "https://github.com/leongersen/noUiSlider/releases/download/<<Current Version>>/noUiSlider.<<Current Version>>.zip"
```

You can read more about the absence of minified files in [this blog post](http://refreshless.com/blog/git-repository-commit-minified-bower/).
You can read more about the absence of minified files for this repository in [this blog post](http://refreshless.com/blog/git-repository-commit-minified-bower/).

Changelog
---------
###7.0.4:
+ Removed minified files.
+ Added a direct release for Bower users.
###7.0.5
+ Moved Bower support.

###7.0.3:
+ Fixed an issue with Link on single-handle RTL sliders.
+ Added minified files for Bower users.
+ Version information in minified JS.

###7.0.2:
+ Fixed an issue with the handle `z-index`. (#333)
Expand Down
2 changes: 1 addition & 1 deletion nouislider.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "http://www.wtfpl.net/"
}
],
"version": "7.0.4",
"version": "7.0.5",
"author": {
"name": "Léon Gersen",
"url": "https://twitter.com/LeonGersen"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "noUiSlider",
"version": "7.0.4",
"version": "7.0.5",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-compress": "^0.11.0",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-cssmin": "^0.10.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.5.1",
Expand Down
1 change: 1 addition & 0 deletions submodules/noUiSlider-dist
Submodule noUiSlider-dist added at f39aed

0 comments on commit 1aa095f

Please sign in to comment.