Skip to content

Commit

Permalink
Added gruntfile and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cihadturhan committed Jul 25, 2014
1 parent 9a15d9c commit 8200505
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
33 changes: 33 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = function(grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*\n' +
' * <%= pkg.name %> <%= pkg.version %>\n' +
' * <%= pkg.description %>\n' +
' *\n' +
' * <%= pkg.repository.url %>\n' +
' *\n' +
' * Copyright 2013-<%= grunt.template.today("yyyy") %>, <%= pkg.author %>\n' +
' * Released on: <%= grunt.template.today("mmmm d, yyyy") %>\n' +
'*/\n',
uglify: {
options: {
compress: true,
banner: '<%= banner %>',
},
mangle: {toplevel: false},
squeeze: {dead_code: false},
codegen: {quote_keys: true},
dist: {
files: {
'jquery.aim.min.js':'jquery.aim.js'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['uglify']);
};
10 changes: 10 additions & 0 deletions jquery.aim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "jquery.aim.js",
"description":"A simple jquery plug-in which guesses where the mouse cursor is aiming",
"version":"0.0.1",
"author": "Cihad Turhan <pm@cihadturhan.com>",
"repository":{
"type": "git",
"url": "https://github.com/cihadturhan/jquery-aim"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-uglify": "~0.5.0"
},
"main": "jquery.aim.js"
}

0 comments on commit 8200505

Please sign in to comment.