Code Monkey home page Code Monkey logo

habitrpg-chrome's Introduction

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 fill free to expand :)

habitrpg-chrome's People

Contributors

neveri avatar stanlindsey avatar lefnire avatar paglias avatar goldbattle avatar meepthetendie avatar belphemur avatar syntaxpickax avatar agnesnutter avatar tjwds avatar p4ul avatar zingbretsen avatar

Watchers

Qazzian avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.