UNPKG

@naxodev/gonx

Version:

Modern Nx plugin to use Go in a Nx workspace

21 lines (20 loc) 691 B
import { type ProjectConfiguration, type Tree } from '@nx/devkit'; /** * Adds the gonx plugin to the nx.json if it's not already there. * * @param tree project tree object */ export declare const addNxPlugin: (tree: Tree) => void; /** * Ensures that go configuration files are included as a sharedGlobal, * so any changes will trigger projects to be flagged as affected. * * @param tree project tree object */ export declare const ensureGoConfigInSharedGlobals: (tree: Tree) => void; /** * Checks if a Nx project is using the naxodev plugin. * * @param project project configuration object */ export declare const isProjectUsingNxGo: (project: ProjectConfiguration) => boolean;