Skip to content

jackunion/emoji-helper

 
 

Repository files navigation

Emoji Helper

An Emoji cheat sheet extension for Chrome, Firefox, Safari and Opera. Also a Bookmarklet. Built because I like spamming my coworkers with 🍄 🐷 🚀 🐌 but fortunately have more important things to keep in mind than the name for 🗿

Visit http://johannhof.github.io/emoji-helper for download links from the official stores.

Development

Since nowadays most browsers allow plugins to be written in HTML/CSS/JS, it is very easy to build a cross-browser extension, especially when you're not interested in low-level browser functionality.

Building

The build process is done through Gulp. Each submodule (chrome, safari, firefox, bookmarklet) has its own Gulpfile which takes care of building the corresponding extension build, e.g. copying required shared resources from the shared folder.

The generated files are located in the build folders. To load the build folder into the browser, do the following:

Chrome/Opera

$ cd chrome
$ gulp build

Follow this guide https://developer.chrome.com/extensions/getstarted#unpacked and select the build folder.

Firefox

A good introduction to the Mozilla Add-on SDK is https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Getting_started

Running it once

$ cd firefox
$ gulp build
$ cd build
$ jpm run

Auto-reload on changes (recommended)

$ cd firefox
$ gulp watch

Safari

$ cd safari
$ gulp build

The build folder now contains emoji.safariextension, which can be loaded using the Extension Builder (https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/UsingExtensionBuilder/UsingExtensionBuilder.html)

Bookmarklet

$ cd bookmarklet
$ gulp dev
$ open test.html

gulp dev will start a server to deliver the bookmarklet. You can test/debug the bookmarklet using test.html.

Testing

Since the extension is mostly about the shared frontend, we're using CasperJS for headless browser testing. CasperJS launches a series of tests on the development page of the bookmarklet.

Check out http://docs.casperjs.org/en/latest/installation.html for instructions on how to install CasperJS.

To run the tests, start up the bookmarklet dev task

$ cd bookmarklet
$ gulp dev

Now run the test task with npm

$ npm test

About

A small cross-browser emoji cheatsheet extension 👍

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.1%
  • CSS 6.0%
  • HTML 5.2%
  • Other 0.7%