This document is only relevant for those that want to contribute to the Injector open source project (we love you guys!). If you are only interested in installing the extension you can do so from our homepage:
In order to build Injector, you need to have the following install git 1.7+ and node.js 0.8+ (which includes npm).
Follow these steps to build Injector;
- Clone a copy of the main Injector git repository
by running
git clone git://github.com/neocotic/injector-chrome.git
cd
to the repository directory- Ensure that you have all of the dependencies by entering
npm install
- Ensure that you can run Grunt by using
npm install -g grunt-cli
- To update the compiled and runnable version enter
grunt build
- Pro Tip: Entering just
grunt
does exactly the same thing in this case - Outputs to the
bin
directory
- Pro Tip: Entering just
- To update the optimized distributable file enter
grunt dist
- Requires the previous step to have been run previously (i.e. the
bin
directory must exist) - Outputs to the
dist
directory
- Requires the previous step to have been run previously (i.e. the
- To update the documentation enter
grunt docs
- Outputs to the
docs
directory
- Outputs to the
If you're planning on contributing to Injector please do NOT update the distributable file or documentation (steps 6 and 7 respectively) when submitting a pull request. We will not accept pull requests when these files have been changed as we run these ourselves when creating a new release.
Read the CONTRIBUTING.md
file for more information about submitting pull requests.
To run a locally built extension in Google Chrome you can follow these steps;
- Launch Google Chrome
- Bring up the extensions management page by choosing Tools > Extensions from its main menu
- Ensure Developer mode is checked in the top right of the page
- Disable all other versions of Injector which are installed to avoid any conflicts (e.g. with your snippets)
- Click the Load unpacked extension... button (a file dialog should appear)
- In the file dialog, navigate to this directory and select the
bin
folder before clicking OK