Skip to content

Commit 7aa2278

Browse files
feat(graphs): completion graphs per project
1 parent 5ae0c21 commit 7aa2278

5 files changed

Lines changed: 1192 additions & 8 deletions

File tree

.env.example

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copy this file to .env and fill in the values for local development.
2+
# cp .env.example .env
3+
#
4+
# .env is git-ignored; never commit real credentials.
5+
#
6+
# Usage – run a script locally with its environment loaded automatically:
7+
# npm run start:progress – full run (SVGs + GitHub issue update)
8+
# npm run start:en-us – sync en-US translations
9+
# npm run start:issues – sync Crowdin issues → GitHub Issues
10+
# npm run start:distribution – sync distribution CDN files
11+
#
12+
# Requires Node.js 20.6+ (uses the built-in --env-file flag).
13+
14+
#
15+
# Crowdin
16+
#
17+
18+
# Personal access token from https://crowdin.com/settings#api-key
19+
# Required by: crowdin-progress, sync-crowdin-en-us, sync-crowdin-issues
20+
CROWDIN_TOKEN=
21+
22+
# Comma-separated list of Crowdin project IDs
23+
# Required by: crowdin-progress, sync-crowdin-en-us, sync-crowdin-issues
24+
CROWDIN_PROJECT_IDS=
25+
26+
# Comma-separated Crowdin distribution hashes (from the Distributions page)
27+
# Required by: sync-crowdin-distribution
28+
CROWDIN_DISTRIBUTION_IDS=
29+
30+
#
31+
# GitHub
32+
#
33+
34+
# GitHub personal access token with 'repo' scope (issues read/write)
35+
# Required by: crowdin-progress (unless SVG_ONLY=true), sync-crowdin-issues
36+
GH_BOT_TOKEN=
37+
38+
# Repository in "owner/repo" format
39+
# Required by: crowdin-progress (unless SVG_ONLY=true), sync-crowdin-issues
40+
GITHUB_REPOSITORY=LizardByte/i18n
41+
42+
#
43+
# crowdin-progress options
44+
#
45+
46+
# Directory where SVG progress graphs are written.
47+
# Default: /tmp/crowdin-progress
48+
# SVG_OUTPUT_DIR=./dist-pages/progress
49+
50+
# Set to true to generate SVG graphs only and skip all GitHub API calls.
51+
# When true, GH_BOT_TOKEN and GITHUB_REPOSITORY are not required.
52+
SVG_ONLY=false
53+
54+
#
55+
# sync-crowdin-distribution options
56+
#
57+
58+
# Directory where distribution files are written.
59+
# Default: dist-pages/dist
60+
# OUTPUT_DIR=./dist-pages/dist

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,6 @@ junit.xml
151151

152152
# package lock
153153
package-lock.json
154+
155+
# dist
156+
dist-pages/

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
},
3737
"scripts": {
3838
"build": "echo \"No build step required\"",
39+
"start:distribution": "node --env-file=.env src/sync-crowdin-distribution.cjs",
40+
"start:en-us": "node --env-file=.env src/sync-crowdin-en-us.js",
41+
"start:issues": "node --env-file=.env src/sync-crowdin-issues.js",
42+
"start:progress": "node --env-file=.env src/crowdin-progress.js",
3943
"test": "npm-run-all test:schema test:unit test:report test:lint",
4044
"test:schema": "node src/validate-language-managers.js",
4145
"test:unit": "jest --coverage",

0 commit comments

Comments
 (0)