Permalink
Browse files

Replace min and minjs with uglify.

  • Loading branch information...
davidkaneda committed Feb 17, 2013
1 parent dc9ec08 commit b1288b0734b3928955bc2633697546fe985e9bf0
Showing with 18 additions and 18 deletions.
  1. +17 −18 Gruntfile.coffee
  2. +1 −0 package.json
View
@@ -8,6 +8,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks "grunt-contrib-copy"
grunt.loadNpmTasks "grunt-contrib-concat"
grunt.loadNpmTasks "grunt-contrib-jshint"
+ grunt.loadNpmTasks "grunt-contrib-uglify"
grunt.loadNpmTasks "grunt-css"
grunt.registerMultiTask "rake", "Compile a Ruby Package with Rake", ->
@@ -150,25 +151,24 @@ module.exports = (grunt) ->
src: ["<banner>", "<file_strip_banner:src/jqtouch.js>"]
dest: "<%= dirs.dist %>/src/jqtouch.js"
- minjs:
- extensions:
- src: ["<%= dirs.dist %>/extensions/*.js"]
- dest: "<%= dirs.dist %>/extensions/*.min.js"
- options:
- banner: true
+ uglify:
- min:
- jqtouch:
- src: ["<%= dirs.dist %>/src/jqtouch.js"]
- dest: "<%= dirs.dist %>/src/jqtouch.min.js"
+ options:
+ globals:
+ jQTouch: yes
- "jquery-bridge":
- src: ["<%= dirs.dist %>/src/jqtouch-jquery.js"]
- dest: "<%= dirs.dist %>/src/jqtouch-jquery.min.js"
+ jqtouch:
+ expand: yes
+ cwd: '<%= dirs.dist %>/src/'
+ src: '**/*.js'
+ dest: "<%= dirs.dist %>/src/"
+ ext: '.min.js'
- "jquery-bridge2":
- src: ["<%= dirs.dist %>/src/jqtouch-jquery2.js"]
- dest: "<%= dirs.dist %>/src/jqtouch-jquery2.min.js"
+ extensions:
+ expand: yes
+ cwd: "<%= dirs.dist %>/extensions/"
+ src: '**/*.js'
+ dest: "<%= dirs.dist %>/extensions/"
cover:
compile:
@@ -199,7 +199,6 @@ module.exports = (grunt) ->
$: true
console: true
- uglify: {}
# Tasks
grunt.registerTask "nuke", ["clean:build", "clean:dist"]
@@ -215,5 +214,5 @@ module.exports = (grunt) ->
# Full-build tasks
grunt.registerTask "light", ["nuke", "copy:prepare", "css", "concat"]
- grunt.registerTask "dist", ["nuke", "zepto", "jquery-bridge", "light", "test", "copy:dist", "replace:strip-warnings", "min", "minjs", "replace:distpath", "copy:checkin"]
+ grunt.registerTask "dist", ["nuke", "zepto", "jquery-bridge", "light", "test", "copy:dist", "replace:strip-warnings", "uglify", "replace:distpath", "copy:checkin"]
grunt.registerTask "full", ["nuke", "light", "cq", "dist"]
View
@@ -43,6 +43,7 @@
"grunt-contrib-copy": "0.4.0rc7",
"grunt-contrib-mincss": "~0.4.0",
"grunt-contrib-jshint": "~0.1.0",
+ "grunt-contrib-uglify": "~0.1.1rc6",
"grunt-css": "~0.5.3",
"grunt-contrib-compass": "~0.1.1rc8"
},

0 comments on commit b1288b0

Please sign in to comment.