Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Getting Started

Uzair Shamim edited this page Aug 18, 2018 · 10 revisions

Requirements For Development

Download Saka

Run the following commands in your terminal to clone Saka:

git clone https://github.com/lusakasa/saka.git;
cd saka;
yarn install;

Build Saka

Chrome

  1. Run the following commands in your terminal to build Saka. An extension you can run will be generated in the dist directory.
    yarn run build:chrome;
    # or if you want to generate an optimized production build
    yarn run build:chrome:prod;
  2. Navigate to chrome://extensions
  3. Enable developer mode and click Load Unpacked Extension
  4. Select the dist directory, and 🚀.
  5. Refresh existing tabs to load Saka into them

Firefox

  1. Run the following commands in your terminal to build Saka. An extension you can run will be generated in the dist directory.
    yarn run build:firefox;
    # or if you want to generate an optimized production build
    yarn run build:firefox:prod;
  2. Navigate to about:debugging
  3. Enable add-on debugging and click Load Temporary Add-on
  4. Select any file within the dist directory, and 🚀.
  5. Firefox will load Saka automatically into all valid existing tabs

Running Tests

We use Jest and the dom-testing-library to test Saka. To run the tests you can simply run yarn test in your terminal and you should see Jest output something like this:

Jest successfully ran

Most of the time you want Jest to automatically run whenever there are changes to any of the code or tests. To do this run yarn test:watch in your terminal and Jest should automatically run when there are changes.

Jest running in watch mode

Clone this wiki locally