Giter Club home page Giter Club logo

schematics's Introduction

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!

schematics's People

Contributors

edoparearyee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.