@aida/core

0.0.7 • Public • Published

Aida Core

The roles of the core are:

  • Accept settings as a parameter
  • Convert model files to the models object structure shown below
  • Pass the models object through the pipeline of injectors and handle the ordering based on the dependency specifications
  • At the end of the pipeline, pass the resulting models object to the caller (CLI, JavaScript call, etc.)

The resulting object after the core has passed it through all injectors will look something like:

{
  \_raw: {
    User: {
      core: {
        //The fields in .core.js
      },
      endpoints: {
        //The fields in .endpoints.js
      }
    },
  },
  injectedFunction1: {
    execute: (options) => {...}
  },
  injectedFunction2: {
    execute: (options) => {...}
  },
  ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i @aida/core

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

5.87 kB

Total Files

6

Last publish

Collaborators

  • sradevski