1.2.75 • Published 3 years ago

eco2 v1.2.75

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Module was inspired by architecture of mono-repositories

Why

The module was written to simplify local development of microservices

How

The module searches and groups the services, calls them for one window, logging in pm2

Result

We will get comfortable using services

install

$ yarn global add eco2

Searches modules and return app.json

$ eco2 build

Start

$ eco2 start

Commands

init out = app.json - init and searches services for pm2

build out = app.json - searches services and return out

start out = app.json - it's command pm2 mutations

  • -m, --modules <modules...> - names of modules (default: [])
  • -g, --groups <groups...> - names of groups of modules (default: [])

groups out = app.json - add group at out

modules out = app.json - add pre modules at out

logs all - it's command pm2 mutations

stop all - it's command pm2 mutations

pm2 command - link to pm2

What's so app.json?

const app = {
    "options": { // it's global pm2 options for services
        "watch": true,
        "script": "C:\\Program Files\\nodejs\\node_modules\\eco2\\node_modules\\yarn\\bin\\yarn.js",
        "args": "debug",
        "env": {}
    },
    "modules": {
        "module-a": {
            "groups": [], // it's groups of module
            "modules": ["module-b"], // it's depends modules (relation to module-b)
            "options": { // it's local pm2 options for service
                "name": "modules-a",
                "cwd": "path/to/modules/a"
            }
        },
        "module-b": {
            "groups": [], // it's groups of module
            "modules": [], // it's depends modules
            "options": { // it's local pm2 options for service
                "name": "modules-b",
                "cwd": "path/to/modules/b"
            }
        }
    }
}

To hides windows

$ yarn global add pm2-windows-service
$ pm2-service-install
1.2.75

3 years ago

1.2.73

3 years ago

1.2.7

3 years ago

1.2.63

3 years ago

1.2.61

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.3

3 years ago

1.2.15

3 years ago

1.2.123

3 years ago

1.2.121

3 years ago

1.2.12

3 years ago

1.2.11

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.0.35

3 years ago

1.0.33

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago