spacecraft
A light framework core for everyone can mount more component or write component, to create a node app which have not more redundant file and function.Using es6/es7
Usage
Install
$ npm install --save spacecraft
create a component
const Component = ; { return name: 'demo' version: '1.0.0' } { } { } { } moduleexports = DemoComponent;
In a component, we have 3 function when component is mount, app is start and component is unmount, all of this is optional.
For every component, have a function getInfo
must to be override, via the return object to division other component. Same name component will not mount twice.