Permalink
Showing
with
79 additions
and 0 deletions.
- +1 −0 .gitignore
- +43 −0 Gruntfile.js
- +35 −0 package.json
| @@ -1,2 +1,3 @@ | ||
| .DS_Store | ||
| .vimdir | ||
| +node_modules |
43
Gruntfile.js
| @@ -0,0 +1,43 @@ | ||
| +module.exports = function(grunt) { | ||
| + "use strict"; | ||
| + | ||
| + // Project configuration. | ||
| + grunt.initConfig({ | ||
| + uglify: { | ||
| + target: { | ||
| + files: { | ||
|
XhmikosR
I would use the banner option and specify explicitly the banner text in the minifed file, but both work. You could have a look at this example https://github.com/twbs/bootstrap/blob/master/Gruntfile.js#L13 |
||
| + 'respond.min.js': ['respond.src.js'] | ||
| + } | ||
| + } | ||
| + }, | ||
| + jshint: { | ||
| + options: { | ||
| + curly: true, | ||
| + eqeqeq: true, | ||
| + immed: true, | ||
| + latedef: false, | ||
| + newcap: true, | ||
| + noarg: true, | ||
| + sub: true, | ||
| + undef: true, | ||
| + boss: true, | ||
| + eqnull: true, | ||
| + smarttabs: true, | ||
| + node: true, | ||
| + es5: true, | ||
| + strict: false | ||
| + }, | ||
| + globals: { | ||
| + Image: true, | ||
| + window: true | ||
| + } | ||
| + } | ||
| + }); | ||
| + | ||
| + grunt.loadNpmTasks( 'grunt-contrib-jshint' ); | ||
| + grunt.loadNpmTasks( 'grunt-contrib-uglify' ); | ||
| + | ||
| + // Default task. | ||
| + grunt.registerTask('default', ['jshint', 'uglify:target']); | ||
| + | ||
| +}; | ||
35
package.json
| @@ -0,0 +1,35 @@ | ||
| +{ | ||
| + "name": "Respond.js", | ||
| + "description": "min/max-width media query polyfill", | ||
| + "version": "1.3.1", | ||
| + "homepage": "https://github.com/scottjehl/Respond", | ||
| + "author": { | ||
| + "name": "Scott Jehl", | ||
| + "email": "[email protected]", | ||
| + "url": "http://filamentgroup.com" | ||
| + }, | ||
| + "repository": { | ||
| + "type": "git", | ||
| + "url": "https://github.com/scottjehl/Respond.git" | ||
| + }, | ||
| + "bugs": { | ||
| + "url": "https://github.com/scottjehl/Respond/issues" | ||
| + }, | ||
| + "licenses": [ | ||
| + { | ||
| + "type": "MIT", | ||
| + "url": "https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT" | ||
| + }, | ||
| + { | ||
| + "type": "GPLv2" | ||
| + } | ||
| + ], | ||
| + "devDependencies": { | ||
| + "grunt-cli":"~0.1", | ||
| + "grunt": "~0.4.0", | ||
| + "grunt-contrib-jshint": "~0.2.0", | ||
| + "grunt-contrib-qunit": "~0.3.0", | ||
| + "grunt-contrib-uglify": "0.2.7" | ||
| + } | ||
| + | ||
| +} |
You should add the banner to the minified version...