Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

How to rename ABC project [SOLVED] #80

@webdevelopland

Description

@webdevelopland

I guess everything here is obvious for bazel developers.
But I'm not bazel developer and I faced the issue today. So that post might be helpful for developers like me.

  1. A dash is forbidden symbol for bazel project name.
    So you can't name your project 'my-super-app'. It has to be 'my_super_app' or something without dashes.

  2. bazel project name is situated in WORKSPACE

workspace(name = "angular_bazel_example")

Also, some BUILD files can contain the name. Especially /src/BUILD.bazel

ts_devserver(
    name = "devserver",
    entry_module = "angular_bazel_example/src/main",
    scripts = ["//:angular_bundles"],
    serving_path = "/bundle.min.js",
    static_files = [
        ":zone.js",
        "index.html",
    ],
    deps = ["//src"],
)
  1. After renaming you will need to relaunch dev server.

  2. Renaming BUILD files doesn't cause extra changes. But after renaming WORKSPACE, next launch will be loading much longer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions