Skip to content

Latest commit

 

History

History
69 lines (39 loc) · 1.3 KB

HACKING.md

File metadata and controls

69 lines (39 loc) · 1.3 KB

Build Requirements

You will need to have nodeJS installed on your system. You can install it via the installers provided on the site or follow the installation guide here

Building

Building is done with jake. Jake can be installed with npm with:

npm install -g jake

and to build bbUI.js you just run:

jake

or

jake build

Hacking

Finding your way around:

src/

core.js

Contains code for managing screens and managing the styling.

bbUI.css

Contains all of the css rules for bbUI.

plugins/

Contains all of the UI plugins. Each plugin should be in the format of:

pluginName.js:

bb.pluginName = {
    apply: function (elements) {
        //code to apply styling to the elements
    }
};

screenshots/

Example screenshots for use in README.md

samples/

An example app that showcases each of the bbUI.js plugins.

pkg/

The build location and also contains the current

TODO:

  • Fix the core.js registeration of plugins. Currently they are all hardcoded in the doLoad function
  • Plugins should define their own css and have it built into bbUI.css
  • More linting should be done
  • add linting step into build