1.0.2 • Published 7 years ago

spacecraft v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

spacecraft

Build Status Coverage Status npm

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 = require('spacecraft/component');

class DemoComponent extends Component {
  getInfo() {
    return {
      name: 'demo',
      version: '1.0.0',
    }
  }

  onMount() {

  }

  onLoad() {

  }

  onUnmount() {

  }
}

module.exports = 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.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago