Skip to content

Creating a Library #1684

@Lightk3ira

Description

@Lightk3ira

Hello I am writing an Angular + Nativescript code sharing project and have realized it would be beneficial to create a Library. I have tried using schematics but I am unable to create a proper library. Any component that get's created within the library only has angular files not typescript.

Steps To reproduce:

  1. Create a Workspace: ng new <project-name> --create-application false
  2. Create a Library: ng generate library library-name
  3. Create a module within the library: ng generate module navigation-module --project=Library
  4. Create a component within the library: ng generate component ran within the module directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions