feat: scaffold template-lib-angular as a single Angular library project - #8
Closed
NoNamer777 wants to merge 4 commits into
Closed
feat: scaffold template-lib-angular as a single Angular library project#8NoNamer777 wants to merge 4 commits into
NoNamer777 wants to merge 4 commits into
Conversation
Restructure the repo from the template-app-angular application clone into a library-only workspace: generate the library under projects/, drop the app project and its bootstrap (main.ts, index.html, src/core), and wire the library's build/test/lint targets to angular.json/tsconfig.
ng generate library added both as ad-hoc devDependencies. jsdom is unused since this repo tests in a real browser via vitest/playwright, and ng-packagr belongs in the shared pnpm catalog like every other Angular tooling dependency.
Nothing in this workspace imports the library by package name, only the schematic-added mapping did. Drop it rather than carry dead config.
Drop the redundant ts-check pragma and tsconfig doc-link comments the schematic adds, and reformat public-api.ts's docblock and the tsconfig key ordering to match this repo's conventions.
This was referenced Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructure this repo from the
template-app-angularapplication clone into a library-only workspace, per the "Angular Library Template" map's destination:ng generate libraryto scaffold@dnd-mapp/template-lib-angularunderprojects/add) and its test, demonstrating the export surfacesrc/main.ts,src/index.html,src/core/**) and the now-orphanedtsconfig.app.json/tsconfig.spec.jsonappproject fromangular.json, and wired the library'stesttarget to match the repo's existing vitest/coverage conventions (the schematic's default was bare-bones)Out of scope here: Docker, SSL dev server, Playwright e2e, and
src/design-system/removal. Those belong to "Remove app-runtime scaffolding".Related issues
Resolves #2
Checklist