-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: adds support for manifest 3 (v0.23.0)
- github issue [#9]
- Loading branch information
1 parent
b6ba226
commit 0074e97
Showing
13 changed files
with
103 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>SSASy</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>SSASY</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "@ssasy-auth/extension", | ||
"nickname": "ssasy", | ||
"version": "0.22.14", | ||
"version": "0.23.0", | ||
"license": "MIT", | ||
"description": "a browser extension that is built with a secure, usable and scalable authentictaion scheme", | ||
"description": "A browser extension that offers a secure and usable alternative to passwords and federated identity providers.", | ||
"repository": "this-oliver/ssasy-ext", | ||
"author": "[email protected]", | ||
"scripts": { | ||
|
@@ -14,24 +14,28 @@ | |
"bridge:preview": "pnpm bridge:prepare && cd src/bridge && npm pack && cd ../../ && pnpm bridge:clear", | ||
"bridge:clear": "rimraf src/bridge/package.json src/bridge/*-lock.* src/bridge/lib src/bridge/node_modules", | ||
"build": "cross-env NODE_ENV=production run-s clear build:web build:prepare build:js", | ||
"build:mv3": "cross-env NODE_ENV=production MANIFEST_VERSION=3 run-s clear build:web build:prepare build:js build:bg", | ||
"build:prepare": "esno scripts/prepare.ts", | ||
"build:web": "vite build", | ||
"build:js": "vite build --config vite.config.content.ts", | ||
"build:bg": "vite build --config vite.config.background.ts", | ||
"bump": "npx fistbump", | ||
"clear": "rimraf extension/dist extension/manifest.json extension.* *.tgz", | ||
"dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*", | ||
"dev": "npm run clear && cross-env NODE_ENV=development run-p 'dev:!(mv3|bg)'", | ||
"dev:mv3": "npm run clear && cross-env NODE_ENV=development MANIFEST_VERSION=3 run-p 'dev:!(mv3)'", | ||
"dev:prepare": "esno scripts/prepare.ts", | ||
"dev:web": "vite", | ||
"dev:js": "npm run build:js -- --mode development", | ||
"dev:bg": "npm run build:bg -- --mode development", | ||
"lint": "eslint --cache --ext .html,.vue,.js,.ts", | ||
"lint:fix": "eslint --fix --ext .html,.vue,.js,.ts", | ||
"pack": "cross-env NODE_ENV=production run-p pack:*", | ||
"pack:zip": "rimraf extension.zip && jszip-cli add extension/* -o ./extension.zip", | ||
"pack:crx": "crx pack extension -o ./extension.crx", | ||
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest", | ||
"prepare:firefox": "run-s build pack:zip", | ||
"release:firefox": "pnpm build && pnpm pack && pnpm pack:zip", | ||
"release:chromium": "pnpm build:mv3 && pnpm pack && pnpm pack:zip", | ||
"postinstall": "simple-git-hooks", | ||
"publish": "pnpm bridge:preview", | ||
"start:chromium": "web-ext run --source-dir ./extension --target=chromium", | ||
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop --firefox=firefoxdeveloperedition", | ||
"test": "vitest test" | ||
|
@@ -92,4 +96,4 @@ | |
"*.ts": "eslint --fix" | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Background</title> | ||
</head> | ||
<body> | ||
<script type="module" src="./main.ts"></script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Background</title> | ||
</head> | ||
<body> | ||
<script type="module" src="./index.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { defineConfig } from 'vite' | ||
import { sharedConfig } from './vite.config' | ||
import { isDev, r } from './scripts/utils' | ||
import packageJson from './package.json' | ||
|
||
// bundling the content script using Vite | ||
export default defineConfig({ | ||
...sharedConfig, | ||
define: { | ||
'__DEV__': isDev, | ||
// https://github.com/vitejs/vite/issues/9320 | ||
// https://github.com/vitejs/vite/issues/9186 | ||
'process.env.NODE_ENV': JSON.stringify(isDev ? 'development' : 'production') | ||
}, | ||
build: { | ||
watch: isDev | ||
? {} | ||
: undefined, | ||
outDir: r('extension/dist/background'), | ||
emptyOutDir: false, | ||
sourcemap: isDev ? 'inline' : false, | ||
lib: { | ||
entry: r('src/background/index.ts'), | ||
name: packageJson.name, | ||
formats: [ 'iife' ] | ||
}, | ||
rollupOptions: { | ||
output: { | ||
entryFileNames: 'index.js', | ||
extend: true | ||
} | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters