Permalink
Browse files

Better comments for what happens in dist copy

  • Loading branch information...
1 parent 409c540 commit b1c8a7caa56b58e8c0dbdec488b6989331f57f05 @davidkaneda davidkaneda committed Feb 17, 2013
Showing with 11 additions and 2 deletions.
  1. +11 −2 Gruntfile.coffee
View
@@ -86,17 +86,26 @@ module.exports = (grunt) ->
options:
processContent: (content, path) ->
+ # Strip warnings from JavaScript
if path.match /\.js$/
content.replace /\n\s*warn\(.*/g, ''
+
+ # Update to minified JS paths in HTML
else if path.match /\.html$/
content.replace /([\w-\.]*)(\.min)?\.js/g, '$1.min.js'
+
else
content
zepto:
- files:
- "lib/zepto/": ["submodules/zepto/dist/**"]
+ files: [
+ expand: yes
+ cwd: 'submodules/zepto/dist/'
+ src: 'zepto.js'
+ dest: 'lib/zepto'
+ ,
"<%= dirs.build %>/src/jqtouch-jquery.js": ["submodules/zepto/src/touch.js"]
+ ]
"jquery-bridge":
options:

0 comments on commit b1c8a7c

Please sign in to comment.