https://pantsbuild.org/ logo
#general
Title
# general
r

rapid-mouse-79975

01/17/2021, 11:30 AM
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",
)