@thisissoon/schematics v1.0.0-alpha.18
SOON_ Schematics
A set of extensions for the Angular CLI.
Install
via NPM
npm i @thisissoon/schematics --save-devvia Yarn
yarn add @thisissoon/schematics --devSchematics
Testing schematic
A schematic to set up CI and testing patterns
ng g @thisissoon/schematics:testing --ci travisOptions:
- ci (
string): name of CI service to use. One oftravis|circle|gitlab(default:travis)
Universal Express schematic
A schematic to set up angular universal with express.js
ng g @thisissoon/schematics:universal-expressDocker schematic
A schematic that generates a DOCKERFILE to build a docker image
ng g @thisissoon/schematics:dockerOptions:
- universal (
boolean): Set to true if using a server side rendered app (default:false) - domain (
string): Example:thisissoon.comRequired ifuniversaloption is set tofalse.
License schematic
A schematic to generate a MIT license file
ng g @thisissoon/schematics:license --name SOON_Options:
- name (
string): Name of license holder e.g.SOON_
Commits schematic
A schematic to setup conventional commits and changelog generation
ng g @thisissoon/schematics:commitsLinting schematic
A schematic to set up and police code formatting rules
ng g @thisissoon/schematics:lintingDevelopment
Testing
To test locally, install @angular-devkit/schematics 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 --helpUnit Testing
npm run test will run the unit tests, using Jasmine as a runner and test framework.
Publishing
To publish, simply do:
npm run build
npm publishThat's it!
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago