-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
95 lines (95 loc) · 4.92 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"manifest_version": 2,
"name": "FormSave",
"version": "0.10.0",
"description": "Automatically save textareas and view those previously saved.",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"permissions": [
"storage"
],
"browser_action": {
"default_icon": {
"32": "icons/icon32.png"
},
"browser_style": true,
"default_title": "FormSave",
"default_popup": "popup/formsave.html"
},
"options_ui": {
"page": "options/options.html",
"browser_style": true
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"lib/lodashCustom.min.js",
"lib/browser-polyfill.min.js",
"config.js",
"content.js"
]
}
],
"applications": {
"gecko": {
"id": "{88de8cc8-d1ce-484a-bd9f-dd0b100cf262}"
}
},
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9DcSF7MhwAp1KSs3NHWYBENrncy2peLAmE+nRvvbdAh1G+N9obDZdJ7ZoJgrE6QgZPUHokhZhL7YMoUgvEQXx6hqJwLDJGyEjMFCiQHqob0CD6KpYEQomkIoB/FxD8ziMIhbQa4Jv7ak7y2NfVbT0sN822asMG6yh03IP5A7G6NPJMDQdn5CRFALdq6MR9eInsYph/XBiF87ZcdVd8PRgSugaUFSYzr22boTYMoZB8p0RpGZcxmv1eMl7CQe9wUf8bsYD+S32nV8CfasZE0xJcmE9bsA8wuMA4Oo1c5osT3/Hxtq/josStwSnzepOzXkgOAH77NkehS1zzW2VskwSwIDAQAB",
"license": "GPL-3.0",
"scripts": {
"postinstall": "mkdir -p formsave/lib && lodash include=debounce,reverse,sortBy,values,escape,partition,merge,trim -s -p -o formsave/lib/lodashCustom.min.js && browserify -r vague-time -r fuzzy-search -r escape-html-template-tag -r match-pattern > formsave/lib/deps.js && cp node_modules/webextension-polyfill/dist/browser-polyfill.min.js formsave/lib/browser-polyfill.min.js; npm run manifest:test",
"lint": "npm run manifest:test; standard && web-ext lint -s formsave",
"pretest": "npm run lint && rm -f selenium-standalone.txt",
"test": "wdio || (cat selenium-standalone.txt; exit 1)",
"debug:firefox": "npm run manifest:test; web-ext run -s formsave -a . --pref=extensions.webextensions.uuids='{\\\"{88de8cc8-d1ce-484a-bd9f-dd0b100cf262}\\\":\\\"88de8cc8-d1ce-484a-bd9f-dd0b100cf262\\\"}' -u moz-extension://88de8cc8-d1ce-484a-bd9f-dd0b100cf262/popup/formsave.html",
"debug:chrome": "npm run manifest:test; $(which chrome || which chromium-browser) --temp-profile --password-store=basic --load-extension=formsave about:blank",
"debug": "npm run debug:firefox",
"decrypt": "gpg --decrypt .secrets.tar.gpg | tar -x",
"manifest:firefox": "jq 'del(.devDependencies, .dependencies, .scripts, .license, .key, .update_url, .standard)' < package.json > formsave/manifest.json",
"manifest:chrome": "jq 'del(.devDependencies, .dependencies, .scripts, .license, .applications, .options_ui.browser_style, .standard)' < package.json > formsave/manifest.json",
"manifest:test": "jq 'del(.update_url)' < package.json > formsave/manifest.json",
"build:firefox": "npm run manifest:firefox; web-ext build -s formsave -a .",
"build:chrome": "npm run manifest:chrome; npm run decrypt && $(which chrome || which chromium-browser) --pack-extension=formsave --pack-extension-key=secrets/formsave.pem",
"release:chrome": "npm run build:chrome && github-release release -s $(cat secrets/github) -u lutostag -r webextension-formsave -t $(git describe) && github-release upload -s $(cat secrets/github) -u lutostag -r webextension-formsave -f formsave.crx -n formsave.crx -t $(git describe)",
"release:firefox": "npm run manifest:firefox; web-ext sign -s formsave -a . --api-key $(cat secrets/amo_key) --api-secret $(cat secrets/amo_secret)",
"release": "npm run release:chrome && npm run release:firefox",
"preversion": "test -z \"$(git status --porcelain)\" && npm test",
"fixupdate": "sed -i \"/updatecheck/{s_codebase='.*' version='.*'_codebase='https://github.com/lutostag/webextension-formsave/releases/download/v$(jq -r .version < package.json)/formsave.crx' version='$(jq -r .version < package.json)'_}\" updates/chrome.xml",
"version": "git add package.json && npm run fixupdate && git add updates/chrome.xml",
"postversion": "git push && git push --tags && npm run release",
"hashes": "rm -fr formsave/lib; npm run postinstall; sha256sum formsave/lib/*"
},
"update_url": "https://raw.githubusercontent.com/lutostag/webextension-formsave/master/updates/chrome.xml",
"devDependencies": {
"browserify": "^16.0.0",
"lodash-cli": "^4.17.4",
"standard": "^11.0.0",
"svgexport": "^0.3.2",
"wdio-dot-reporter": "^0.0.9",
"wdio-firefox-profile-service": "^0.1.1",
"wdio-mocha-framework": "^0.5.9",
"wdio-selenium-standalone-service": "^0.0.10",
"web-ext": "^2.2.2",
"webdriverio": "^4.6.2"
},
"dependencies": {
"escape-html-template-tag": "^1.1.0",
"fuzzy-search": "^2.0.1",
"match-pattern": "^0.0.2",
"vague-time": "^2.4.0",
"webextension-polyfill": "^0.2.1"
},
"standard": {
"globals": [
"browser"
]
}
}