0.0.52 • Published 5 years ago

ngsl v0.0.52

Weekly downloads
1
License
MIT
Repository
-
Last release
5 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

5 years ago

0.0.51

5 years ago

0.0.50

5 years ago

0.0.49

5 years ago

0.0.48

5 years ago

0.0.47

5 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.43

5 years ago

0.0.44

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.37

5 years ago

0.0.38

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.32

5 years ago

0.0.33

5 years ago

0.0.20

5 years ago

0.0.21

5 years ago

0.0.22

5 years ago

0.0.23

5 years ago

0.0.24

5 years ago

0.0.25

5 years ago

0.0.16

5 years ago

0.0.17

5 years ago

0.0.18

5 years ago

0.0.19

5 years ago

0.0.30

5 years ago

0.0.31

5 years ago

0.0.26

5 years ago

0.0.27

5 years ago

0.0.28

5 years ago

0.0.29

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.12

5 years ago

0.0.13

5 years ago

0.0.14

5 years ago

0.0.15

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago