strvcom / atlas.js

A component-based Node.js library to reduce boilerplate and provide sane project structure 🍻

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement internal components

robertrossmann opened this issue · comments

Some components are not meant to be used directly and are instead a glue, or a supportive component for other components. It is therefore redundant (sometimes even dangerous) to expose these components on the Atlas instance.

There should be a way to declare a component as being "internal" which would mean that component can only be accessed from other components via the usual this.component('action:internal') but not via atlas.actions.internal.

There are pending tests for this feature already in the code.