8000 feat: add contrib/nextjs rules for building and running nextjs applications by jbedard · Pull Request #2150 · aspect-build/rules_js · GitHub
[go: up one dir, main page]

Skip to content

feat: add contrib/nextjs rules for building and running nextjs applications #2150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ examples/linked_empty_node_modules/package.json=-1039372825
examples/linked_lib/package.json=1590632845
examples/linked_pkg/package.json=-726181961
examples/macro/package.json=857146175
examples/nextjs/package.json=-16321579
examples/npm_deps/package.json=-929156430
examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch=-442666336
examples/npm_package/libs/lib_a/package.json=-1377103079
Expand All @@ -31,5 +32,5 @@ npm/private/test/vendored/is-odd/package.json=1041695223
npm/private/test/vendored/lodash-4.17.21.tgz=-1206623349
npm/private/test/vendored/semver-max/package.json=578664053
package.json=1510979981
pnpm-lock.yaml=-349512393
pnpm-lock.yaml=-553986311
pnpm-workspace.yaml=854106668
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ examples/linked_empty_node_modules/node_modules
examples/linked_lib/node_modules
examples/linked_pkg/node_modules
examples/macro/node_modules/
examples/nextjs/node_modules/
examples/npm_deps/node_modules/
examples/npm_package/libs/lib_a/node_modules/
examples/npm_package/packages/pkg_a/node_modules/
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
**/pnpm-lock.yaml
docs/*_*.md
docs/nextjs.md
e2e/**/*-docs.md
examples/**/*-docs.md
js/private/coverage/coverage.js
Expand Down
23 changes: 23 additions & 0 deletions contrib/nextjs/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

exports_files(["next.bazel.mjs"])

exports_files(
glob(["*.bzl"]),
visibility = ["//docs:__pkg__"],
)

bzl_library(
name = "defs",
srcs = ["defs.bzl"],
visibility = [
"//contrib/nextjs:__subpackages__",
"//docs:__subpackages__",
],
deps = [
"//js:defs",
"@aspect_bazel_lib//lib:copy_file",
"@aspect_bazel_lib//lib:copy_to_directory",
"@aspect_bazel_lib//lib:directory_path",
],
)
3 changes: 3 additions & 0 deletions contrib/nextjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# NextJs Bazel Utils

rules_js/contrib/nextjs is a set of rules for building and serving Next.js applications with Bazel.
Loading
0