Code Monkey home page Code Monkey logo

scribefire's Introduction

Developing ScribeFire

ScribeFire for Chrome, Firefox, Safari, and Opera uses the same base code for all four browsers. This base is found in chrome/scribefire/. The build scripts for each browser copy the base code, add/remove any browser-specific files, and package ScribeFire for that browser. Specific instructions on build for each browser are found in the browser subdirectories.

Localization

Locales are managed on http://interpr.it/ Currently, only Chrome and Firefox are able to utilize more than the default en_US locale. A script for automatically syncing locales is found in this directory (update-locales-sample.sh); you will have to copy it to update-locales.sh and insert the proper API key.

Testing ScribeFire (Basic)

  1. In Chrome, open the tests.html file in the extension's directory. (e.g., chrome-extension://ejcjmdcdolfbijhgipbhgeknknphlbmg/tests.html) This will run the test suite that doesn't interact with blogging services.

Testing ScribeFire (APIs)

  1. Copy tests.config-template.js to tests.config.js

  2. Populate the tests.config.js as follows:

    var passwords = {...};

  3. where {...} is the value of extensions.scribefire.blogs in localStorage; find this value by clicking on "background.html" on chrome://extensions/ under ScribeFire and then clicking on the "Local Storage" entry in the left sidebar.

  4. Open the tests.html file in the extension's directory with the ?filter=publish parameter. (e.g., chrome-extension://ejcjmdcdolfbijhgipbhgeknknphlbmg/tests.html) This will run all of the tests that interact with all of the blogs that you've added to ScribeFire. (Do not add production blogs to your tests.config.js file; only use blogs that can be edited/deleted/modified without any repurcussions.)

  5. Not all tests pass; often, this is because of bugs in the blog server's API. If the first half of each test section passes, you're close enough.

scribefire's People

Contributors

delebash avatar

Watchers

 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.