This is the official Product Hunt extension.
Product Hunt is a place for product-loving enthusiasts to share and geek out about the latest mobile apps, websites, hardware projects, and technology. With our shiny new Chrome extension, you can:
- View a gallery of the top products of the day in every new tab
- Search for products, collections, and people directly from the Chrome menu bar
- Open the discussion and product details from the product page itself by clicking the PH Bar
- Hunt products and curate collections in a few keystrokes
Explore more ways to use Product Hunt at http://producthunt.com/apps.
You can get this extension frome the Google Chrome Webstore
Name | Version | Installation |
---|---|---|
Node.js | 0.10.x | Instructions |
Gulp | 3.8.x | Instructions |
- Clone the repository:
$ git clone git@github.com:producthunt/producthunt-chrome-extension.git
$ cd producthunt-chrome-extension
- Edit the config file:
$ cp .env.example .env
$ $EDITOR .env
- Install yarn dependencies:
$ yarn install
- Create the initial build
$ gulp build
- Load the extension:
- Open Google Chrome and type
chrome://extensions
inside the address bar - Click on
developer mode
- Click on
Load unpacked extension
- Select the
/build
folder - You are good to go
See the example .env file.
Task | Description |
---|---|
build | Compile, minify and copy the extension files |
build --watch | Rebuild on file change |
clean | Clean the build directory |
test | Run all tests |
test-acceptance | Run the acceptance tests |
test-unit | Run the unit tests |
pack | Create an archive for publishing |
Example usage:
$ gulp clean
$ gulp build
- Install the selenium server and Chromedriver:
$ node_modules/.bin/install_selenium
$ node_modules/.bin/install_chromedriver
- Start selenium with chromedriver:
$ node_modules/.bin/start_selenium_with_chromedriver
- Run the tests:
$ NODE_ENV=test gulp test
To enable the debug output in the console:
localStorage.debug = '*';
$ NODE_ENV=production EXT_ENV={production,staging} gulp build
$ gulp pack
$ open dist/
Then upload the archive to the Chrome Web Store.
See CONTRIBUTING
See all contributors
See CHANGELOG
See LICENSE