This document is only relevant for those that want to contribute to the Template 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 Template, you need to have the following install git 1.7+ and node.js 0.8+ (which includes npm).
Follow these steps to build Template;
- Clone a copy of the main Template git repository
by running
git clone git://github.com/template-extension/template-chrome.git cdto 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 justgruntdoes exactly the same thing in this case)- Outputs to the
bindirectory
- Outputs to the
- To update the optimized distributable file enter
grunt dist- Requires the previous step to have been run previously (i.e. the
bindirectory must exist) - Outputs to the
distdirectory
- Requires the previous step to have been run previously (i.e. the
- To update the documentation enter
grunt docs- Outputs to the
docsdirectory
- Outputs to the
If you're planning on contributing to Template 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 Template which are installed to avoid any conflicts (e.g. with keyboard shortcuts)
- Click the Load unpacked extension... button (a file dialog should appear)
- In the file dialog, navigate to this directory and select the
binfolder before clicking OK