mirror of https://github.com/pulumi/pulumi.git
66 lines
1.9 KiB
Python
66 lines
1.9 KiB
Python
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
load("@npm//:defs.bzl", "npm_link_all_packages")
|
|
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
|
|
|
|
# gazelle:prefix github.com/pulumi/pulumi
|
|
#
|
|
# gazelle:go_naming_convention import_alias
|
|
#
|
|
# gazelle:proto package
|
|
# gazelle:proto_group go_package
|
|
# gazelle:go_grpc_compilers @io_bazel_rules_go//proto:go_proto,@io_bazel_rules_go//proto:go_grpc_v2
|
|
#
|
|
# gazelle:resolve go github.com/pulumi/pulumi/sdk/v3/proto/go //proto/pulumi:pulumirpc_go_proto
|
|
#
|
|
# gazelle:exclude sdk/proto/**/*
|
|
# gazelle:exclude sdk/go/auto/testdata/**/*
|
|
# gazelle:exclude sdk/go/auto/test/**/*
|
|
# gazelle:exclude sdk/python/lib/test/**/*
|
|
# gazelle:exclude sdk/go/pulumi-language-go/testdata/
|
|
# gazelle:exclude sdk/python/env/**/*
|
|
# gazelle:exclude sdk/nodejs/bin/**/*
|
|
# gazelle:exclude sdk/nodejs/tests/automation/data/**/*
|
|
# gazelle:exclude tests/integration/backend/diy/project/**/*
|
|
#
|
|
# gazelle:exclude pkg/codegen/testing/test/testdata/**/*
|
|
#
|
|
# gazelle:exclude tests/benchmarks/**/*
|
|
# gazelle:exclude tests/integration/get_resource/**/*
|
|
# gazelle:exclude tests/integration/construct_component_configure_provider/**/*
|
|
# gazelle:exclude tests/testdata/**/*
|
|
#
|
|
gazelle(name = "gazelle")
|
|
|
|
gazelle(
|
|
name = "gazelle-update-repos",
|
|
args = [
|
|
"-from_file=go.work",
|
|
"-to_macro=bazel/repo/go.bzl%go_deps",
|
|
"-prune=True",
|
|
],
|
|
command = "update-repos",
|
|
)
|
|
|
|
compile_pip_requirements(
|
|
name = "python-requirements",
|
|
requirements_in = "requirements.txt",
|
|
requirements_txt = "requirements_lock.txt",
|
|
)
|
|
|
|
npm_link_all_packages(
|
|
name = "node_modules",
|
|
)
|
|
|
|
load("@npm//:tsconfig-to-swcconfig/package_json.bzl", tsconfig_to_swcconfig = "bin")
|
|
|
|
tsconfig_to_swcconfig.t2s(
|
|
name = "swcrc",
|
|
srcs = ["tsconfig.json"],
|
|
args = [
|
|
"--filename",
|
|
"$(location tsconfig.json)",
|
|
],
|
|
stdout = ".swcrc",
|
|
visibility = ["//:__subpackages__"],
|
|
)
|