$ show angular-schule/angular-cli-ghpages
angular-cli-ghpages is an Angular CLI builder and schematic that deploys Angular applications to GitHub Pages, Cloudflare Pages, or any Git repository. It wraps the gh-pages npm package and integrates with Angular CLI's deployment infrastructure via `ng deploy`. The tool features a modular architecture with separate entry points for standalone CLI usage, Angular builder integration, and schematic-based setup. It handles complex deployment concerns including build process integration, authentication token injection, CI environment metadata appending, and creation of necessary deployment files (.nojekyll, 404.html for SPA routing, CNAME for custom domains).
The LLM identified 1 files worth highlighting for reuse:
This file contains a collection of well-isolated helper functions that handle complex option transformations and edge cases for the angular-cli-ghpages tool. Key functions include: setupMonkeypatch (intercepts gh-pages logging via util.debuglog monkey-patching), mapNegatedBooleans (transforms Angular CLI's --no- flags), handleUserCredentials (manages git user configuration with warnings), appendCIMetadata (adds CI metadata to commit messages), injectTokenIntoRepoUrl (discovers git remote and injects auth tokens), createCleanupBeforeAddHook (solves gh-pages issue #204 for dotfiles/submodule cleanup), ensureGhPagesCacheDir (solves gh-pages issue #203 for missing package.json), and getRemoteUrl (wrapper around gh-pages internal Git API). These functions demonstrate non-obvious skill in solving specific quirks of the gh-pages library and Angular CLI integration, are well-tested, and could be extracted to other projects with minimal modification.