NeverI / habitrpg-chrome

Chrome extension for HabitRPG. Uses 3rd party productivity website events to trigger point gain/loss.
GNU General Public License v3.0
9 stars 1 forks source link

HabitRPG browser extensions

Packed files:

About the development

The main goal is keeping away the core code from the browser dependency, so it can use in multiple platform. But since every browser has an own extension structure it's not an easy task...

The tools which are help achive that holy goal:

Development environment setup

The build system is the Grunt task runner. If you don't know definitely check it (life saver stuff:).

That's is. You are ready to build some awesome feature :)

Build system commands

All grunt command must be writen to the terminal (cmd on windows) in the root of the cloned directory.

  grunt # check all javascript file for syntax error

  grunt chrome # copy and merge all necessary file to the builds/chrome folder

  grunt test_core # run the unit test on the core

  grunt watch:core # continuous watch the core and test/core folders
                   # and run jslint and unit test on every save

  grunt watch:chrome # continuous watch the chrome dependency folders 
                     # and run the chrome command on every save

If these not enough for you check the grunt file it has some others and of course fill free to expand :)