Heutagogy chrome extension project.
Install extension from Chrome Web Store: Heutagogy
- Hot reloading React/Redux (Using Webpack and React Transform)
- Write code with ES2015+ syntax (Using Babel)
The context menu is created by chrome/extension/background/contextMenus.js.
# clone it
$ git clone https://github.com/heutagogy/heutagogy-chrome-extension
# Install dependencies
$ npm install
- Run script
# build files to './dev'
# start webpack development server
$ npm run dev
- Load unpacked extensions with
./dev
folder.
This uses Webpack
and react-transform
, and use Redux
. You can hot reload by editing related files of Popup & Window page.
You can use redux-devtools-extension on development mode.
# build files to './build'
$ npm run build
# generate crx and xml files
$ npm run build
$ npm run compress
To build crx
file (auto update), please set options in compress.config.js, and add update.xml
file url in [manifest.json](https://developer.chrome.com/extensions/autoupdate#update_url manifest.json).
- keyFile: your private key path
you can use
npm run compress-keygen
to generate private key./key.pem
- contentPath
- name: name of crx file
- outputPath: path to desired crx and xml files
- updateFilename: name of update xml file
- updateUrl
See autoupdate guide for more information.
test/app
: React components, Redux actions & reducers tests
# lint
$ npm run lint
# test/app
$ npm test
$ npm test -- --watch # watch files