Skip to content

Commit

Permalink
Moves Jasmine into //tools/jasmine/....
Browse files Browse the repository at this point in the history
Refs #67.

This just better organizes the code a bit, given that there's three Starlark files here related to Jasmine.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent 1ad5e62 commit eb9af65
Show file tree
Hide file tree
Showing 35 changed files with 52 additions and 51 deletions.
2 changes: 1 addition & 1 deletion common/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")
load(":label_test.bzl", "label_test_suite")
load(":paths_test.bzl", "paths_test_suite")
Expand Down
2 changes: 1 addition & 1 deletion common/models/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

ts_project(
Expand Down
2 changes: 1 addition & 1 deletion common/testing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//:index.bzl", "web_resources", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_node_test", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_node_test", "jasmine_web_test_suite")
load("//tools:typescript.bzl", "ts_project")

ts_project(
Expand Down
2 changes: 1 addition & 1 deletion examples/components/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load(
"prerender_pages",
"web_resources_devserver",
)
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_bundling/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ load(
"web_resources",
"web_resources_devserver",
)
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

# Prerender a single HTML file.
prerender_pages_unbundled(
Expand Down
2 changes: 1 addition & 1 deletion examples/data/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "pages",
Expand Down
2 changes: 1 addition & 1 deletion examples/declarative_shadow_dom/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ load(
"prerender_pages",
"web_resources_devserver",
)
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "site",
Expand Down
2 changes: 1 addition & 1 deletion examples/javascript/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion examples/multi_page/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ load(
"web_resources",
"web_resources_devserver",
)
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "pages",
Expand Down
2 changes: 1 addition & 1 deletion examples/prerender_resources/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_resources")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")

ts_project(
name = "generator",
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load(
"web_resources",
"web_resources_devserver",
)
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion examples/site/blog/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")

prerender_pages(
name = "blog",
Expand Down
2 changes: 1 addition & 1 deletion examples/site/components/base/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "css_library", "prerender_component")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")

prerender_component(
name = "base",
Expand Down
2 changes: 1 addition & 1 deletion examples/site/components/counter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load(
"prerender_pages",
"web_resources_devserver",
)
load("//tools:jasmine.bzl", "jasmine_node_test", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_node_test", "jasmine_web_test_suite")

prerender_component(
name = "counter",
Expand Down
2 changes: 1 addition & 1 deletion examples/site/components/footer/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "css_library", "prerender_component")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")

prerender_component(
name = "footer",
Expand Down
2 changes: 1 addition & 1 deletion examples/site/components/header/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "css_library", "prerender_component")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")

prerender_component(
name = "header",
Expand Down
2 changes: 1 addition & 1 deletion examples/site/home/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "home",
Expand Down
2 changes: 1 addition & 1 deletion examples/styles/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "css_library", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion examples/tsjs/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@aspect_rules_js//js:defs.bzl", "js_library")
load("//tools:typescript.bzl", "ts_project")
load("//:index.bzl", "prerender_pages", "web_resources_devserver")
load("//tools:jasmine.bzl", "jasmine_web_test_suite")
load("//tools/jasmine:defs.bzl", "jasmine_web_test_suite")

prerender_pages(
name = "page",
Expand Down
2 changes: 1 addition & 1 deletion packages/annotation_extractor/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

js_binary(
Expand Down
2 changes: 1 addition & 1 deletion packages/css_bundler/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//tools:typescript.bzl", "ts_project")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")

bzl_library(
name = "css_bundle",
Expand Down
2 changes: 1 addition & 1 deletion packages/declarative_shadow_dom/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ load(
"//packages/rules_prerender:prerender_component_publish_files.bzl",
"prerender_component_publish_files",
)
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")
load("//tools/publish:npm_publish.bzl", "npm_publish")
load("//tools/stamping:stamp_package.bzl", "stamp_package")
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")
load(":build_vars.bzl", "RENDERER_RUNTIME_DEPS")

Expand Down
2 changes: 1 addition & 1 deletion packages/resource_injector/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

js_binary(
Expand Down
2 changes: 1 addition & 1 deletion packages/resource_packager/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

js_binary(
Expand Down
2 changes: 1 addition & 1 deletion packages/rules_prerender/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//:index.bzl", "prerender_component")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

exports_files(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ load(
)
load("//packages/rules_prerender:web_resources.bzl", "web_resources")
load("//packages/rules_prerender/css:css_library.bzl", "css_library")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

prerender_component(
Expand Down
2 changes: 1 addition & 1 deletion packages/script_entry_generator/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("//tools:jasmine.bzl", "jasmine_node_test")
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools:typescript.bzl", "ts_project")

js_binary(
Expand Down
21 changes: 0 additions & 21 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

bzl_library(
name = "jasmine",
srcs = ["jasmine.bzl"],
visibility = ["//visibility:public"],
deps = [
":jasmine_node_test",
":jasmine_web_test_suite",
],
)

bzl_library(
name = "jasmine_node_test",
srcs = ["jasmine_web_test_suite.bzl"],
)

bzl_library(
name = "jasmine_web_test_suite",
srcs = ["jasmine_web_test_suite.bzl"],
deps = [":jasmine_node_test"],
)
22 changes: 22 additions & 0 deletions tools/jasmine/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

bzl_library(
name = "defs",
srcs = ["defs.bzl"],
visibility = ["//visibility:public"],
deps = [
":jasmine_node_test",
":jasmine_web_test_suite",
],
)

bzl_library(
name = "jasmine_node_test",
srcs = ["jasmine_web_test_suite.bzl"],
)

bzl_library(
name = "jasmine_web_test_suite",
srcs = ["jasmine_web_test_suite.bzl"],
deps = [":jasmine_node_test"],
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit eb9af65

Please sign in to comment.