• Stars
    star
    107
  • Rank 316,906 (Top 7 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created almost 12 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Chrome extension for HabitRPG. Uses 3rd party productivity website events to trigger point gain/loss.

Habitica 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:

  • small separated files
  • event based communication
  • build system which pack everything together

Development environment setup

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

  • The first step is get the nodejs and install.
  • Secondly get the grunt-cli package npm install -g grunt-cli
  • And the final step is go to the root of the cloned folder and type npm install and it will download all necessary 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 feel free to expand :)

More Repositories

1

habitica

A habit tracker app which treats your goals like a Role Playing Game.
JavaScript
11,366
star
2

habitica-android

Native Android app for Habitica
Kotlin
1,330
star
3

habitica-ios

Native iOS app for Habitica
Swift
661
star
4

habitrpg-mobile

HabitRPG mobile application under development. Angular + PhoneGap
JavaScript
286
star
5

habitrpg-shared

Shared resources useful for multiple HabitRPG repositories. Assets (sprites, imgs, etc), CSS, algorithms, and more.
CoffeeScript
95
star
6

Habitica-Webhooks

A server to receive webhooks for Habitica related projects (github, slack, etc)
JavaScript
20
star
7

habitica-chat-extension

A habitica.com Chat Client for Chrome
JavaScript
18
star
8

habitica-markdown

A markdown-it module pre-configured for use in Habitica
JavaScript
13
star
9

habitrpg-community

Community website for HabitRPG (Drupal)
PHP
12
star
10

habitrpg-email-server

The server from which all HabitRPG's emails are sent
JavaScript
9
star
11

habitica-images

6
star
12

habitica-zapier

JavaScript
6
star
13

habitica-markdown-emoji

Emoji set for Habitica.
JavaScript
4
star
14

mongoose-dictionary

JavaScript
3
star
15

eslint-config

JavaScript
2
star
16

flag-o-rama

An easy way to flag chat messages.
JavaScript
2
star
17

habitica-email-template

Responsive HTML email template for use in Mandrill. Based off of Lee Munroe's original concept. https://github.com/leemunroe/responsive-html-email-template
HTML
2
star
18

habitrpg-redirect

Simple Node.js Express app to redirect requests to habitica.com
JavaScript
1
star
19

AccountDeleteConsumer

JavaScript
1
star
20

tools-for-habitica

HTML
1
star
21

WebhookConsumer

A worker to process webhooks for Habitica
JavaScript
1
star