Created
June 7, 2013 00:19
-
-
Save jboesch/5726186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
uglify: { | |
build: { | |
files: { | |
'jquery.timeAutocomplete.min.js': ['src/*.js'] | |
} | |
} | |
} | |
}); | |
// Load the plugin that provides the "uglify" task. | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.registerTask('default', ['uglify']); | |
}; |
package.json:
{
"name": "jQueryTimeAutocomplete",
"title": "jQueryTimeAutocomplete",
"description": "A time autocomplete plugin similar to how Google Calendar's time autocomplete works.",
"version": "1.0.0",
"homepage": "http://7shifts.com/blog/better-time-drop-downs-for-scheduling-jquery-timeautocomplete/",
"repository": {
"type": "git",
"url": "https://github.com/7shifts/jQueryTimeAutocomplete.git"
},
"devDependencies": {
"grunt": "0.4.1",
"grunt-contrib-uglify": "0.2.0",
"grunt-contrib-concat": "~0.3.0"
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what I get when I "grunt uglify --verbose". Why is it saying [no src] for the "name" prop in my package.json file? I'm not trying to uglify that at all. It's using the "name" prop and trying to tack on ".min.js" on it... Don't know why.