1 | [![Build Status][build-image]][build-url]
|
2 | [![NPM version][npm-image]][npm-url]
|
3 |
|
4 |
|
5 | # Gabliam core
|
6 |
|
7 | Gabliam is on top of inversify.
|
8 | Gabliam help you for register all class in inversify.
|
9 | Gabilliam is modular with plugins.
|
10 |
|
11 |
|
12 | # Gabliam phase
|
13 |
|
14 | ## Build phase
|
15 |
|
16 | 1. Load all config file
|
17 | 2. Load all file in scanPath of main
|
18 | - All decorators on class add metadata and can register this class
|
19 | - if an class has @scanPath, add this folder in queue for load
|
20 | - load all plugin
|
21 | 3. Bind classes in DI (inversify)
|
22 | - call all plugin.bind
|
23 | 4. load all config classes (order: CoreConfig => PluginConfig => config)
|
24 | - call all plugin.config for all instance of config class
|
25 | 5. Build
|
26 | - call all plugin.build
|
27 |
|
28 | ## Start phase
|
29 | /!\ Build phase must be passed
|
30 |
|
31 | 1. call all plugin.start
|
32 |
|
33 | ## Stop phase
|
34 | /!\ Build and start phases must be passed
|
35 |
|
36 | 1. call all plugin.start
|
37 |
|
38 | ## Detroy phase
|
39 | /!\ Stop phase must be passed
|
40 |
|
41 | 1. call all plugin.detroy
|
42 |
|
43 | # Samples
|
44 | Go to [Samples]
|
45 |
|
46 |
|
47 |
|
48 | [Samples]: <https://github.com/gabliam/gabliam/tree/master/examples>
|
49 |
|
50 | # License
|
51 |
|
52 | MIT
|
53 |
|
54 | [build-image]: https://img.shields.io/travis/gabliam/gabliam/master.svg?style=flat-square
|
55 | [build-url]: https://travis-ci.org/gabliam/gabliam
|
56 | [npm-image]: https://img.shields.io/npm/v/@gabliam/core.svg?style=flat-square
|
57 | [npm-url]: https://www.npmjs.com/package/@gabliam/gabliam/core
|