hyperboria/rules/nodejs/BUILD.bazel
the-superpirate 8472f27ec5 No description
GitOrigin-RevId: ddf02e70d2827c048db49b687ebbcdcc67807ca6
2021-01-04 18:12:22 +03:00

44 lines
1.0 KiB
Python

load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
exports_files([
"nuxt.server.js",
"package.json",
"webpack.dynamic.server.js",
"webpack.server.js",
"yarn.lock",
".babelrc",
])
nodejs_binary(
name = "webpack-binary",
data = [
"@npm//copy-webpack-plugin",
"@npm//html-webpack-plugin",
"@npm//mini-css-extract-plugin",
"@npm//vue-loader",
"@npm//webpack",
"@npm//webpack-cli",
],
entry_point = "@npm//:node_modules/webpack-cli/bin/cli.js",
visibility = ["//visibility:public"],
)
nodejs_binary(
name = "webpack-dev-server-binary",
data = [
"@npm//webpack-cli",
"@npm//webpack-dev-server",
],
entry_point = "@npm//:node_modules/webpack-dev-server/bin/webpack-dev-server.js",
visibility = ["//visibility:public"],
)
nodejs_binary(
name = "nuxt-binary",
data = [
"@npm//nuxt",
],
entry_point = "@npm//:node_modules/nuxt/bin/nuxt.js",
visibility = ["//visibility:public"],
)