ai-yuca 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.
Files changed (62) hide show
  1. package/.eslintrc.js +25 -0
  2. package/CONFIG_UPLOAD.md +154 -0
  3. package/CONTRIBUTING.md +58 -0
  4. package/INSTALLATION.md +192 -0
  5. package/README.md +80 -0
  6. package/bin/cli.js +85 -0
  7. package/bin/cli.ts +302 -0
  8. package/dist/bin/cli.d.ts +2 -0
  9. package/dist/bin/cli.js +297 -0
  10. package/dist/package.json +51 -0
  11. package/dist/src/config.d.ts +56 -0
  12. package/dist/src/config.js +101 -0
  13. package/dist/src/download.d.ts +30 -0
  14. package/dist/src/download.js +214 -0
  15. package/dist/src/index.d.ts +18 -0
  16. package/dist/src/index.js +126 -0
  17. package/dist/src/types/analyze.d.ts +33 -0
  18. package/dist/src/types/analyze.js +5 -0
  19. package/dist/src/types/download.d.ts +60 -0
  20. package/dist/src/types/download.js +2 -0
  21. package/dist/src/types/index.d.ts +8 -0
  22. package/dist/src/types/index.js +28 -0
  23. package/dist/src/types/upload.d.ts +89 -0
  24. package/dist/src/types/upload.js +2 -0
  25. package/dist/src/upload.d.ts +24 -0
  26. package/dist/src/upload.js +252 -0
  27. package/dist/src/uploadWithConfig.d.ts +34 -0
  28. package/dist/src/uploadWithConfig.js +82 -0
  29. package/dist/src/utils/compression.d.ts +16 -0
  30. package/dist/src/utils/compression.js +85 -0
  31. package/dist/test/compression.test.d.ts +1 -0
  32. package/dist/test/compression.test.js +109 -0
  33. package/dist/test/download.test.d.ts +1 -0
  34. package/dist/test/download.test.js +168 -0
  35. package/dist/test/index.test.d.ts +1 -0
  36. package/dist/test/index.test.js +33 -0
  37. package/dist/test/upload.test.d.ts +1 -0
  38. package/dist/test/upload.test.js +140 -0
  39. package/docs/usage.md +223 -0
  40. package/examples/sample.txt +7 -0
  41. package/examples/upload-example.js +53 -0
  42. package/out/test.txt +1 -0
  43. package/package.json +51 -0
  44. package/src/config.ts +104 -0
  45. package/src/download.ts +216 -0
  46. package/src/index.js +88 -0
  47. package/src/index.ts +98 -0
  48. package/src/types/analyze.ts +37 -0
  49. package/src/types/download.ts +67 -0
  50. package/src/types/index.ts +16 -0
  51. package/src/types/upload.ts +97 -0
  52. package/src/upload.js +197 -0
  53. package/src/upload.ts +254 -0
  54. package/src/uploadWithConfig.ts +122 -0
  55. package/src/utils/compression.ts +61 -0
  56. package/test/compression.test.ts +88 -0
  57. package/test/download.test.ts +162 -0
  58. package/test/index.test.js +38 -0
  59. package/test/index.test.ts +39 -0
  60. package/test/upload.test.ts +131 -0
  61. package/tsconfig.json +17 -0
  62. package/vs.config.json +42 -0
package/vs.config.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "upload": {
3
+ "uploadPath": "out",
4
+ "s3Static": "static/aiAgent"
5
+ },
6
+ "deploy": {
7
+ "baseUrlExample": "baseUrl: ['/', 'en-us/', 'zh-hk/', 'test/']",
8
+ "baseUrl": [
9
+ "/",
10
+ "en-us/",
11
+ "zh-cn/",
12
+ "de-de/",
13
+ "it-it/",
14
+ "pt-pt/",
15
+ "es-es/",
16
+ "fr-fr/",
17
+ "ru-ru/",
18
+ "error/",
19
+ "download-v2/"
20
+ ],
21
+ "host": "https://www.china2u.xyz",
22
+ "testHost": "https://ai.decom.valleysound.xyz"
23
+ },
24
+ "aws": {
25
+ "Bucket": "decom-cdn",
26
+ "prefix": "fed",
27
+ "Region": "us-east-1",
28
+ "HostName": "https://cdn.cn2u.xyz"
29
+ },
30
+ "crowdin": {
31
+ "project": "fed-buy-buy-buy-home",
32
+ "langMap": ["zh-cn","en-us", "de-de", "pt-pt", "fr-fr", "es-es", "it-it", "ru-ru"],
33
+ "workDir": "src",
34
+ "reg": "{#(.+?)#}",
35
+ "keysDir": "src/_i18n",
36
+ "Bucket": "mall-rocket-cdn",
37
+ "prefix": "fed",
38
+ "Region": "us-east-1",
39
+ "FromIni": "mall",
40
+ "HostName": "https://cdn.alvinclub.ca"
41
+ }
42
+ }