-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to pass characters instead of keyCodes. Reworked Listen
method to convert incoming characters to lower or upper case and added type checking prior to executing callbacks. Removed potential infinite loop in Listen by unsetting captured keys prior to executing callback and hooks. Added ignored keys property to handle shift+letter uppercase letters. Amended Egg constructor to allow new easter egg to be added directly via the constructor. Added bower config to allow bower publishing/installation, added Grunt tasks to minify project.
- Loading branch information
Rob McVey
committed
Apr 16, 2015
1 parent
832f3bb
commit ac52c79
Showing
6 changed files
with
148 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
uglify: { | ||
options: { | ||
mangle: true | ||
}, | ||
target: { | ||
files: { | ||
'egg.min.js': ['egg.js'] | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.registerTask('build', ['uglify']); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "egg.js", | ||
"main": "egg.js", | ||
"version": "0.0.1", | ||
"homepage": "https://github.com/mikeflynn/egg.js", | ||
"authors": [ | ||
"Mike Flynn <[email protected]>" | ||
], | ||
"description": "A simple javascript library to add easter eggs to web pages.", | ||
"keywords": [ | ||
"easter eggs", | ||
"konami code" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "egg.js", | ||
"version": "0.0.1", | ||
"description": "A simple javascript library to add easter eggs to web pages.", | ||
"main": "Gruntfile.js", | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-uglify": "^0.9.1" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mikeflynn/egg.js.git" | ||
}, | ||
"keywords": [ | ||
"easter eggs", | ||
"konami code" | ||
], | ||
"author": "Mike Flynn", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/mikeflynn/egg.js/issues" | ||
}, | ||
"homepage": "https://github.com/mikeflynn/egg.js" | ||
} |
👍 lol