rules_nodejs
hammer
Our great sponsors
rules_nodejs | hammer | |
---|---|---|
8 | 9 | |
718 | 232 | |
0.4% | - | |
8.1 | 3.1 | |
9 days ago | 7 months ago | |
Starlark | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rules_nodejs
- Bazel jasmine_test issue
-
Vercel announces Turbopack, the successor to Webpack
Bazel is just the infrastructure to run webpack. You'd need to do some work to make webpack's state be cacheable (I dunno what options and such it has for this, maybe it's already there as an option). But if you're looking at Bazel for JS work you probably just want to use the existing and maintained rules for it: https://github.com/bazelbuild/rules_nodejs It's been a while since I last looked at it but I don't think it has any caching for webpack.
-
Turborepo 1.2: High-performance build system for monorepos
> Is Bazel designed in a way that make it impossible to do JS monorepos well?
Not impossible, but you really need to go all in with it and follow its conventions and practices. See this for the main docs: https://github.com/bazelbuild/rules_nodejs
One thing in particular that doesn't work well in the bazel world is doing your own stuff outside its BUILD.bazel files. If you're used to just npm install and jam some code in your package.json scripts... that doesn't usually work in the bazel world. If you have a lot of logic or tools in your build you'll likely need to go all in and make bazel starlark rules or macros that recreate that logic. Nothing is impossible, but expect to spend time getting up to speed and getting things working the bazel way.
-
Advice on build scripts and tooling
I am using Bazel with rules_nodejs and Webpack. There's an example here.
-
Help me figure out writing a webapp in Go and JavaScript, with Bazel
It is probably possible to build Angular with ts_project(), however you'd need to manually manage the compiler (Angular has its own) and tsconfig (Angular needs special options). ts_library() does a lot of this for you, so I think it would probably be easier to use that than to force yourself onto ts_project(). The canonical Angular example uses ts_library() FWIW: https://github.com/bazelbuild/rules_nodejs/tree/master/examples/angular
-
Developing in a Monorepo While Still Using Webpack
https://github.com/bazelbuild/rules_nodejs
-
On Bazel Support
Nx is widely used in the Angular community. The Angular team at Google had plans to add Bazel support to the Angular CLI for many years, but the plans didn't materialize. The key folks (e.g., Alex Eagle) working on the effort left Google. Google employees no longer maintain rules_nodejs.
hammer
-
How to setup a monorepo where building is not necessary for individual packages, just the main one?
NX repositories build slower, drop 1000's of dependencies in your project and has configurations so verbose you need vscode plugins to drive it (also I didn't like that I had to drop in project scaffolding templates to provision new library or application types). I disliked using it so much I went ahead and built this thing https://github.com/sinclairzx81/hammer.
-
What is your workflow when developing with typescript?
My development workflow is principally based on https://github.com/sinclairzx81/hammer which is esbuild tooling I wrote myself. I think these days, if you're using TS and want the rapid development workflow, anything that is leveraging esbuild or swc under the hood will be a good thing to pick. So Vite ticks the esbuild box.
-
Best tooling for Typescript now days
I use https://github.com/sinclairzx81/hammer. It provides watch / reload workflows for both node and browser development and it scales from single applications into large mono repository projects. It takes one dependency (esbuild) and needs next to no configuration to use.
- Typescript monorepo with component library help!
-
Advice on build scripts and tooling
I gave up on community build tooling and ended up rolling my own tools. https://github.com/sinclairzx81/hammer. It's difficult to find any tooling in the community that does all the things you may need it to. I found by investing the time into developing tools to align to my workflows, I'm free to modify those tools without getting bogged down in ecosystem plugins, or arcane configurations, or whatever else.
-
Practising typescript without framework?
If you just want to get going, you can try https://github.com/sinclairzx81/hammer, (disclaimer I wrote this), or https://parceljs.org/ . Both are zero configuration and will allow you to add in frameworks as you need them (rather than relying on the kitchen sink project bootstrappers like create-react-app).
- Hammer: A build tool for node and browser applications
- Hammer: Using esbuild to create better tools for the web
What are some alternatives?
jazelle - Incremental, cacheable builds for large Javascript monorepos using Bazel
lightproxy - π Cross platform Web debugging proxy
bazel-skylib - Common useful functions and rules for Bazel
sidewinder - Type Safe Micro Services for Node
rules_docker - Rules for building and handling Docker images with Bazel
bundlejs - An online tool to quickly bundle & minify your projects, while viewing the compressed bundle size, all running locally on your browser. A quick and easy way to bundle, minify, and compress (gzip and brotli) your ts, js, jsx and npm projects all online, with the bundle file size.
bazel-coverage-report-renderer - Haskell rules for Bazel.
parcel - The zero configuration build tool for the web. π¦π
bazel-linting-system - πΏπ Experimental system for registering, configuring, and invoking source-code linters in Bazel.
blog.cnc4me.org - Excerpts from the development of the virtual Fanuc Macro B runtime and the accompanying Macro Playground
rules_rust - Rust rules for Bazel
wmr - π©βπ The tiny all-in-one development tool for modern web apps.