rapid-mouse-79975
01/17/2021, 11:30 AMpython37_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
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",
)