isaacplmann / ngx-cli-library-seed

Seed for creating an Angular library that leverages the @angular/cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ngx CLI Library Seed

Please replace this document with instructions on how to use Your Awesome Library.

ngx-cli-library-seed provides the following features:

  1. Angular cli for building and running demo code
  2. Angular cli for running tests
  3. Demo app hosted on gh-pages
  4. Lib code separate from demo code
  5. Compiled code separate from source code
  6. Publish to npm or pack into *.tgz for local testing

Creating a new component in the library

To create a new component within the library folder, you'll have to specify the path of your library module. The ../lib/awesomelibrary points to ../lib/awesomelibrary.module.ts.

ng generate component header --module ../lib/awesomelibrary

The component will be generated within the app folder, so you'll have to move it manually (or && a copy command).

About

Seed for creating an Angular library that leverages the @angular/cli

License:MIT License


Languages

Language:TypeScript 70.4%Language:JavaScript 19.5%Language:HTML 5.7%Language:CSS 4.4%