feat: test environment config
This commit is contained in:
parent
a4b254c403
commit
f44cac6d47
9
.env.test
Normal file
9
.env.test
Normal file
@ -0,0 +1,9 @@
|
||||
VERSION=1
|
||||
WEB_URL=https://test.pinmenote.com
|
||||
IS_PRODUCTION=1
|
||||
OBJ_LIST_LIMIT=100
|
||||
|
||||
FF_SYNC_ENABLED=0
|
||||
FF_LOGIN_ENABLED=0
|
||||
FF_NEW_PIN_PREVIEW=0
|
||||
FF_REPORT_BUG=0
|
8
bin/build-chrome-test
Executable file
8
bin/build-chrome-test
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
export NODE_ENV=production
|
||||
# swap manifests
|
||||
cp src/manifest.ch.test.json src/manifest.json
|
||||
# build
|
||||
npm run prod
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
8
bin/build-firefox-test
Executable file
8
bin/build-firefox-test
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
export NODE_ENV=production
|
||||
# swap manifests
|
||||
cp src/manifest.ff.test.json src/manifest.json
|
||||
# build
|
||||
npm run prod:ff
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
43
src/manifest.ch.test.json
Normal file
43
src/manifest.ch.test.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "pinmenote-test",
|
||||
"short_name": "pinmenote-test",
|
||||
"description": "Pin note, modify, draw, comment and archive websites.",
|
||||
"version": "0.1.0",
|
||||
"icons": {
|
||||
"16": "assets/icon/16.png",
|
||||
"32": "assets/icon/32.png",
|
||||
"64": "assets/icon/64.png",
|
||||
"128": "assets/icon/128.png"
|
||||
},
|
||||
"author": "pinmenote (contact@pintmenote.com)",
|
||||
"action": {
|
||||
"default_icon": {
|
||||
"16": "assets/icon/16.png",
|
||||
"24": "assets/icon/24.png",
|
||||
"32": "assets/icon/32.png"
|
||||
},
|
||||
"default_title": "pinmenote-test",
|
||||
"default_popup": "default-popup/default-popup.html"
|
||||
},
|
||||
"permissions": ["activeTab", "storage", "unlimitedStorage", "scripting", "downloads"],
|
||||
"host_permissions": ["<all_urls>"],
|
||||
"background": {
|
||||
"service_worker": "service-worker/service-worker.ts",
|
||||
"type": "module"
|
||||
},
|
||||
"content_scripts": [{
|
||||
"matches": ["<all_urls>"],
|
||||
"all_frames": false,
|
||||
"js": ["content-script/content-script.ts"],
|
||||
"run_at": "document_start"
|
||||
},{
|
||||
"matches": ["<all_urls>"],
|
||||
"all_frames": true,
|
||||
"js": ["iframe/iframe-script.ts"],
|
||||
"run_at": "document_idle"
|
||||
}],
|
||||
"options_ui": {
|
||||
"page": "options-ui/options-ui.html"
|
||||
}
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
"24": "assets/icon/24.png",
|
||||
"32": "assets/icon/32.png"
|
||||
},
|
||||
"default_title": "pinmenote",
|
||||
"default_title": "pinmenote-dev",
|
||||
"default_popup": "default-popup/default-popup.html"
|
||||
},
|
||||
"permissions": ["activeTab", "storage", "unlimitedStorage", "scripting", "downloads"],
|
||||
|
46
src/manifest.ff.test.json
Normal file
46
src/manifest.ff.test.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"applications": {
|
||||
"gecko": {
|
||||
"id": "contact@pinmenote.com"
|
||||
}
|
||||
},
|
||||
"name": "pinmenote-test",
|
||||
"short_name": "pinmenote-test",
|
||||
"description": "Pin note, modify, draw, comment and archive websites.",
|
||||
"homepage_url": "https://test.pinmenote.com",
|
||||
"version": "0.1.0",
|
||||
"icons": {
|
||||
"16": "assets/icon/16.png",
|
||||
"48": "assets/icon/48.png",
|
||||
"128": "assets/icon/128.png"
|
||||
},
|
||||
"author": "pinmenote (contact@pintmenote.com)",
|
||||
"browser_action": {
|
||||
"default_icon": {
|
||||
"16": "assets/icon/16.png",
|
||||
"24": "assets/icon/24.png",
|
||||
"32": "assets/icon/32.png"
|
||||
},
|
||||
"default_title": "pinmenote-test",
|
||||
"default_popup": "default-popup/default-popup.html"
|
||||
},
|
||||
"permissions": ["activeTab", "storage", "unlimitedStorage", "scripting", "downloads", "http://*/*", "https://*/*", "<all_urls>"],
|
||||
"background": {
|
||||
"persistent": true,
|
||||
"scripts": ["service-worker/service-worker.ts"]
|
||||
},
|
||||
"content_scripts": [{
|
||||
"matches": ["<all_urls>"],
|
||||
"js": ["content-script/content-script.ts"],
|
||||
"run_at": "document_start"
|
||||
},{
|
||||
"matches": ["<all_urls>"],
|
||||
"all_frames": true,
|
||||
"js": ["iframe/iframe-script.ts"],
|
||||
"run_at": "document_idle"
|
||||
}],
|
||||
"options_ui": {
|
||||
"page": "options-ui/options-ui.html"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user