Skip to content
This repository was archived by the owner on Sep 13, 2019. It is now read-only.
This repository was archived by the owner on Sep 13, 2019. It is now read-only.

Question about extend! #27

@marsanla

Description

@marsanla

Hi it's possible to extends functionality from a file in one folder to other?. For example:

We have this structure:

- components
    - c1
        - routes.js
- core
    - c1
        - routes.js

core/c1/routes.js:

module.exports = {
   hello: function() {
       return 'hello';
   },
   world: function() {
       return 'world';
   }
};

components/c1/routes.js:

module.exports = {
   hello: function() {
       return 'welcome';
   }
};

At the end i want to get this module:

module.exports = {
   hello: function() {
       return 'welcome';
   },
   world: function() {
       return 'world';
   }
};

Should i write something in particles? Or Scatter control that?

Thanks and best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions