@formatjs/cli 5.0.7 → 5.0.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.
- package/BUILD +22 -0
- package/CHANGELOG.md +1098 -0
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/integration-tests/BUILD +81 -0
- package/integration-tests/compile/__snapshots__/integration.test.ts.snap +1056 -0
- package/integration-tests/compile/glob/en.json +14 -0
- package/integration-tests/compile/glob/en2.json +14 -0
- package/integration-tests/compile/glob-conflict/en.json +14 -0
- package/integration-tests/compile/glob-conflict/en2.json +14 -0
- package/integration-tests/compile/integration.test.ts +213 -0
- package/integration-tests/compile/lang/empty.json +1 -0
- package/integration-tests/compile/lang/en-crowdin.json +14 -0
- package/integration-tests/compile/lang/en-format.json +14 -0
- package/integration-tests/compile/lang/en-lokalise.json +14 -0
- package/integration-tests/compile/lang/en-simple.json +5 -0
- package/integration-tests/compile/lang/en-smartling.json +24 -0
- package/integration-tests/compile/lang/en-transifex.json +14 -0
- package/integration-tests/compile/lang/en.json +22 -0
- package/integration-tests/compile/lang/malformed-messages.json +14 -0
- package/integration-tests/compile_folder/__snapshots__/integration.test.ts.snap +44 -0
- package/integration-tests/compile_folder/integration.test.ts +33 -0
- package/integration-tests/compile_folder/lang/empty.json +1 -0
- package/integration-tests/compile_folder/lang/en.json +14 -0
- package/integration-tests/compile_folder/lang/en2.json +14 -0
- package/integration-tests/extract/__snapshots__/integration.test.ts.snap +932 -0
- package/integration-tests/extract/defineMessages/actual.ignore.js +22 -0
- package/integration-tests/extract/defineMessages/actual.js +65 -0
- package/integration-tests/extract/defineMessages/bad.json +1 -0
- package/integration-tests/extract/duplicated/file1.tsx +10 -0
- package/integration-tests/extract/duplicated/file2.tsx +10 -0
- package/integration-tests/extract/integration.test.ts +240 -0
- package/integration-tests/extract/nonDuplicated/file1.tsx +14 -0
- package/integration-tests/extract/nonDuplicated/file2.tsx +14 -0
- package/integration-tests/extract/typescript/actual.ignore.tsx +21 -0
- package/integration-tests/extract/typescript/actual.tsx +104 -0
- package/integration-tests/extract/typescript/err.tsx +1 -0
- package/integration-tests/extract/typescript/pragma.tsx +77 -0
- package/integration-tests/extract-vue/__snapshots__/integration.test.ts.snap +17 -0
- package/integration-tests/extract-vue/comp.vue +22 -0
- package/integration-tests/extract-vue/integration.test.ts +14 -0
- package/integration-tests/formatter.js +18 -0
- package/integration-tests/package.json +5 -0
- package/package.json +3 -3
- package/bin/formatjs +0 -155104
package/BUILD
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
load("@aspect_rules_js//npm/private:npm_package.bzl", "npm_package")
|
|
2
|
+
|
|
3
|
+
PACKAGE_NAME = "cli"
|
|
4
|
+
|
|
5
|
+
genrule(
|
|
6
|
+
name = "bin",
|
|
7
|
+
srcs = ["//packages/cli-lib:formatjs.js"],
|
|
8
|
+
outs = ["bin/formatjs"],
|
|
9
|
+
cmd = "cp $< $@",
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
npm_package(
|
|
13
|
+
name = PACKAGE_NAME,
|
|
14
|
+
srcs = [
|
|
15
|
+
"LICENSE.md",
|
|
16
|
+
"README.md",
|
|
17
|
+
"package.json",
|
|
18
|
+
":bin/formatjs",
|
|
19
|
+
],
|
|
20
|
+
package = "@formatjs/%s" % PACKAGE_NAME,
|
|
21
|
+
visibility = ["//visibility:public"],
|
|
22
|
+
)
|