Skip to content

Commit

Permalink
minor structural changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfriesen committed Aug 20, 2024
1 parent 49b8455 commit 5088bcf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/prerelease_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ git_tag=$(git describe --tags --abbrev=0)
package_version=$(get_json_version "./package.json")

# Get the version from manifest.json
manifest_version=$(get_json_version "./manifest.json")
manifest_version=$(get_json_version "./src/manifest.json")

# Get the version from dist/manifest.json
dist_manifest_version=$(get_json_version "./dist/manifest.json")
Expand Down
34 changes: 27 additions & 7 deletions manifest.json → src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{
"manifest_version": 3,
"name": "QuickCite",
"version": "1.0",
"version": "1.0.0",
"description": "Injects buttons on various sites to copy formatted information to clipboard",
"author": {
"email": "[email protected]"
},
"homepage_url": "https://quickcite.link",
"permissions": ["clipboardWrite", "webNavigation", "storage"],
"host_permissions": ["https://github.com/*", "https://www.instagram.com/*", "https://www.linkedin.com/*"],
"permissions": [
"clipboardWrite",
"webNavigation",
"storage"
],
"host_permissions": [
"https://github.com/*",
"https://www.instagram.com/*",
"https://www.linkedin.com/*"
],
"action": {
"default_popup": "src/popup/popup.html",
"default_icon": {
Expand All @@ -28,14 +36,26 @@
},
"content_scripts": [
{
"matches": ["https://github.com/*", "https://www.instagram.com/*", "https://www.linkedin.com/*"],
"js": ["src/content/content.js"]
"matches": [
"https://github.com/*",
"https://www.instagram.com/*",
"https://www.linkedin.com/*"
],
"js": [
"src/content/content.js"
]
}
],
"web_accessible_resources": [
{
"resources": ["assets/*"],
"matches": ["https://github.com/*", "https://www.instagram.com/*", "https://www.linkedin.com/*"]
"resources": [
"assets/*"
],
"matches": [
"https://github.com/*",
"https://www.instagram.com/*",
"https://www.linkedin.com/*"
]
}
]
}
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
import { crx } from '@crxjs/vite-plugin'
import tailwindcss from 'tailwindcss'
import autoprefixer from 'autoprefixer'
import manifest from './manifest.json'
import manifest from './src/manifest.json'

export default defineConfig({
plugins: [crx({ manifest })],
Expand Down

0 comments on commit 5088bcf

Please sign in to comment.