Permalink
Browse files

Switch from Google Closure Compiler to UglifyJS, removes Java dependency

Size diff between current branch and master
     13000        (-)  bin/javascripts/jquery.nanoscroller.js
      6717       (+95)  bin/javascripts/jquery.nanoscroller.min.js
      2220       (+91)  bin/javascripts/jquery.nanoscroller.min.js.gz
  • Loading branch information...
1 parent bb769d1 commit 1dbc5af1c8b0832ba08b876973018006fd772918 Krister Kari committed Sep 1, 2012
Showing with 5 additions and 23 deletions.
  1. +0 −1 README.md
  2. +1 −13 bin/javascripts/jquery.nanoscroller.min.js
  3. +0 −1 bin/readme.html
  4. BIN build/compiler.jar
  5. +4 −8 grunt.js
View
@@ -196,7 +196,6 @@ To build nanoScroller from source you need the following libraries installed:
* Node.js and npm: [homepage / download](http://nodejs.org/)
* Grunt: [homepage](http://gruntjs.com/) | `npm install -g grunt`
-* Java
#### How to build & contribute
Oops, something went wrong.
View
@@ -192,7 +192,6 @@
<ul>
<li>Node.js and npm: <a href="http://nodejs.org/">homepage / download</a></li>
<li>Grunt: <a href="http://gruntjs.com/">homepage</a> | <code>npm install -g grunt</code></li>
-<li>Java</li>
</ul>
<h4>How to build &amp; contribute</h4>
<ol>
View
Binary file not shown.
View
@@ -65,14 +65,10 @@ module.exports = function(grunt) {
dest: '<%= dirs.testDir %>/spec'
}
},
- closureCompiler: {
+ min: {
all: {
- closureCompiler: 'build/compiler.jar',
- js: '<%= dirs.jsDir %>/<%= pkg.name %>.js',
- output_file: '<%= dirs.jsDir %>/<%= pkg.name %>.min.js',
- options: {
- compilation_level: 'SIMPLE_OPTIMIZATIONS'
- }
+ src: ['<%= dirs.jsDir %>/<%= pkg.name %>.js'],
+ dest: '<%= dirs.jsDir %>/<%= pkg.name %>.min.js'
}
},
sizediff: {
@@ -119,7 +115,7 @@ module.exports = function(grunt) {
}
});
- grunt.registerTask('default', 'coffee:nano closureCompiler concat:unmin concat:min csslint lint sizediff shell:marked');
+ grunt.registerTask('default', 'coffee:nano min concat:unmin concat:min csslint lint sizediff shell:marked');
grunt.registerTask('build', 'default');
grunt.registerTask('build:tests', 'coffee:tests');
grunt.registerTask('test', 'coffee:tests jasmine');

0 comments on commit 1dbc5af

Please sign in to comment.