0.0.52 • Published 4 years ago

ngsl v0.0.52

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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
0.0.52

4 years ago

0.0.51

4 years ago

0.0.50

4 years ago

0.0.49

4 years ago

0.0.48

4 years ago

0.0.47

4 years ago

0.0.46

4 years ago

0.0.45

4 years ago

0.0.43

4 years ago

0.0.44

4 years ago

0.0.42

4 years ago

0.0.41

4 years ago

0.0.40

4 years ago

0.0.39

4 years ago

0.0.37

4 years ago

0.0.38

4 years ago

0.0.35

4 years ago

0.0.34

4 years ago

0.0.32

4 years ago

0.0.33

4 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.24

4 years ago

0.0.25

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.30

4 years ago

0.0.31

4 years ago

0.0.26

4 years ago

0.0.27

4 years ago

0.0.28

4 years ago

0.0.29

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago