4.1.0 • Published 3 years ago

@sugoi/cli v4.1.0

Weekly downloads
18
License
MIT
Repository
-
Last release
3 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

3 years ago

4.0.37

4 years ago

4.0.36

4 years ago

4.0.35

4 years ago

4.0.34

4 years ago

4.0.33

4 years ago

4.0.32

4 years ago

4.0.31

4 years ago

4.0.30

5 years ago

4.0.29

5 years ago

4.0.28

5 years ago

4.0.27

5 years ago

4.0.26

5 years ago

4.0.25

5 years ago

4.0.24

5 years ago

4.0.23

5 years ago

4.0.22

5 years ago

4.0.21

5 years ago

4.0.20

5 years ago

4.0.19

5 years ago

4.0.18

5 years ago

4.0.17

5 years ago

4.0.16

5 years ago

4.0.15

5 years ago

4.0.14

5 years ago

4.0.13

5 years ago

4.0.12

5 years ago

4.0.11

5 years ago

4.0.10

5 years ago

4.0.9

5 years ago

4.0.8

5 years ago

4.0.7

5 years ago

4.0.6

5 years ago

4.0.5

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.0

5 years ago