• Stars
    star
    171
  • Rank 222,266 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI tool to generate angular chrome extensions

@larscom/ng-chrome-extension

npm-release license npm

master CodeQL

Easily create Angular Chrome Extensions (manifest v3)

The following scenarios/options are supported:

  • Popup ✓
  • New Tab ✓
  • Options ✓
  • Service Worker ✓
  • Content Page ✓

How to install

npm install -g @larscom/ng-chrome-extension

Start creating a new project

ng-chrome

alt text

How to use/develop

  • change directory to your newly created project
  • run npm run start
  • goto: chrome://extensions in the browser and enable 'developer mode'
  • press Load unpacked and target the folder angular/dist

The project is automatically being watched, any changes to the files will recompile the project.

NOTE: changes to the content page and service worker scripts requires you to reload the extension in chrome://extensions

alt text alt text

Build/package for production

  • update version number inside ./angular/src/manifest.json
  • run npm run build:production
  • upload extension-build.zip to the chrome webstore.

This will run a production build and will automatically zip it as a extension package in the root folder named: extension-build.zip

Debugging

Run: npm start

Go to: Developer tools (inspect popup) => Sources => webpack

You can find your source files (TypeScript) over there.

Upgrade Angular

After you have created a new project with ng-chrome and you want to update angular.

Just follow the regular upgrade guide of angular. See: https://update.angular.io/

Angular folder

This folder contains the angular source code. Each feature (popup,options,tab) lives inside its own module and gets lazily loaded.

see: ./angular/src/app/modules

Chrome folder

This folder contains the content page/service worker scripts.

More Repositories

1

angular-chrome-extension

angular chrome extension scaffold
TypeScript
150
star
2

xbox360-controller-manager

Turn OFF your wireless xbox 360 controller on PC and see the battery status of the connected controllers.
C#
73
star
3

ngrx-store-storagesync

Highly configurable state sync library between localStorage/sessionStorage and @ngrx/store (Angular)
TypeScript
41
star
4

gitlab-ci-dashboard

Gitlab CI Dashboard will provide you a global overview of all pipelines, schedules and their status within a single group
Rust
38
star
5

ngx-translate-module-loader

Highly configurable and flexible translations loader for @ngx-translate/core
TypeScript
33
star
6

monokai-dark-vibrant

An overly vibrant Monokai dark theme with colorful colors for vscode.
9
star
7

ngrx-signals-storage

Save signal state (@ngrx/signals) to localstorage/sessionstorage and restore the state on page load.
TypeScript
7
star
8

ngrx-store-formsync

Synchronize any reactive form to @ngrx/store (Angular)
TypeScript
5
star
9

go-cache

High performance, simple generic cache written in GO, including a loading cache
Go
2
star
10

nefit-easy-dotnet

An Async .NET C# Nefit Easy Client Library
C#
2
star
11

ng-qrcode-svg

Simple QR code generator (SVG only) for Angular
TypeScript
2
star
12

bitvavo-go

GO thread safe library (WebSockets / HTTP) for Bitvavo
Go
2
star
13

jit-2fa

Web based HOTP & TOTP accounts, everything stays in the browser
TypeScript
1
star
14

go-bitvavo

Go thread safe client library (WebSockets / HTTP) for Bitvavo
Go
1
star
15

timed-based-otp

Time-based one-time password token generator (web)
TypeScript
1
star