Angular Express boilerplate to create a reusable Angular Express component.
Ensure the Angular Express CLI tool is installed:
$ npm install -g ngx-cliCreate a new component directory:
$ mkdir new-component
$ cd new-componentInitialize the component boilerplate:
$ ngx init -b componentVisit the AngularJS Express page to learn more about boilerplates and components.
Simply push the component to a GitHub repository.
From a project root:
$ ngx install github-username/github-repository-nameThis will copy all files in the ngx directory of the component to the src/components/github-repository-name directory.
To manually specify the destination:
$ ngx install github-username/github-repository-name src/components/custom-component-nameThe ngx directory contains all files that are scaffolded when the component is installed.
This allows other files to be included in the repository e.g. README.md without including them in an actual install.
- Added modular structure
