update README.md

This commit is contained in:
DEV Sam Hayes
2025-02-07 23:55:51 +01:00
parent 4b7b819c59
commit fedf7d7e81
3 changed files with 56 additions and 10 deletions

View File

@@ -1 +1 @@
# npm run lint
npm run lint

View File

@@ -19,21 +19,17 @@ async window.nostr.nip04.encrypt(pubkey, plaintext): string
async window.nostr.nip04.decrypt(pubkey, ciphertext): string
```
The repository is configured to hold the extensions for Chrome and Firefox. While the Chrome extension is yet already available, the Firefox extension will follow later.
[Chrome Extension](https://chromewebstore.google.com/detail/cgikhnoggbhdblnckhcahgkipmiiohbk)
Firefox Extension (yet to come)
The repository is configured as monorepo to hold the extensions for Chrome and Firefox.
## Develop Chrome Extension
To run the Chrome extension from this code:
To build and run the Chrome extension from this code:
```
git clone https://github.com/sam-hayes-org/gooti-extension
cd gooti-extension
npm i
npm run watch:chrome
npm ci
npm run build:chrome
```
then
@@ -41,7 +37,25 @@ then
1. within Chrome go to `chrome://extensions`
2. ensure "developer mode" is enabled on the top right
3. click on "Load unpackaged"
4. select the `dist/chrome` folder of this repository
4. select the `dist/chrome` folder
## Develop Firefox Extension
To build and run the Firefox extension from this code:
```
git clone https://github.com/sam-hayes-org/gooti-extension
cd gooti-extension
npm ci
npm run build:firefox
```
then
1. within Firefox go to `about://debugging`
2. click "This Firefox" on the left
3. click on "Load Temporary Add-on..."
4. select the `dist/firefox` folder
---

View File

@@ -0,0 +1,32 @@
// @ts-check
const tseslint = require("typescript-eslint");
const rootConfig = require("../../eslint.config.js");
module.exports = tseslint.config(
...rootConfig,
{
files: ["**/*.ts"],
rules: {
"@angular-eslint/directive-selector": [
"error",
{
type: "attribute",
prefix: "app",
style: "camelCase",
},
],
"@angular-eslint/component-selector": [
"error",
{
type: "element",
prefix: "app",
style: "kebab-case",
},
],
},
},
{
files: ["**/*.html"],
rules: {},
}
);