Skip to content
This repository was archived by the owner on Jun 5, 2021. It is now read-only.
This repository was archived by the owner on Jun 5, 2021. It is now read-only.

bazel-javascript does not work with other bazel rule #22

@musmanalibaloch

Description

@musmanalibaloch

bazel-javascript rules are not working with other rules, this probably may be because of the bazel rules that you are using has old release(old tag) and the other bazel rules uses the new release.Here is my workspace file

**workspace(name = "myWorkspace")

local_repository(
name = "build_bazel_rules_typescript",
path = "node_modules/@bazel/typescript",
)

git_repository(
name = "bazel_skylib",
remote = "https://github.com/bazelbuild/bazel-skylib",
tag = "0.5.0"
)

git_repository(
name = "bazel_javascript",
remote = "https://github.com/zenclabs/bazel-javascript.git",
tag = "0.0.24",
)

git_repository(
name = "build_bazel_rules_nodejs",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
tag = "0.12.2"
)

git_repository(
name = "io_bazel_rules_docker",
remote = "https://github.com/bazelbuild/rules_docker",
tag = "v0.5.1"
)

Load js rules

load("@build_bazel_rules_nodejs//:package.bzl", "rules_nodejs_dependencies")
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "npm_install")

rules_nodejs_dependencies()

Install your declared Node.js dependencies

npm_install(
name = "npm_deps",
package_json = "//:package.json",
)

Download base images, etc.

load("@io_bazel_rules_docker//nodejs:image.bzl", _nodejs_image_repos = "repositories")

_nodejs_image_repos()

Fetch our Bazel dependencies that aren't distributed on npm

load("@build_bazel_rules_typescript//:package.bzl", "rules_typescript_dependencies")
rules_typescript_dependencies()

Setup TypeScript toolchain

load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace")
ts_setup_workspace()

Point to the package.json file so Bazel can run the package manager for you.

load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
node_repositories(package_json = ["//:package.json"])

Setup Go toolchain

load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

Setup web testing, choose browsers we can test on

load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories")

web_test_repositories()
browser_repositories(
chromium = True,
)

Pull image from docker

load(
"@io_bazel_rules_docker//docker:docker.bzl",
"docker_repositories",
"docker_build",
"docker_pull"
)

docker_repositories()

docker_pull(
name = "alpine",
registry = "gcr.io",
repository = "google-containers/alpine-with-bash",
tag = "1.0",
)**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions