spacecraft-core
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
-- -------------------- ---- ------- ----- --------- - -------------------------------- ----- ------------- ------- --------- - --------- - ------ - ----- ------- -------- -------- - - --------- - - -------- - - ----------- - - - -------------- - --------------
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.
HomePage
https://github.com/node-spacecraft/spacecraft#readme
Repository
git+https://github.com/node-spacecraft/spacecraft.git
来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/600560d781e8991b448df1a3