JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q57214F
  • License ISC

This library is created for generating a scalfolding for angular with stores, services, models, transformers

Package Exports

  • onecompileman-angular4-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (onecompileman-angular4-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Onecompileman-Angular4-CLI

N|Solid

Onecompileman-angular4-cli is a Node.js CLI library for Angular that converts OAS or Open Api Specification JSON file generated by an API which has Swagger Integration into:

  • Models - Typescript class that defines structure of object.
  • Services - Asynchronous services that make requests to API endpoints (using [ngx-restangular])

Tech

Onecompileman-Angular4-CLI uses a number of open source projects to work properly:

  • node.js - evented I/O for the backend
  • minimist - node.js argument parser
  • clui - command-line interfaces
  • figlet - ASCII text art
  • chalk - colorize the output

Installation

Onecompileman-Angular4-CLI requires Node.js v8.8+ to run.

$ npm install -g onecompileman-angular4-cli

Commands

You can generate your services and models for your angular app in just 3 or more seconds with the following command, it is suggested to have the OAS swagger.json file inside the root directory of the app.

$ ocm generate --swagger swagger.json //File path relative to the path you are accessing the command

About

This library is created by Stephen Vinuya, because of his laziness he created a library that creates the codes for him.

N|Solid