Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/isaacplmann/ngx-cli-library-seed

Seed for creating an Angular library that leverages the @angular/cli
https://github.com/isaacplmann/ngx-cli-library-seed

angular angular-cli aot library seed

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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).