locale-sync-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +800 -0
- package/bin/locale-sync.js +72 -0
- package/config/default.json +18 -0
- package/lib/cli/commands/ignore.js +79 -0
- package/lib/cli/commands/init.js +59 -0
- package/lib/cli/commands/pull.js +60 -0
- package/lib/cli/commands/push.js +136 -0
- package/lib/cli/commands/set-credentials.js +35 -0
- package/lib/cli/utils/credentials.js +66 -0
- package/lib/cli/utils/logger.js +9 -0
- package/lib/config/manager.js +44 -0
- package/lib/core/engines/pullEngine.js +160 -0
- package/lib/core/engines/pushEngine.js +367 -0
- package/lib/core/utils/placeholderChecker.js +26 -0
- package/lib/core/utils/stringNormalizer.js +22 -0
- package/lib/index.js +8 -0
- package/lib/io/googleSheets.js +220 -0
- package/lib/io/localFs/astUpdater.js +198 -0
- package/lib/io/localFs/scanner.js +242 -0
- package/package.json +40 -0
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "locale-sync-cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Enterprise i18n Sync CLI (Local <-> Google Sheets)",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"locale-sync": "./bin/locale-sync.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"init": "npx locale-sync init",
|
|
11
|
+
"push": "npx locale-sync push",
|
|
12
|
+
"pull": "npx locale-sync pull",
|
|
13
|
+
"config": "npx locale-sync config"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@babel/parser": "^7.24.0",
|
|
17
|
+
"@babel/traverse": "^7.24.0",
|
|
18
|
+
"@babel/types": "^7.24.0",
|
|
19
|
+
"chalk": "^4.1.2",
|
|
20
|
+
"commander": "^11.1.0",
|
|
21
|
+
"comment-json": "^2.4.2",
|
|
22
|
+
"fast-glob": "^3.3.2",
|
|
23
|
+
"googleapis": "^173.0.0",
|
|
24
|
+
"inquirer": "^8.2.6",
|
|
25
|
+
"js-yaml": "^4.1.0",
|
|
26
|
+
"ora": "^5.4.1",
|
|
27
|
+
"node-fetch": "^2.7.0",
|
|
28
|
+
"undici": "^5.28.4",
|
|
29
|
+
"p-queue": "^6.6.2",
|
|
30
|
+
"p-retry": "^4.1.0",
|
|
31
|
+
"recast": "^0.23.4"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"eslint": "^8.56.0",
|
|
35
|
+
"jest": "^29.7.0"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=16.0.0"
|
|
39
|
+
}
|
|
40
|
+
}
|