The LL extension is a free tool which assists your library in delivering their services directly into your research workflow in more ways than one!
- Node v18
- Chrome Extension Manifest V3
- React 17
- Webpack 5
- Webpack Dev Server 4
- React Refresh / Fast Refresh
- TypeScript 4
- Clone the repository
- Install dependencies
$ npm install
- Start the development server
$ npm run start
You can Load your extension as follows:
- Access
chrome://extensions/
(Chrome)opera://extensions
(Opera)edge://extensions/
(Edge)about:debugging
(Firefox) - Check
Developer mode
(Chrome/Opera/Edge) - Click on
Load unpacked extension
(Chrome/Opera/Edge)This Firefox
->Load Temporary Add-on
(Firefox) - Select the
build
folder.
Or alternative from Git Bash running just one command:
npm run start:chrome (Chrome) npm run start:opera (Opera) alias edge="/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge" (Edge) npm run start:edge (Edge) npm run start:firefox (Firefox)
All extension specific code must be placed in the src
folder.
To make your workflow much more efficient we use the webpack server to develop (started with npx start
) with auto reload - reloads the browser automatically every time that you save some file in your editor.
You can run the dev mode on other port if you want. Just specify the env var port
like this:
$ PORT=6002 npm run start
Configuration is pulled in from the API and stored. Any configuration that actually needs to be secret will have to set up separately.
URL | Description |
---|---|
Chrome Extension documentation | Getting started with Creating a Chrome Browser extension |
Webpack documentation | Webpack concepts |