constantinedc / r-chess-pgn-viewer

Source files for chrome/firefox extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

r/chess pgn viewer

View pgn boards inline on r/chess. Current version: 1.95.1

Installation

Link on chrome webstore

Link on firefox add-on

Contributing

Requirements

  1. npm
  2. chrome. firefox.

Setup

  1. Fork repo.
  2. npm install to install dependencies.
  3. grunt to copy source files to the different browser folders.
  4. Instructions for setting up chrome extension development locally.
  5. Instructions for setting up firefox extension development locally.

Making changes

You should only have to make source code changes to files in the core folder. core contains the actual code developed for this extension. viewer contains third party pgn viewers that we utilize. Use the following grunt tasks to handle copying the source files from both folders to the browser folders:

grunt clean and grunt copy will wipe, and reapply all source files to the two browser folders respectively.

grunt watch will set a watch on the source files so that any changes are automatically copied over to the browser folders.

grunt chrome and grunt firefox will copy source files to their respective folders, and watch for further changes to copy over to their respective browser.

Testing changes

For chrome

After every change, reload the extension from the extensions menu in chrome - chrome://extensions.

For firefox

After every change, reload the extension from the extension debugging menu in firefox - about:debugging.

Packaging

For chrome
  1. Bump up version number in manifest
  2. Zip chrome folder.
  3. Upload zip file at chrome developer dashboard.
For firefox
  1. Bump up version number in manifest
  2. Zip firefox folder
  3. Upload at firefox add-on developer hub.

License

MIT

About

Source files for chrome/firefox extension

License:Other


Languages

Language:JavaScript 99.8%Language:CSS 0.2%