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

6 years ago

0.0.45

6 years ago

0.0.43

6 years ago

0.0.44

6 years ago

0.0.42

6 years ago

0.0.41

6 years ago

0.0.40

6 years ago

0.0.39

6 years ago

0.0.37

6 years ago

0.0.38

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.32

6 years ago

0.0.33

6 years ago

0.0.20

6 years ago

0.0.21

6 years ago

0.0.22

6 years ago

0.0.23

6 years ago

0.0.24

6 years ago

0.0.25

6 years ago

0.0.16

6 years ago

0.0.17

6 years ago

0.0.18

6 years ago

0.0.19

6 years ago

0.0.30

6 years ago

0.0.31

6 years ago

0.0.26

6 years ago

0.0.27

6 years ago

0.0.28

6 years ago

0.0.29

6 years ago

0.0.10

6 years ago

0.0.11

6 years ago

0.0.12

6 years ago

0.0.13

6 years ago

0.0.14

6 years ago

0.0.15

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago