How do I discover the target for a generated stylesheet?
ninja-build/ninja
Ninja runs a declared build graph and decides which outputs need rebuilding. It is useful when a generated site keeps stale assets or rebuilds unchanged files.
Public GitHub facts reviewed Nov 30, 2026. Independent editorial profile; not a sponsored entry.
How is the score calculated?
Calculated on 30.11.2026. Missing public information receives no points. The index does not establish code quality, security, fitness, or future visibility.
What can ninja help with?
How do I discover the target for a generated stylesheet?
Run ninja -t targets in the configured build directory. Match the filename with the build manifest before invoking a target by name.
Can I preview the work caused by a template edit?
Use ninja -n in a configured tree. Compare its planned rebuild with the specific output you expect the template to affect.
Questions people ask before using ninja
How do I discover the target for a generated stylesheet?
Run ninja -t targets in the configured build directory. Match the filename with the build manifest before invoking a target by name.
Can I preview the work caused by a template edit?
Use ninja -n in a configured tree. Compare its planned rebuild with the specific output you expect the template to affect.
Why is a generated page stale after a successful run?
Trace the input file to the output edge. A script may read a layout file that the generated build manifest never declared as an input.
How do I see what depends on one intermediate file?
Use the query tool with its exact build-relative name and inspect the outputs listed. Check that the files belong to the same configured tree.
Does a clean second build prove the content is correct?
It shows that recorded inputs did not require a rebuild. Inspect the produced content and test a deliberate input change separately.
My fix disappears on reconfigure. Where should it live?
Find the generator that wrote build.ninja. Correct its source configuration, regenerate and inspect the resulting edge.
Can I reduce peak memory during asset builds?
Use a lower positive -j limit and measure memory and elapsed time. The best setting depends on the external commands, not just the core count.
When is a clean build a misleading test?
Deleting outputs forces work even with a broken graph. Keep a second incremental test that edits just one known source file.
Why does a build fail only with parallel jobs?
Check whether the consumer declares its generated prerequisite. Serial execution can hide a missing dependency without actually repairing it.
What should a teammate receive to reproduce the build?
Provide generator inputs, required compiler versions and the configure/build commands. The Ninja executable alone does not supply the site's toolchain.
What to check before adoption
- Primary language
- C++
- GitHub license field
- Apache-2.0
- Stars / forks in this snapshot
- 13,399 / 1,874
- Last code push
- 28.11.2026
- Self-hostable
- Potentially, verify operating requirements
Apache-2.0 applies to Ninja. Toolchains invoked by a build and third-party assets have separate licensing requirements.
Comparison and original sources
Compared with dart-sass Dart Sass compiles a stylesheet. Ninja can orchestrate that compiler as one step in a dependency graph.
Documentation and repository data
Compare related projects
lighthouse
GoogleChrome/lighthouse
An automated audit tool for web performance, accessibility, SEO checks, and best practices.
GitHub snapshot 11.11.2026 · Score method on profile
A visual low-code environment for event-driven automations and integrations.
GitHub snapshot 11.11.2026 · Score method on profile
wordpress-develop
WordPress/wordpress-develop
A GitHub mirror of the WordPress core development project.
GitHub snapshot 11.11.2026 · Score method on profile
Back to Open Source Radar
Explore more projects by job, technology, and license.