```python37_binary( name = "testing_foo", ...
# general
r
Copy code
python37_binary(
    name = "testing_foo",
    source = "hello_world.py",
    dependencies = [
        ":testing_lib",
    ],
)

python3_library(
    name = "testing_lib",
    sources = [
        "!hello_world.py",
    ],
    dependencies = [
        ":resources",
        "src/frontend"
    ],
)


resources(
    name = "resources",
    sources = [
        "resources/**/*.yml",
        "web/templates/**/*",
    ]
)
This is the build file for the python app. This is the BUILD.py file for react app
Copy code
node_module(
  name = "frontend",
  sources = [
    "package.json",
    "yarn.lock",
    ".npmrc",
    ".prettierrc",
    ".eslintrc.json",
    "tsconfig.json",
    "public/**/*",
    "src/**/*",
    "scripts/**/*",
    "config/**/*"
  ],
  build_script = "build",
  output_dir = "build",
  package_manager = "yarn",
)