A schematic is a way for us to specify a file or folder structure that we want to be able to scaffold. See that we are going to be generating a lot of features, I felt like this might be a use case to automate that creation.
Well... in order for us to use this thing without publishing a node package (which maybe we should in the future), we have to install it locally and "link" the package.
- Clone the repository to your local machine.
git clone https://github.com/mwagz/feature-schematic
cd feature-schematic
- Install package dependencies
npm install
- Install TypeScript Globally
npm install -g typescript
- Build the project
tsc -p tsconfig.json
- Link the package
npm link
- Navigate to your project directory
cd path/to/your/project
- Link the schematic to your project
npm link feature
ng generate feature:feature --name="feature name"