Work in progress.
This is a fork of hive-js adapted as a Chrome extension. Main development happens in the original hive-js repo.
git clone git@github.com:hivewallet/hive-chrome.git
cd hive-chrome
npm install
NODE_ENV=production DB_HOST=hive.cloudant.com PROXY_URL=https://hive-proxy.herokuapp.com gulp chrome-watch
On Chrome Extensions page, select "Developer mode" and use "Load unpacked extension" to load the extension from the build
subdirectory.
NODE_ENV=production HIVE_ENV=production DB_HOST=hivewallet.cloudant.com PROXY_URL=https://hive-proxy.herokuapp.com gulp chrome-build
Then either use the "Extensions" page in Chrome to pack the extension into a .crx
file, or use the Chrome Developer Dashboard to submit it to the Chrome Web Store. The .crx
can be installed by manually dragging it to the Extensions page.
- Make sure you want to make a change that's only relevant to hive-chrome, not to hive-js in general :)
- Fork the repo
- Push changes to your fork
- Create a pull request
Note: please make changes in the least invasive way possible (e.g. add new files/sections instead of modifying existing files/sections), to minimize the amount of potential merge conflicts when pulling upstream changes.
Preferred way of working with local and upstream branches:
-
the main branch of the chrome version is
master
-
chrome-specific changes go to
master
(or to feature branches which are merged to master later) -
the
upstream
branch tracks the latest stable upstream version -
to pull a new version:
# only first time git remote add upstream git@github.com:hivewallet/hive-js.git git branch upstream --track origin/upstream git fetch upstream git checkout upstream git merge <whatever_is_the_latest_stable_tag> git push git checkout master git merge upstream # ... work through any merge conflicts, check if it works etc. git push