- yarn 1.22.10
- node v16.1.0
- Replace
Constants.appConfig.key
inconstants.js
with your chrome extension's key obtained from chrome developer extension dashboard.- Set
GECKO_ID
inconstants.js
and Set other configurations inconstants.js
when required.- Set extension next version in
package.json
version before building.- Generate locale for key
appName
andappDescription
for extension's name and description. Seeyarn generate:locale
.
Generate locale
yarn generate:locale
Delete locale
yarn delete:locale
yarn
yarn dev:chromium
yarn
yarn dev:firefox
Note: Before creating production build. Set version in package.json's version. that will be extension's build version.
yarn
yarn build:chromium
yarn
yarn build:firefox
- Support for ESNEXT ( with Babel and polyfill).
- Popup page with reactjs and material ui framework.
- Content script with reactjs and material ui framework.
- Option Page with reactjs and material ui framework + tailwind css.
- Bundling (webpack).
- Cross-browser configurations.
- Generate multiple-language (Auto-translations) locales from english locales. See
yarn generate:locale
andyarn delete:locale
.- Some (useful) services e.g. DbService, messagePassing, chromeService and helper functions(helpers).
- Some (useful) react components e.g. FrameMUI.js (To mount react mui component in iframe in content script).
- Locale translation using unofficial google translate API (Free version).
- Comes with React 18(alpha release). you can downgrade it to 17.* but not lower than that.
src/
is root directory for a chrome extension. it includesmanifest.json
file and other static stuff.
src/background.js
is main background js file for the chrome extension.
src/components
is the directory which includes react js components.
src/popup-page
is the directory which includes react js setup for popup page.
src/option-page
is the directory which includes react js setup for option pages.
src/content-scripts
is the directory which includes react js setup for content script.
src/services
is the directory for services that can be written in es6,es7 or es8...
- Write extension's background scripts code in
src/background.js
- Write extension's react components in
src/components/
directory.
- Write extension's popup page codes in
src/popup-page/
directory.
- Write extension's option page codes in
src/option-page
directory.
- Write extension's content scripts codes in
src/content-scripts
directory.
- Write extension's services codes in
src/services
directory.
- Image to text ocr (https://chromewebstore.google.com/detail/image-to-text-ocr/jgjlejdhmfpimggbicpffmpbnalcnhoo)
- Voice typing for google chrome (https://chromewebstore.google.com/detail/voice-typing/hmpihaioaacpehkghnkmnmgmihalkmdf)