@formatjs/cli 5.1.6 → 5.1.8

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 (44) hide show
  1. package/BUILD +22 -0
  2. package/CHANGELOG.md +1144 -0
  3. package/integration-tests/BUILD +81 -0
  4. package/integration-tests/compile/__snapshots__/integration.test.ts.snap +1154 -0
  5. package/integration-tests/compile/glob/en.json +14 -0
  6. package/integration-tests/compile/glob/en2.json +14 -0
  7. package/integration-tests/compile/glob-conflict/en.json +14 -0
  8. package/integration-tests/compile/glob-conflict/en2.json +14 -0
  9. package/integration-tests/compile/integration.test.ts +213 -0
  10. package/integration-tests/compile/lang/empty.json +1 -0
  11. package/integration-tests/compile/lang/en-crowdin.json +14 -0
  12. package/integration-tests/compile/lang/en-format.json +14 -0
  13. package/integration-tests/compile/lang/en-lokalise.json +14 -0
  14. package/integration-tests/compile/lang/en-simple.json +5 -0
  15. package/integration-tests/compile/lang/en-smartling.json +24 -0
  16. package/integration-tests/compile/lang/en-transifex.json +14 -0
  17. package/integration-tests/compile/lang/en.json +22 -0
  18. package/integration-tests/compile/lang/malformed-messages.json +14 -0
  19. package/integration-tests/compile_folder/__snapshots__/integration.test.ts.snap +44 -0
  20. package/integration-tests/compile_folder/integration.test.ts +33 -0
  21. package/integration-tests/compile_folder/lang/empty.json +1 -0
  22. package/integration-tests/compile_folder/lang/en.json +14 -0
  23. package/integration-tests/compile_folder/lang/en2.json +14 -0
  24. package/integration-tests/extract/__snapshots__/integration.test.ts.snap +941 -0
  25. package/integration-tests/extract/defineMessages/actual.ignore.js +22 -0
  26. package/integration-tests/extract/defineMessages/actual.js +65 -0
  27. package/integration-tests/extract/defineMessages/bad.json +1 -0
  28. package/integration-tests/extract/duplicated/file1.tsx +10 -0
  29. package/integration-tests/extract/duplicated/file2.tsx +10 -0
  30. package/integration-tests/extract/integration.test.ts +256 -0
  31. package/integration-tests/extract/nonDuplicated/file1.tsx +14 -0
  32. package/integration-tests/extract/nonDuplicated/file2.tsx +14 -0
  33. package/integration-tests/extract/typescript/actual.ignore.tsx +21 -0
  34. package/integration-tests/extract/typescript/actual.tsx +104 -0
  35. package/integration-tests/extract/typescript/err.tsx +1 -0
  36. package/integration-tests/extract/typescript/pragma.tsx +77 -0
  37. package/integration-tests/extract/typescript/ts47.tsx +6 -0
  38. package/integration-tests/extract-vue/__snapshots__/integration.test.ts.snap +17 -0
  39. package/integration-tests/extract-vue/comp.vue +22 -0
  40. package/integration-tests/extract-vue/integration.test.ts +14 -0
  41. package/integration-tests/formatter.js +18 -0
  42. package/integration-tests/package.json +5 -0
  43. package/package.json +2 -2
  44. package/bin/formatjs +0 -164756
@@ -0,0 +1,81 @@
1
+ load("@npm//:defs.bzl", "npm_link_all_packages")
2
+ load("//tools:jest.bzl", "jest_test")
3
+
4
+ npm_link_all_packages(name = "node_modules")
5
+
6
+ jest_test(
7
+ name = "integration-compile-folder",
8
+ size = "large",
9
+ srcs = glob(
10
+ [
11
+ "compile_folder/**/*",
12
+ ],
13
+ ),
14
+ flaky = True,
15
+ deps = [
16
+ ":node_modules/@formatjs/cli",
17
+ "//:node_modules/@types/fs-extra",
18
+ "//:node_modules/@types/rimraf",
19
+ "//:node_modules/fast-glob",
20
+ "//:node_modules/fs-extra",
21
+ "//:node_modules/rimraf",
22
+ ],
23
+ )
24
+
25
+ jest_test(
26
+ name = "integration-extract",
27
+ size = "large",
28
+ srcs = [
29
+ "formatter.js",
30
+ ] + glob(
31
+ [
32
+ "extract/**/*",
33
+ ],
34
+ ),
35
+ flaky = True,
36
+ deps = [
37
+ ":node_modules/@formatjs/cli",
38
+ "//:node_modules/@types/fs-extra",
39
+ "//:node_modules/@types/rimraf",
40
+ "//:node_modules/fast-glob",
41
+ "//:node_modules/fs-extra",
42
+ "//:node_modules/rimraf",
43
+ ],
44
+ )
45
+
46
+ jest_test(
47
+ name = "integration-extract-vue",
48
+ size = "large",
49
+ srcs = glob(
50
+ [
51
+ "extract-vue/**/*",
52
+ ],
53
+ ),
54
+ flaky = True,
55
+ deps = [
56
+ ":node_modules/@formatjs/cli",
57
+ "//:node_modules/@babel/types",
58
+ "//:node_modules/@types/node",
59
+ "//:node_modules/@vue/compiler-core",
60
+ "//:node_modules/@vue/compiler-sfc",
61
+ "//:node_modules/fast-glob",
62
+ ],
63
+ )
64
+
65
+ jest_test(
66
+ name = "integration-compile",
67
+ size = "large",
68
+ srcs = [
69
+ "formatter.js",
70
+ ] + glob(
71
+ [
72
+ "compile/**/*",
73
+ ],
74
+ ),
75
+ flaky = True,
76
+ deps = [
77
+ ":node_modules/@formatjs/cli",
78
+ "//:node_modules/@types/rimraf",
79
+ "//:node_modules/rimraf",
80
+ ],
81
+ )