@ng-vision/indexer
v1.0.5
Published
Adds a CLI command for generating an index file for Angular Libraries.
Downloads
2
Readme
@ng-vision/indexer
Adds a CLI command for generating an index file for Angular Libraries.
Installation
npm i -g @ng-vision/indexer
Usage
indexer <folder> <output file> <search pattern>
Parameters
| Parameter| Description | |--|--| | folder | The folder containing the library. The path specified will be used as the export origin. | | output file | The name of the file which to export to. | | search pattern | Filters all the exports that match one of the given patterns. The order of the exports are determined by the order of the provided patterns. |
You can setup a NPM script by adding the following to your package.json file of you library:
CD src && indexer ./lib index.ts ".extensions .enum .function .attribute .interface .model .pipe .directive .service .component .module"