1.0.0 • Published 5 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
scssfor styles - Enforces a prefix of
cust-on the name of the project - Passes through
routingconfiguration - Adds
.prettierrc,.npmrc,karma.config.js&tslint.jsonfiles - Adds
prettier&huskyto 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 --helpYou'll need to build the script before you can run it
npm run buildOr, in watch mode
npm run watchUnit Testing
npm run test will run the unit tests, using Jasmine as a runner and test framework.