1.0.0 • Published 4 years ago
@ez-codes/create-project v1.0.0
Create Project
Demo schematic for creating a new project.
- Runs ng new, passing in option of
scss
for styles - Enforces a prefix of
cust-
on the name of the project - Passes through
routing
configuration - Adds
.prettierrc
,.npmrc
,karma.config.js
&tslint.json
files - Adds
prettier
&husky
to package.json as dev dependencies - Add prod build & CI test scripts, and husky pre-commit hook to package.json
- Remove default Angular favicon
Testing
To run locally, install @angular-devkit/schematics-cli
globally and use the schematics
command line tool. That tool acts the same as the generate
command of the Angular CLI, but also has a debug mode.
Check the documentation with
schematics --help
You'll need to build the script before you can run it
npm run build
Or, in watch mode
npm run watch
Unit Testing
npm run test
will run the unit tests, using Jasmine as a runner and test framework.