@naxodev/gonx
v4.1.1
Published
Modern Nx plugin to use Go in a Nx workspace
Readme
Nx plugin for using Go in an Nx workspace — generators, inferred targets, and a tree-sitter–based dependency graph. A modernized fork of nx-go.
📚 Full documentation: https://gonx.naxo.dev/
Features
- Generate Go Applications
- Customizable Go module setup
- Well-structured Go code scaffolding
- Generate Go Libraries
- Full Nx integration
- Inferred Tasks: Build, Generate, Tidy, Test, Serve, and Lint
- Cacheable Tasks: Build, Generate, Tidy, Test, and Lint
- GraphV2 Support
- Version Actions for Go release
- Nx Release Publish executor
- Use official Go commands in the background
- Dependency detection via tree-sitter static analysis (no Go required)
Getting started
You need to have a stable version of Go installed on your machine. And... you are ready!
Generate a Nx workspace with Go support
npx create-nx-workspace go-workspace --preset=@naxodev/gonxAdd to an existing workspace
nx add @naxodev/gonxAcknowledgements
This project is a fork of nx-go, a plugin for Nx that provides tools for building Go applications. Most credit goes to the original maintainers of nx-go - we've built upon their excellent foundation to modernize the plugin for the latest Nx features.
Contributors
Thanks goes to these wonderful people (emoji key):
