Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@thisissoon/schematics

thisissoon64MIT1.0.0-alpha.18TypeScript support: included

A set of extensions for the Angular CLI

schematics, angular, ci, testing, circle, travis, gitlab, universal, express, linting, docker, ng-express, ng-docker, ng-testing, ng-linting, ng-universal-express, ng-license

readme

SOON_ Schematics

A set of extensions for the Angular CLI.

Install

via NPM

npm i @thisissoon/schematics --save-dev

via Yarn

yarn add @thisissoon/schematics --dev

Schematics

Testing schematic

A schematic to set up CI and testing patterns

ng g @thisissoon/schematics:testing --ci travis

Options:

  • ci (string): name of CI service to use. One of travis | circle | gitlab (default: travis)

Universal Express schematic

A schematic to set up angular universal with express.js

ng g @thisissoon/schematics:universal-express

Docker schematic

A schematic that generates a DOCKERFILE to build a docker image

ng g @thisissoon/schematics:docker

Options:

  • universal (boolean): Set to true if using a server side rendered app (default: false)
  • domain (string): Example: thisissoon.com Required if universal option is set to false.

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:commits

Linting schematic

A schematic to set up and police code formatting rules

ng g @thisissoon/schematics:linting

Development

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 --help

Unit 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 publish

That's it!

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.0-alpha.18 (2018-10-09)

Features

  • linting: add trailing comma and remove defaults from config (dc9a3b3)
  • linting: prefer more stylelint default options (71c8f69)

1.0.0-alpha.17 (2018-10-08)

Bug Fixes

  • npm: ignore .git, .vscode and .circleci folders when publishing package (07beee5)

1.0.0-alpha.16 (2018-10-08)

Bug Fixes

  • npm: ignore .git folder when publishing package (d7d6a19)

1.0.0-alpha.15 (2018-10-04)

Bug Fixes

  • testing: travis and ci scripts (b5bf8fc)

1.0.0-alpha.14 (2018-10-04)

Bug Fixes

  • linting: add prettier options to tslint and stylelint (d8cc9ed)

Features

  • testing: use ChromeHeadless for unit and e2e tests (8f4a02e)
  • testing: use ChromeHeadless for unit and e2e tests and add yarn support (8d97a9a)

1.0.0-alpha.13 (2018-10-04)

Bug Fixes

  • universal-express: server.ts file not being included in npm package (97e396a)

1.0.0-alpha.12 (2018-10-04)

1.0.0-alpha.11 (2018-10-03)

Bug Fixes

  • docker: resolve issue with docker schematic failing (fc2de8a)
  • testing: update dependencies to resolve issue with schematic failing (714ab28)

Features

  • docker: added yarn support (4d02e42)
  • linting: use lint-staged and lint/fix only staged files (65b93ad)
  • universal-express: add support for angular v6 and above (f870130)

1.0.0-alpha.10 (2018-06-13)

Bug Fixes

  • docker: use first project in projects object instead of default project (a4ff97b)

1.0.0-alpha.9 (2018-06-13)

Features

  • docker: add support for angular 6 for non universal apps (b41103a)

1.0.0-alpha.8 (2018-06-13)

Features

  • testing: replace karma-spec-reporter with karma-mocha-reporter (a27acbb)

1.0.0-alpha.7 (2018-06-12)

Bug Fixes

  • testing: resolve syntax errors and ci testing commands (a37ba5b)

1.0.0-alpha.6 (2018-05-29)

Bug Fixes

  • testing: update coverage reports config (1f43a6e)

1.0.0-alpha.5 (2018-05-23)

Bug Fixes

  • testing: ci test commands (7d08123)

1.0.0-alpha.4 (2018-05-22)

Bug Fixes

  • testing: don't display progress during npm install in ci (7010808)

1.0.0-alpha.3 (2018-05-22)

Bug Fixes

  • testing: more fixes for modifying testing configuration for ci (7b51a94)

1.0.0-alpha.2 (2018-05-21)

Bug Fixes

  • testing: update ci configs to support angular cli 6 (e8a3627)

Features

  • linting: adding angular cli 6 support (b53ed8c)

1.0.0-alpha.1 (2018-04-12)

Features

  • docker: adding schematic for Dockerfile config (7916a5a)
  • license: added a schematic to generate a MIT license file (9545e26)
  • universal-express: adding schematic to run universal schematic and create express server (76c3829)

1.0.0-alpha.0 (2018-04-04)

Features

  • testing: adding testing schematics (7e82e29)