From 4806cd43ff2ef8ca082d7b51e6c9da493e55f946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Zl=C3=A1mal?= Date: Sun, 25 Jul 2021 20:43:49 -0500 Subject: [PATCH] Universe: remove Bazel files The reasoning is fairly simple: nobody is actively working on integrating with Bazel and there are no plans/capacity to do so. It might be because Bazel is quite complex, and it's hard to set up it in a way we need it to be. Moreover, it's blocking other efforts like this one for example: https://github.com/adeira/universe/pull/2154 (Yarn 2). Note: this doesn't mean that there is no need for something like Bazel. However, it doesn't have to be Bazel (preferably something simpler that does the job well enough). --- .bazelignore | 1 - .bazelrc | 5 -- .bazelversion | 1 - .flowconfig | 6 +- .flowconfig.template.base | 6 -- .../continuous-integration-bazel.yml | 43 ----------- .gitignore | 2 - .jest-bazel.config.js | 18 ----- BUILD.bazel | 35 --------- README.md | 2 +- WORKSPACE.bazel | 75 ------------------- bazel/macros/build_yarn_workspace.bzl | 37 --------- bazel/macros/test_yarn_workspace.bzl | 58 -------------- .../.npmignore | 2 - src/babel-preset-adeira/.npmignore | 2 - src/css-colors/.npmignore | 2 - src/eslint-config-adeira/.npmignore | 2 - src/eslint-fixtures-tester/.npmignore | 2 - src/eslint-plugin-adeira/.npmignore | 2 - src/eslint-plugin-adeira/BUILD.bazel | 16 ---- src/eslint-plugin-sx/.npmignore | 2 - src/fetch/.npmignore | 2 - src/fetch/BUILD.bazel | 15 ---- src/fixtures-tester/.npmignore | 3 +- src/fixtures-tester/BUILD.bazel | 11 --- src/flow-config-parser/.npmignore | 2 - src/graphql-bc-checker/.npmignore | 2 - src/graphql-bc-checker/BUILD.bazel | 17 ----- src/graphql-global-id/.npmignore | 2 - src/graphql-global-id/BUILD.bazel | 15 ---- src/graphql-relay-fauna/.npmignore | 2 - src/graphql-relay-fauna/BUILD.bazel | 17 ----- src/graphql-relay/.npmignore | 2 - src/graphql-relay/BUILD.bazel | 14 ---- src/graphql-resolve-wrapper/.npmignore | 2 - src/icons/.npmignore | 2 - src/js/.npmignore | 2 - src/js/BUILD.bazel | 11 --- src/monorepo-npm-publisher/.npmignore | 3 +- src/monorepo-npm-publisher/BUILD.bazel | 16 ---- src/monorepo-scanner/BUILD.bazel | 11 --- src/monorepo-shipit/BUILD.bazel | 17 ----- src/monorepo-utils/.npmignore | 2 - src/monorepo-utils/BUILD.bazel | 21 ------ src/murmur-hash/.npmignore | 2 - src/murmur-hash/BUILD.bazel | 11 --- src/relay/.npmignore | 2 - src/signed-source/.npmignore | 2 - src/signed-source/BUILD.bazel | 11 --- src/sx-design/.npmignore | 2 - src/sx-jest-snapshot-serializer/.npmignore | 2 - src/sx-tailwind/BUILD.bazel | 15 ---- src/sx/.npmignore | 2 - src/sx/BUILD.bazel | 22 ------ 54 files changed, 4 insertions(+), 577 deletions(-) delete mode 100644 .bazelignore delete mode 100644 .bazelrc delete mode 100644 .bazelversion delete mode 100644 .github/workflows/continuous-integration-bazel.yml delete mode 100644 .jest-bazel.config.js delete mode 100644 BUILD.bazel delete mode 100644 WORKSPACE.bazel delete mode 100644 bazel/macros/build_yarn_workspace.bzl delete mode 100644 bazel/macros/test_yarn_workspace.bzl delete mode 100644 src/eslint-plugin-adeira/BUILD.bazel delete mode 100644 src/fetch/BUILD.bazel delete mode 100644 src/fixtures-tester/BUILD.bazel delete mode 100644 src/graphql-bc-checker/BUILD.bazel delete mode 100644 src/graphql-global-id/BUILD.bazel delete mode 100644 src/graphql-relay-fauna/BUILD.bazel delete mode 100644 src/graphql-relay/BUILD.bazel delete mode 100644 src/js/BUILD.bazel delete mode 100644 src/monorepo-npm-publisher/BUILD.bazel delete mode 100644 src/monorepo-scanner/BUILD.bazel delete mode 100644 src/monorepo-shipit/BUILD.bazel delete mode 100644 src/monorepo-utils/BUILD.bazel delete mode 100644 src/murmur-hash/BUILD.bazel delete mode 100644 src/signed-source/BUILD.bazel delete mode 100644 src/sx-tailwind/BUILD.bazel delete mode 100644 src/sx/BUILD.bazel diff --git a/.bazelignore b/.bazelignore deleted file mode 100644 index 3c3629e647..0000000000 --- a/.bazelignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/.bazelrc b/.bazelrc deleted file mode 100644 index 1353396ea5..0000000000 --- a/.bazelrc +++ /dev/null @@ -1,5 +0,0 @@ -build --build_tag_filters=-manual - -test --test_output=errors -test --test_tag_filters=-manual -test --test_verbose_timeout_warnings diff --git a/.bazelversion b/.bazelversion deleted file mode 100644 index fcdb2e109f..0000000000 --- a/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -4.0.0 diff --git a/.flowconfig b/.flowconfig index 55a51b7593..9de95601f9 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,4 +1,4 @@ -# @generated SignedSource<> +# @generated SignedSource<<2939b4229c2154e42c786ee5e0eb9e53>> # # To regenerate run: # yarn monorepo-babel-node scripts/generateFlow.js @@ -10,10 +10,6 @@ /\.git/.* .+/.+\.gzip\.js .+/\.next/.+ -.+/bazel-bin/.+ -.+/bazel-out/.+ -.+/bazel-testlogs/.+ -.+/bazel-universe/.+ [include] diff --git a/.flowconfig.template.base b/.flowconfig.template.base index 64af6b9778..97a81e99e6 100644 --- a/.flowconfig.template.base +++ b/.flowconfig.template.base @@ -4,12 +4,6 @@ .+/.+\.gzip\.js .+/\.next/.+ -; Do not use for Bazel, see: https://github.com/facebook/flow/issues/2250 -.+/bazel-bin/.+ -.+/bazel-out/.+ -.+/bazel-testlogs/.+ -.+/bazel-universe/.+ - ; https://flow.org/en/docs/config/untyped/ [untyped] diff --git a/.github/workflows/continuous-integration-bazel.yml b/.github/workflows/continuous-integration-bazel.yml deleted file mode 100644 index 8fad243982..0000000000 --- a/.github/workflows/continuous-integration-bazel.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Continuous Integration (Bazel) - -on: [push] - -jobs: - run-bazel: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2.3.4 - with: - # Number of commits to fetch. 0 indicates all history for all branches and tags. - fetch-depth: 0 - - # TODO: use CI cache - - - name: Install bazelisk - run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-linux-amd64" - mkdir -p "${GITHUB_WORKSPACE}/bin/" - mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" - chmod +x "${GITHUB_WORKSPACE}/bin/bazel" - - - name: Bazel version - run: | - "${GITHUB_WORKSPACE}/bin/bazel" version - - # TODO: run Flow and other checks as well - # https://bazelbuild.github.io/rules_nodejs/dependencies.html - - name: Install NPM dependencies - run: | - "${GITHUB_WORKSPACE}/bin/bazel" run @nodejs//:yarn -- --frozen-lockfile - - # TODO: slow without proper CI cache - # - name: Run Buldifier lint - # run: | - # "${GITHUB_WORKSPACE}/bin/bazel" run --build_tag_filters=manual //:buildifier.lint - - - name: Build - run: | - "${GITHUB_WORKSPACE}/bin/bazel" build //... - - # TODO: run Bazel test diff --git a/.gitignore b/.gitignore index 2440f1f43d..77afe17c70 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,6 @@ .vscode/ node_modules/ -/bazel-* - .DS_Store .env .flow.saved_state diff --git a/.jest-bazel.config.js b/.jest-bazel.config.js deleted file mode 100644 index de8e4f0df7..0000000000 --- a/.jest-bazel.config.js +++ /dev/null @@ -1,18 +0,0 @@ -// @flow strict - -module.exports = { - bail: 100, - errorOnDeprecated: true, - moduleFileExtensions: ['js', 'json'], - reporters: ['default'], - // rootDir: __dirname, - verbose: false, - testMatch: ['**/__tests__/**/?(*.)+(spec|test).js'], - globals: { - __DEV__: true, - }, - transform: { - '^.+\\.js$': 'babel-jest', - }, - timers: 'fake', -}; diff --git a/BUILD.bazel b/BUILD.bazel deleted file mode 100644 index 76b371ac46..0000000000 --- a/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") - -exports_files( - [ - ".jest-bazel.config.js", - "babel.config.js", - "package.json", - ], - visibility = ["//visibility:public"], -) - -_LINT_WARNINGS = [ - "+out-of-order-load", - "+unsorted-dict-items", -] - -# bazel run --build_tag_filters=manual //:buildifier.lint -buildifier( - name = "buildifier.lint", - lint_mode = "warn", - lint_warnings = _LINT_WARNINGS, - mode = "diff", - tags = ["manual"], - verbose = True, -) - -# bazel run --build_tag_filters=manual //:buildifier.fix -buildifier( - name = "buildifier.fix", - lint_mode = "fix", - lint_warnings = _LINT_WARNINGS, - mode = "fix", - tags = ["manual"], - verbose = True, -) diff --git a/README.md b/README.md index 17816607c4..0015123b6f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ `adeira/universe` monorepo is an open-source collection of projects created in our free time. We are friends helping each other to build libraries and applications and effectively share knowledge and work among all of us. -![Continuous Integration (JavaScript)]() ![Continuous Integration (Rust)]() ![Continuous Integration (Bazel)]() +![Continuous Integration (JavaScript)]() ![Continuous Integration (Rust)]() ![Shipit](https://github.com/adeira/universe/workflows/Shipit/badge.svg) ![NPM Publisher](https://github.com/adeira/universe/workflows/NPM%20Publisher/badge.svg) ![Dockerfile Builder](https://github.com/adeira/universe/workflows/Dockerfile%20Builder/badge.svg) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel deleted file mode 100644 index b0a2368082..0000000000 --- a/WORKSPACE.bazel +++ /dev/null @@ -1,75 +0,0 @@ -workspace( - name = "universe", - managed_directories = { - "@npm": ["node_modules"], - }, -) - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "4952ef879704ab4ad6729a29007e7094aef213ea79e9f2e94cbe1c9a753e63ef", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.2.0/rules_nodejs-2.2.0.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") - -node_repositories( - node_repositories = { - # https://nodejs.org/dist/ - "16.2.0-darwin_amd64": ("node-v16.2.0-darwin-x64.tar.gz", "node-v16.2.0-darwin-x64", "3fc49b69de9491b45491f880217f8220d489b28ba3c1fff53e849dcf3ad77343"), - "16.2.0-linux_amd64": ("node-v16.2.0-linux-x64.tar.gz", "node-v16.2.0-linux-x64", "c3fd89a768e40a2fd8008919100bd283e6e9aec742eddeb1d494eb2a626466dc"), - }, - node_urls = ["https://nodejs.org/dist/v{version}/{filename}"], - node_version = "16.2.0", - package_json = ["//:package.json"], - yarn_repositories = { - "1.22.10": ("yarn-v1.22.10.tar.gz", "yarn-v1.22.10", "7e433d4a77e2c79e6a7ae4866782608a8e8bcad3ec6783580577c59538381a6e"), - }, - yarn_urls = ["https://github.com/yarnpkg/yarn/releases/download/v{version}/{filename}"], - yarn_version = "1.22.10", -) - -yarn_install( - name = "npm", - package_json = "//:package.json", - yarn_lock = "//:yarn.lock", -) - -# Bazel Buildifier is written in Go and hence needs rules_go to be built. -# See https://github.com/bazelbuild/rules_go for the up to date setup instructions. -http_archive( - name = "io_bazel_rules_go", - sha256 = "b725e6497741d7fc2d55fcc29a276627d10e43fa5d0bb692692890ae30d98d00", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.3/rules_go-v0.24.3.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/v0.24.3/rules_go-v0.24.3.tar.gz", - ], -) - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains() - -http_archive( - name = "com_google_protobuf", - strip_prefix = "protobuf-master", - urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"], -) - -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -http_archive( - name = "com_github_bazelbuild_buildtools", - strip_prefix = "buildtools-master", - url = "https://github.com/bazelbuild/buildtools/archive/master.zip", -) - -load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies") - -buildifier_dependencies() diff --git a/bazel/macros/build_yarn_workspace.bzl b/bazel/macros/build_yarn_workspace.bzl deleted file mode 100644 index d7ec8c5e84..0000000000 --- a/bazel/macros/build_yarn_workspace.bzl +++ /dev/null @@ -1,37 +0,0 @@ -""" -Builds Yarn Workspaces via Babel and makes it ready for other repositories. -""" - -# TODO: https://github.com/bazelbuild/rules_nodejs/commit/1e357fdad4527477e34065ab9c880753522a4c41 -load("@build_bazel_rules_nodejs//internal/js_library:js_library.bzl", "js_library") -load("@npm//@babel/cli:index.bzl", "babel") - -# TODO: verify validity of `@generated` headers while building the project - -def build_yarn_workspace(name, package_name, deps = []): - babel( - name = "%s.build" % name, - outs = ["dist"], - args = [ - "$(execpath src)", - "--out-dir", - "$(@D)/dist", - "--ignore", # TODO: do not ignore tests but run the compiled versions (?) - "src/**/*.test.js", - ], - data = [ - ":package.json", - ":src", - "//:babel.config.js", - "//:package.json", - "@npm//@adeira/babel-preset-adeira", - ], - ) - - js_library( - name = name, - package_name = package_name, - srcs = ["package.json"], # TODO: requires `"main": "dist/index",` which breaks our current setup - visibility = ["//visibility:public"], # TODO: should this be the default for everyone? - deps = [":%s.build" % name] + deps, - ) diff --git a/bazel/macros/test_yarn_workspace.bzl b/bazel/macros/test_yarn_workspace.bzl deleted file mode 100644 index 048a63c026..0000000000 --- a/bazel/macros/test_yarn_workspace.bzl +++ /dev/null @@ -1,58 +0,0 @@ -""" -Tests Yarn Workspaces via Jest. -""" - -load("@npm//jest:index.bzl", "jest", _jest_test = "jest_test") - -# TODO: should we build the source and test the built files instead (?) -def test_yarn_workspace(name, deps = [], **kwargs): - """ - A macro around the autogenerated jest_test rule - - Args: - name: name of the target - deps: dependencies necessary for the target to build/test - **kwargs: other Jest arguments - """ - - jest_config = "//:.jest-bazel.config.js" - srcs = native.glob([ - "**/*.js", - "**/__tests__/**/*.*", - "**/__snapshots__/*.snap", - ]) - - templated_args = [ - "--no-cache", - "--no-watchman", - "--ci", - "--colors", - ] - - templated_args.extend(["--config", "$(rootpath %s)" % jest_config]) - - for src in srcs: - templated_args.extend(["--runTestsByPath", "$(rootpath %s)" % src]) - - data = [ - jest_config, - "//:babel.config.js", - "@npm//@adeira/babel-preset-adeira", - "@npm//istanbul-lib-report", - ] + srcs + deps - - _jest_test( - size = "small", - name = name, - data = data, - templated_args = templated_args, - **kwargs - ) - - # This rule is used specifically to update snapshots via `bazel run` - jest( - name = "%s.update" % name, - data = data, - templated_args = templated_args + ["-u"], - **kwargs - ) diff --git a/src/babel-plugin-transform-sx-tailwind/.npmignore b/src/babel-plugin-transform-sx-tailwind/.npmignore index 5599bd4875..c912533dd7 100644 --- a/src/babel-plugin-transform-sx-tailwind/.npmignore +++ b/src/babel-plugin-transform-sx-tailwind/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD -BUILD.bazel diff --git a/src/babel-preset-adeira/.npmignore b/src/babel-preset-adeira/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/babel-preset-adeira/.npmignore +++ b/src/babel-preset-adeira/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/css-colors/.npmignore b/src/css-colors/.npmignore index 89ef72845f..ce20879357 100644 --- a/src/css-colors/.npmignore +++ b/src/css-colors/.npmignore @@ -1,5 +1,3 @@ __tests__ __flowtests__ __mocks__ -BUILD.bazel -BUILD diff --git a/src/eslint-config-adeira/.npmignore b/src/eslint-config-adeira/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/eslint-config-adeira/.npmignore +++ b/src/eslint-config-adeira/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/eslint-fixtures-tester/.npmignore b/src/eslint-fixtures-tester/.npmignore index 89ef72845f..ce20879357 100644 --- a/src/eslint-fixtures-tester/.npmignore +++ b/src/eslint-fixtures-tester/.npmignore @@ -1,5 +1,3 @@ __tests__ __flowtests__ __mocks__ -BUILD.bazel -BUILD diff --git a/src/eslint-plugin-adeira/.npmignore b/src/eslint-plugin-adeira/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/eslint-plugin-adeira/.npmignore +++ b/src/eslint-plugin-adeira/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/eslint-plugin-adeira/BUILD.bazel b/src/eslint-plugin-adeira/BUILD.bazel deleted file mode 100644 index 7179c1c8b5..0000000000 --- a/src/eslint-plugin-adeira/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "eslint_plugin_adeira", - package_name = "@adeira/eslint-plugin-adeira", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//@babel/eslint-parser", - "@npm//eslint", - "@npm//fast-levenshtein", - ], -) diff --git a/src/eslint-plugin-sx/.npmignore b/src/eslint-plugin-sx/.npmignore index 728e85c008..143b59ce05 100644 --- a/src/eslint-plugin-sx/.npmignore +++ b/src/eslint-plugin-sx/.npmignore @@ -1,4 +1,2 @@ __flowtests__ __tests__ -BUILD.bazel -BUILD diff --git a/src/fetch/.npmignore b/src/fetch/.npmignore index 89ef72845f..ce20879357 100644 --- a/src/fetch/.npmignore +++ b/src/fetch/.npmignore @@ -1,5 +1,3 @@ __tests__ __flowtests__ __mocks__ -BUILD.bazel -BUILD diff --git a/src/fetch/BUILD.bazel b/src/fetch/BUILD.bazel deleted file mode 100644 index 0acc9ef739..0000000000 --- a/src/fetch/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "fetch", - package_name = "@adeira/fetch", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//cross-fetch", - "@universe//src/js", - ], -) diff --git a/src/fixtures-tester/.npmignore b/src/fixtures-tester/.npmignore index 5674a2732a..c912533dd7 100644 --- a/src/fixtures-tester/.npmignore +++ b/src/fixtures-tester/.npmignore @@ -1,2 +1 @@ -BUILD.bazel -BUILD +__tests__ diff --git a/src/fixtures-tester/BUILD.bazel b/src/fixtures-tester/BUILD.bazel deleted file mode 100644 index 471e638656..0000000000 --- a/src/fixtures-tester/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "fixtures-tester", - package_name = "@adeira/fixtures-tester", -) - -test_yarn_workspace( - name = "test", -) diff --git a/src/flow-config-parser/.npmignore b/src/flow-config-parser/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/flow-config-parser/.npmignore +++ b/src/flow-config-parser/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/graphql-bc-checker/.npmignore b/src/graphql-bc-checker/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/graphql-bc-checker/.npmignore +++ b/src/graphql-bc-checker/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/graphql-bc-checker/BUILD.bazel b/src/graphql-bc-checker/BUILD.bazel deleted file mode 100644 index f11cbe6046..0000000000 --- a/src/graphql-bc-checker/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "graphql_bc_checker", - package_name = "@adeira/graphql-bc-checker", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//graphql", - "@universe//src/fixtures-tester", - "@universe//src/js", - "@universe//src/signed-source", - ], -) diff --git a/src/graphql-global-id/.npmignore b/src/graphql-global-id/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/graphql-global-id/.npmignore +++ b/src/graphql-global-id/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/graphql-global-id/BUILD.bazel b/src/graphql-global-id/BUILD.bazel deleted file mode 100644 index ef9ca4be99..0000000000 --- a/src/graphql-global-id/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "graphql-global-id", - package_name = "@adeira/graphql-global-id", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//graphql", - "@universe//src/js", - ], -) diff --git a/src/graphql-relay-fauna/.npmignore b/src/graphql-relay-fauna/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/graphql-relay-fauna/.npmignore +++ b/src/graphql-relay-fauna/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/graphql-relay-fauna/BUILD.bazel b/src/graphql-relay-fauna/BUILD.bazel deleted file mode 100644 index a5634b6ab3..0000000000 --- a/src/graphql-relay-fauna/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "graphql-relay-fauna", - package_name = "@adeira/graphql-relay-fauna", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//faunadb", - "@npm//graphql", - "@universe//src/graphql-global-id", - "@universe//src/js", - ], -) diff --git a/src/graphql-relay/.npmignore b/src/graphql-relay/.npmignore index 1dd66d75cf..7b15489d7f 100644 --- a/src/graphql-relay/.npmignore +++ b/src/graphql-relay/.npmignore @@ -1,4 +1,2 @@ __tests__ test-helpers -BUILD.bazel -BUILD diff --git a/src/graphql-relay/BUILD.bazel b/src/graphql-relay/BUILD.bazel deleted file mode 100644 index 3093bf2e24..0000000000 --- a/src/graphql-relay/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "graphql-relay", - package_name = "@adeira/graphql-relay", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//graphql", - ], -) diff --git a/src/graphql-resolve-wrapper/.npmignore b/src/graphql-resolve-wrapper/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/graphql-resolve-wrapper/.npmignore +++ b/src/graphql-resolve-wrapper/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/icons/.npmignore b/src/icons/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/icons/.npmignore +++ b/src/icons/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/js/.npmignore b/src/js/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/js/.npmignore +++ b/src/js/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/js/BUILD.bazel b/src/js/BUILD.bazel deleted file mode 100644 index 3e2c4c16f1..0000000000 --- a/src/js/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "js", - package_name = "@adeira/js", -) - -test_yarn_workspace( - name = "test", -) diff --git a/src/monorepo-npm-publisher/.npmignore b/src/monorepo-npm-publisher/.npmignore index 5674a2732a..c912533dd7 100644 --- a/src/monorepo-npm-publisher/.npmignore +++ b/src/monorepo-npm-publisher/.npmignore @@ -1,2 +1 @@ -BUILD.bazel -BUILD +__tests__ diff --git a/src/monorepo-npm-publisher/BUILD.bazel b/src/monorepo-npm-publisher/BUILD.bazel deleted file mode 100644 index 76b915f36f..0000000000 --- a/src/monorepo-npm-publisher/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "monorepo-npm-publisher", - package_name = "@adeira/monorepo-npm-publisher", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//snapshot-diff", - "@universe//src/fixtures-tester", - "@universe//src/js", - ], -) diff --git a/src/monorepo-scanner/BUILD.bazel b/src/monorepo-scanner/BUILD.bazel deleted file mode 100644 index 7029381ff8..0000000000 --- a/src/monorepo-scanner/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "monorepo-scanner", - package_name = "@adeira/monorepo-scanner", -) - -test_yarn_workspace( - name = "test", -) diff --git a/src/monorepo-shipit/BUILD.bazel b/src/monorepo-shipit/BUILD.bazel deleted file mode 100644 index bc7648bbd5..0000000000 --- a/src/monorepo-shipit/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "monorepo-shipit", - package_name = "@adeira/monorepo-shipit", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//fast-levenshtein", - "@universe//src/fixtures-tester", - "@universe//src/js", - "@universe//src/monorepo-utils", - ], -) diff --git a/src/monorepo-utils/.npmignore b/src/monorepo-utils/.npmignore index 53f1e7bee3..70000d3582 100644 --- a/src/monorepo-utils/.npmignore +++ b/src/monorepo-utils/.npmignore @@ -1,4 +1,2 @@ __tests__ __flowtests__ -BUILD.bazel -BUILD diff --git a/src/monorepo-utils/BUILD.bazel b/src/monorepo-utils/BUILD.bazel deleted file mode 100644 index cabfdbb9ee..0000000000 --- a/src/monorepo-utils/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "monorepo-utils", - package_name = "@adeira/monorepo-utils", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@universe//src/js", - ], -) - -# TODO: build `bin` first -# nodejs_binary( -# name = "monorepo_babel_node", -# data = [":monorepo_utils"], -# entry_point = ":bin/monorepo-babel-node.js", -# ) diff --git a/src/murmur-hash/.npmignore b/src/murmur-hash/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/murmur-hash/.npmignore +++ b/src/murmur-hash/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/murmur-hash/BUILD.bazel b/src/murmur-hash/BUILD.bazel deleted file mode 100644 index 85a9eee1a0..0000000000 --- a/src/murmur-hash/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "murmur-hash", - package_name = "@adeira/murmur-hash", -) - -test_yarn_workspace( - name = "test", -) diff --git a/src/relay/.npmignore b/src/relay/.npmignore index f4875fdfce..fcce350237 100644 --- a/src/relay/.npmignore +++ b/src/relay/.npmignore @@ -2,5 +2,3 @@ __flowtests__ __github__ __tests__ .eslintrc.js -BUILD.bazel -BUILD diff --git a/src/signed-source/.npmignore b/src/signed-source/.npmignore index 1d2c8b25f0..c912533dd7 100644 --- a/src/signed-source/.npmignore +++ b/src/signed-source/.npmignore @@ -1,3 +1 @@ __tests__ -BUILD.bazel -BUILD diff --git a/src/signed-source/BUILD.bazel b/src/signed-source/BUILD.bazel deleted file mode 100644 index 2319952a2d..0000000000 --- a/src/signed-source/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "signed-source", - package_name = "@adeira/signed-source", -) - -test_yarn_workspace( - name = "test", -) diff --git a/src/sx-design/.npmignore b/src/sx-design/.npmignore index 728e85c008..143b59ce05 100644 --- a/src/sx-design/.npmignore +++ b/src/sx-design/.npmignore @@ -1,4 +1,2 @@ __flowtests__ __tests__ -BUILD.bazel -BUILD diff --git a/src/sx-jest-snapshot-serializer/.npmignore b/src/sx-jest-snapshot-serializer/.npmignore index 728e85c008..143b59ce05 100644 --- a/src/sx-jest-snapshot-serializer/.npmignore +++ b/src/sx-jest-snapshot-serializer/.npmignore @@ -1,4 +1,2 @@ __flowtests__ __tests__ -BUILD.bazel -BUILD diff --git a/src/sx-tailwind/BUILD.bazel b/src/sx-tailwind/BUILD.bazel deleted file mode 100644 index a98c62c702..0000000000 --- a/src/sx-tailwind/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "sx-tailwind", - package_name = "@adeira/sx-tailwind", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//change-case", - "@npm//css-tree", - ], -) diff --git a/src/sx/.npmignore b/src/sx/.npmignore index 728e85c008..143b59ce05 100644 --- a/src/sx/.npmignore +++ b/src/sx/.npmignore @@ -1,4 +1,2 @@ __flowtests__ __tests__ -BUILD.bazel -BUILD diff --git a/src/sx/BUILD.bazel b/src/sx/BUILD.bazel deleted file mode 100644 index 4696019b39..0000000000 --- a/src/sx/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("//:bazel/macros/build_yarn_workspace.bzl", "build_yarn_workspace") -load("//:bazel/macros/test_yarn_workspace.bzl", "test_yarn_workspace") - -build_yarn_workspace( - name = "sx", - package_name = "@adeira/sx", -) - -test_yarn_workspace( - name = "test", - deps = [ - "@npm//@testing-library/react", - "@npm//change-case", - "@npm//css-tree", - "@npm//fast-levenshtein", - "@npm//prettier", - "@npm//react-test-renderer", - "@universe//src/fixtures-tester", - "@universe//src/js", - "@universe//src/murmur-hash", - ], -)