/
package.json
54 lines (54 loc) · 3.31 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
{
"name": "talkie",
"private": true,
"version": "1.9.0",
"description": "Text-to-speech (TTS) browser extension button.",
"scripts": {
"package": "rimraf .package && mkdir -p .package/ && rsync -a --files-from extension-files.txt . .package/ && cd .package/ && zip -vr \"../talkie-joelpurra.com-${npm_package_version}.zip\" .",
"version:get": "git rev-parse --abbrev-ref HEAD | sed -n -e '/release/ s_release/__ p'",
"version:update": "export TALKIE_VERSION=$(npm run --silent version:get | sed -e 's/^v//') && git diff-index --quiet HEAD -- && npm run --silent version:update:file -- manifest.json && npm run --silent version:update:file -- package.json && git add manifest.json package.json && git commit -m \"${TALKIE_VERSION}\"",
"version:update:file": "json -Ie \"this.version='${TALKIE_VERSION}'\" -f",
"test": "npm run --silent lint",
"lint": "npm run --silent eslint --",
"eslint": "eslint ./src",
"chromestore": "export WEBSTORE_TOKEN=$(chrome-webstore-manager refresh_token --client_id \"$CHROME_CLIENT_ID\" --client_secret \"$CHROME_CLIENT_SECRET\" --refresh_token \"$CHROME_REFRESH_TOKEN\") && npm run chromestore:update && npm run chromestore:publish",
"chromestore:update": "chrome-webstore-manager update enfbcfmmdpdminapkflljhbfeejjhjjk \"talkie-joelpurra.com-${npm_package_version}.zip\"",
"chromestore:publish": "chrome-webstore-manager publish enfbcfmmdpdminapkflljhbfeejjhjjk",
"messages:translate": "npm run --silent messages:download && npm run --silent messages:refresh && npm run --silent messages:count",
"messages:download": "npm run --silent messages:sort && ./tools/translations/download.sh && npm run --silent messages:sort",
"messages:refresh": "npm run --silent messages:sort && ./tools/translations/merge.sh && npm run --silent messages:sort && npm run --silent messages:override:refresh",
"messages:sort": "for MESSAGES in $(find ./_locales -name '*.json'); do jq --sort-keys '.' \"$MESSAGES\" > \"${MESSAGES}~\"; mv \"${MESSAGES}~\" \"$MESSAGES\"; done",
"messages:override:refresh": "for MESSAGES in $(find ./_locales \\( -name 'override.json' -or -name 'manual.json' \\)); do jq --slurp --sort-keys '.[0] as $en | .[1] | with_entries(.key as $key | .value |= (.original = $en[$key].message) + if $en[$key].description then { description: $en[$key].description } else {} end)' \"./_locales/en/messages.json\" \"$MESSAGES\" > \"${MESSAGES}~\"; mv \"${MESSAGES}~\" \"$MESSAGES\"; done",
"messages:count": "for MESSAGES in $(find ./_locales -name 'messages.json'); do jq 'to_entries | .[].key' \"$MESSAGES\"; done | sort | uniq -c"
},
"repository": {
"type": "git",
"url": "git+https://github.com/joelpurra/talkie.git"
},
"keywords": [
"tts",
"text-to-speech",
"browser",
"extension"
],
"author": {
"name": "Joel Purra",
"email": "code+github@joelpurra.com",
"url": "https://joelpurra.com/"
},
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/joelpurra/talkie/issues"
},
"homepage": "https://github.com/joelpurra/talkie#readme",
"devDependencies": {
"chrome-webstore-manager": "^0.4.1",
"eslint": "^3.12.2",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"json": "^9.0.4",
"pre-commit": "^1.2.2",
"rimraf": "^2.5.4"
}
}