Skip to content

Commit

Permalink
chore: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Apr 23, 2023
1 parent 1096a3a commit 8c40f9d
Show file tree
Hide file tree
Showing 24 changed files with 109 additions and 107 deletions.
8 changes: 4 additions & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ karma_bin.karma_test(
# ],
data = [
"//:karma.conf.js",
"//:node_modules/karma-jasmine",
"//:node_modules/karma-chrome-launcher",
"//:node_modules/karma-sauce-launcher",
"//:node_modules/karma-jasmine",
"//:node_modules/karma-jasmine-matchers",
"//:node_modules/karma-sauce-launcher",
] + KARMA_TESTS,
tags = ["manual"],
)
Expand All @@ -141,10 +141,10 @@ karma_bin.karma_test(
# ],
data = [
"//:karma.conf.js",
"//:node_modules/karma-jasmine",
"//:node_modules/karma-chrome-launcher",
"//:node_modules/karma-sauce-launcher",
"//:node_modules/karma-jasmine",
"//:node_modules/karma-jasmine-matchers",
"//:node_modules/karma-sauce-launcher",
] + KARMA_TESTS,
tags = ["manual"],
)
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ http_archive(
load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")

rules_ts_dependencies(
ts_integrity = "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
ts_version_from = "//:package.json",
ts_integrity="sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw=="
)

load("@aspect_bazel_lib//lib:repositories.bzl", "register_copy_directory_toolchains", "register_copy_to_directory_toolchains")
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jest_test(
"tests/unit/**/*",
]),
deps = [
"//:node_modules/rimraf",
"//:node_modules/@types/rimraf",
"//:node_modules/rimraf",
] + SRC_DEPS,
)

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/integration-tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@aspect_rules_jest//jest:defs.bzl", aspect_jest_test = "jest_test")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:jest.bzl", "jest_test")
load("@aspect_rules_jest//jest:defs.bzl", aspect_jest_test = "jest_test")

npm_link_all_packages(name = "node_modules")

Expand Down Expand Up @@ -80,7 +80,7 @@ aspect_jest_test(
["compile/**/*"],
exclude = ["compile/__snapshots__/**/*"],
),
node_modules="//:node_modules",
node_modules = "//:node_modules",
# To update snapshots run,
# bazel run //packages/cli/integration-tests:integration-compile_update_snapshots
snapshots = glob(["compile/__snapshots__/*.snap"]),
Expand Down
6 changes: 4 additions & 2 deletions packages/ecma402-abstract/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ write_source_files(
generate_src_file(
name = "digit-mapping",
src = "NumberFormat/digit-mapping.generated.ts",
data=["//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",],
data = [
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/json-stable-stringify",
],
entry_point = "scripts/digit-mapping.ts",
)

Expand Down
6 changes: 3 additions & 3 deletions packages/icu-messageformat-parser/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jest_test(
js_binary(
name = "benchmark",
data = [
"benchmark.js",
":dist",
"//:node_modules/benchmark",
"benchmark.js",
] + SRC_DEPS,
entry_point = "benchmark.js",
)
Expand Down Expand Up @@ -107,9 +107,9 @@ generate_src_file(
name = "time-data",
src = "time-data.generated.ts",
data = [
"//:node_modules/cldr-core",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/json-stable-stringify"
"//:node_modules/cldr-core",
"//:node_modules/json-stable-stringify",
],
entry_point = "scripts/time-data-gen.ts",
)
Expand Down
6 changes: 3 additions & 3 deletions packages/intl-datetimeformat/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ ts_script(
package_name() + "/cldr-raw",
],
data = [
"scripts/extract-dates.ts",
"src/abstract/skeleton.ts",
"src/types.ts",
":node_modules/@formatjs/ecma402-abstract",
":node_modules/@formatjs/intl-locale",
"//:node_modules/@types/json-stable-stringify",
Expand All @@ -697,9 +700,6 @@ ts_script(
"//:node_modules/cldr-numbers-full",
"//:node_modules/fast-glob",
"//:node_modules/json-stable-stringify",
"scripts/extract-dates.ts",
"src/abstract/skeleton.ts",
"src/types.ts",
],
entry_point = "scripts/cldr-raw.ts",
)
Expand Down
12 changes: 6 additions & 6 deletions packages/intl-displaynames/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ ts_script(
package_name() + "/cldr-raw",
],
data = [
"scripts/extract-displaynames.ts",
":node_modules/@formatjs/ecma402-abstract",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-core",
Expand All @@ -662,7 +663,6 @@ ts_script(
"//:node_modules/cldr-numbers-full",
"//:node_modules/fast-glob",
"//:node_modules/json-stable-stringify",
"scripts/extract-displaynames.ts",
],
entry_point = "scripts/cldr-raw.ts",
)
Expand Down Expand Up @@ -752,11 +752,6 @@ esbuild(
test262_harness_bin.test262_harness_test(
name = "test262",
size = "large",
data = [
"test262-polyfill.js",
"@com_github_tc39_test262//:test262-displaynames-copy",
"@com_github_tc39_test262//:test262-harness-copy",
],
args = [
"--reporter-keys",
"file,attrs,result",
Expand All @@ -769,6 +764,11 @@ test262_harness_bin.test262_harness_test(
"../com_github_tc39_test262",
"../com_github_tc39_test262/test/intl402/DisplayNames/**/*.js",
],
data = [
"test262-polyfill.js",
"@com_github_tc39_test262//:test262-displaynames-copy",
"@com_github_tc39_test262//:test262-harness-copy",
],
# TODO: fix
tags = ["manual"],
)
Expand Down
6 changes: 3 additions & 3 deletions packages/intl-enumerator/BUILD
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild")
load("@aspect_rules_js//npm/private:npm_package.bzl", "npm_package")
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//:index.bzl", "ZONES")
load("//tools:index.bzl", "check_format", "generate_src_file", "ts_compile")
load("//tools:jest.bzl", "jest_test")
load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild")

npm_link_all_packages(name = "node_modules")

Expand All @@ -18,7 +18,7 @@ npm_package(
"README.md",
"package.json",
":dist",
# polyfill-library uses this
# polyfill-library uses this
"polyfill.iife.js",
],
package = "@formatjs/%s" % PACKAGE_NAME,
Expand Down Expand Up @@ -147,4 +147,4 @@ esbuild(
":dist-esm",
"//:node_modules/tslib",
],
)
)
4 changes: 2 additions & 2 deletions packages/intl-getcanonicallocales/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ generate_src_file(
name = "aliases",
src = "src/aliases.generated.ts",
data = [
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-core",
"//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",
],
entry_point = "scripts/aliases.ts",
visibility = ["//:__pkg__"],
Expand All @@ -70,9 +70,9 @@ generate_src_file(
name = "likelySubtags",
src = "src/likelySubtags.generated.ts",
data = [
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-core",
"//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",
],
entry_point = "scripts/likely-subtags.ts",
visibility = ["//:__pkg__"],
Expand Down
12 changes: 6 additions & 6 deletions packages/intl-listformat/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ ts_script(
package_name() + "/cldr-raw",
],
data = [
"scripts/extract-list.ts",
":node_modules/@formatjs/ecma402-abstract",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/@types/lodash",
Expand All @@ -668,7 +669,6 @@ ts_script(
"//:node_modules/fast-glob",
"//:node_modules/json-stable-stringify",
"//:node_modules/lodash",
"scripts/extract-list.ts",
],
entry_point = "scripts/cldr-raw.ts",
)
Expand Down Expand Up @@ -746,11 +746,6 @@ esbuild(
test262_harness_bin.test262_harness_test(
name = "test262",
size = "large",
data = [
"test262-polyfill.js",
"@com_github_tc39_test262//:test262-harness-copy",
"@com_github_tc39_test262//:test262-listformat-copy",
],
args = [
"--reporter-keys",
"file,attrs,result",
Expand All @@ -763,6 +758,11 @@ test262_harness_bin.test262_harness_test(
"../com_github_tc39_test262",
"../com_github_tc39_test262/test/intl402/ListFormat/**/*.js",
],
data = [
"test262-polyfill.js",
"@com_github_tc39_test262//:test262-harness-copy",
"@com_github_tc39_test262//:test262-listformat-copy",
],
# TODO: fix
tags = ["manual"],
)
Expand Down
28 changes: 14 additions & 14 deletions packages/intl-locale/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ load("@aspect_rules_js//npm/private:npm_package.bzl", "npm_package")
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@npm//:test262-harness/package_json.bzl", test262_harness_bin = "bin")
load("//tools:index.bzl", "check_format", "package_json_test", "ts_compile", "generate_src_file")
load("//tools:index.bzl", "check_format", "generate_src_file", "package_json_test", "ts_compile")
load("//tools:jest.bzl", "jest_test")

npm_link_all_packages(name = "node_modules")
Expand Down Expand Up @@ -78,11 +78,6 @@ esbuild(
test262_harness_bin.test262_harness_test(
name = "test262",
size = "large",
data = [
"test262-polyfill.js",
"@com_github_tc39_test262//:test262-harness-copy",
"@com_github_tc39_test262//:test262-locale-copy",
],
args = [
"--reporter-keys",
"file,attrs,result",
Expand All @@ -95,6 +90,11 @@ test262_harness_bin.test262_harness_test(
"../com_github_tc39_test262",
"../com_github_tc39_test262/test/intl402/Locale/**/*.js",
],
data = [
"test262-polyfill.js",
"@com_github_tc39_test262//:test262-harness-copy",
"@com_github_tc39_test262//:test262-locale-copy",
],
# TODO: fix
tags = ["manual"],
)
Expand Down Expand Up @@ -139,13 +139,13 @@ generate_src_file(
name = "character-orders",
src = "character-orders.generated.ts",
data = [
"scripts/common-types.ts",
"scripts/utils.ts",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-localenames-full",
"//:node_modules/cldr-misc-full",
"//:node_modules/fast-glob",
"//:node_modules/json-stable-stringify",
"scripts/common-types.ts",
"scripts/utils.ts",
],
entry_point = "scripts/character-orders.ts",
)
Expand All @@ -155,13 +155,13 @@ generate_src_file(
name = "numbering-systems",
src = "numbering-systems.generated.ts",
data = [
"scripts/common-types.ts",
"scripts/utils.ts",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-localenames-full",
"//:node_modules/cldr-numbers-full",
"//:node_modules/fast-glob",
"//:node_modules/json-stable-stringify",
"scripts/common-types.ts",
"scripts/utils.ts",
],
entry_point = "scripts/numbering-systems.ts",
)
Expand All @@ -172,9 +172,9 @@ generate_src_file(
src = "timezones.generated.ts",
data = [
"scripts/common-types.ts",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-bcp47",
"//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",
],
entry_point = "scripts/timezones.ts",
)
Expand All @@ -185,9 +185,9 @@ generate_src_file(
src = "hour-cycles.generated.ts",
data = [
"scripts/common-types.ts",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-core",
"//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",
],
entry_point = "scripts/hour-cycles.ts",
)
Expand All @@ -198,9 +198,9 @@ generate_src_file(
src = "calendars.generated.ts",
data = [
"scripts/common-types.ts",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-core",
"//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",
],
entry_point = "scripts/calendars.ts",
)
Expand All @@ -211,9 +211,9 @@ generate_src_file(
src = "week-data.generated.ts",
data = [
"scripts/common-types.ts",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/cldr-core",
"//:node_modules/json-stable-stringify",
"//:node_modules/@types/json-stable-stringify",
],
entry_point = "scripts/week-data.ts",
)
2 changes: 1 addition & 1 deletion packages/intl-messageformat/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ ts_node_bin.ts_node_binary(
data = SRCS + SRC_DEPS + [
"tests/benchmark.ts",
"//:node_modules/tslib",
"//:tsconfig.node",
"//packages/intl-pluralrules",
"//packages/intl-pluralrules:locale-data",
"//:tsconfig.node",
],
)

Expand Down
Loading

0 comments on commit 8c40f9d

Please sign in to comment.