This package has been deprecated

Author message:

Migrated to @ngsl/schematics

ngsl

0.0.52 • Public • Published

NGSL Library (BETA)

An useful library for scaffold an Angular 9 project with the Slabcode architecture using Angular Schematics

Installation

Run npm install ngsl@latest

Use

Once the ng new command has been executed you can run:

Project:

  • Command ng g ngsl:project, alias: p
  • Creates the basic project structures, such as files, folders, etc
  • Be careful running this command, it will replace all the files and some work might be erased

View Module:

  • Command ng g ngsl:view-module <name: string> --wrapper=<wrapper?: boolean>, alias: vm
  • Creates a view module with custom routes and a pages folder
  • By default the schematic will create a wrapper, i.e. a component that will wrap the children components declared within

Shareable Module:

  • Command ng g ngsl:shareable-module <name: string>, alias: sm
  • Creates a shareable module, i. e.modules like Ui, meaning that it's components will be declared and exported

Interfaces/Enums

  • Command ng g ngsl:(interface|enum) <name: string> --group=<group?: string>, alias: i/e
  • Creates an interface or enum that can be grouped into separated folders specifying the group name (optional), if not the file will be created inside an auxiliary folder

Component

  • Command ng g ngsl:component <name: string>, alias: c
  • Creates a component and place it inside the index.ts file which contains all the module declarations

Page

  • Command ng g ngsl:page <name: string>, alias: pg
  • Creates a page and place it inside the index.ts file which contains all the module declarations

Controller

  • Command ng g ngsl:controller <name: string>, alias: ct
  • Creates and API service and a Facade for the given entity name

Class

  • Command ng g ngsl:class <name: string>, alias: cl
  • Creates a class and place it inside the index.ts

Model

  • Command ng g ngsl:model <name: string>, alias: m
  • Creates a model and imports it inside the index.ts

Observable service

  • Command ng g ngsl:observable-service <name: string>, alias: os
  • Creates an observable service and imports it inside the index.ts

Readme

Keywords

Package Sidebar

Install

npm i ngsl

Weekly Downloads

0

Version

0.0.52

License

MIT

Unpacked Size

161 kB

Total Files

211

Last publish

Collaborators

  • djguzmanc