4.1.0 • Published 4 years ago

@sugoi/cli v4.1.0

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

@Sugoi/cli

Sugoi logo

Introduction

SugoiJS is a minimal modular framework.

SugoiJS gives you the ability to use only what you need and do it fast.

This package provides you the needed util for sugoi development.

Installation

$ npm i -g @sugoi/cli

Bootstrapping

To bootstrap use the 'init' command:

$ sgi init

This will display a wizard for project creation.

Generate

SugoiJS provides easy generation tool by the g or generate argument

$ sgi g <type> <name>

Available types

module (m) - Generate a module with one service and one controller which contains the module name

After generating new module you will have to inject it to bootstrap module.

controller (c) - Generate a controller under 'controllers' directory.

After generating new controller you will have to inject it to the related module.

service (s) - Generate a service under 'services' directory.

After generating new service you will have to inject it to the related module.

model - Generate a model class.
mongo-model - Generate a mongo model class.

Commands example

$ sgi g m myModule
// Will create a module under the current path
// with controller and a service

$ sgi g model myModel
// Will create a model under the current path

$ sgi g mongo-model myMongoModel
// Will create a mongo-model under the current path

$ sgi g c newController
// Will create a controller under the current path
// will create controllers directory
// if no such directory found under the path

$ sgi g s newService
// Will create a service under the current path
// will create service directory
// if no such directory found under the path

Documentation

You can find further information on Sugoi official website

4.1.0

4 years ago

4.0.37

5 years ago

4.0.36

5 years ago

4.0.35

6 years ago

4.0.34

6 years ago

4.0.33

6 years ago

4.0.32

6 years ago

4.0.31

6 years ago

4.0.30

6 years ago

4.0.29

6 years ago

4.0.28

6 years ago

4.0.27

6 years ago

4.0.26

6 years ago

4.0.25

6 years ago

4.0.24

6 years ago

4.0.23

6 years ago

4.0.22

6 years ago

4.0.21

6 years ago

4.0.20

6 years ago

4.0.19

6 years ago

4.0.18

6 years ago

4.0.17

6 years ago

4.0.16

6 years ago

4.0.15

6 years ago

4.0.14

6 years ago

4.0.13

6 years ago

4.0.12

6 years ago

4.0.11

6 years ago

4.0.10

6 years ago

4.0.9

6 years ago

4.0.8

6 years ago

4.0.7

6 years ago

4.0.6

6 years ago

4.0.5

6 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.0

7 years ago