Skip to content

Missing documentation/files about ng-add schematic for libraries #57005

Description

@giancarlo-dm

Describe the problem that you experienced

The section Creating a schematics collection mentions on the collection.json file "schema": "./ng-add/schema.json" but this file is not described on the documentation anywhere.

The same also happens on the Providing installation support section, line #3 says import {Schema} from './schema'; but the schema.ts file is also never described.

On the other hand, down below on the section Providing generation support, both files are described correctly for the generation context on the command ng generate my-lib:my-service.

Enter the URL of the topic with the problem

https://angular.dev/tools/cli/schematics-for-libraries#creating-a-schematics-collection

Describe what you were looking for in the documentation

The documentation should describe all files, schema.ts and the schema.json.

Describe the actions that led you to experience the problem

Trying to build a library with custom ng-add schematic.

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

image
image

If this problem caused an exception or error, please paste it here

No response

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentation

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions