xpdavid / respace

ReSpace is a development environment built upon Mobx and React components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReSpace

Build Status

Overview

ReSpace is a development environent (IDE) built upon Mobx and React based components.

Each ReSpace component is:

  1. An NPM package.
  2. Can be used standalone on its own by feeding Mobx observable.
  3. Written in TypeScript and typechecked to a common interface.
  4. Can be headless or have a React component that is injected with Mobx observable.

While each ReSpace component is useful on its own, the power of ReSpace is its ability t put together components into a workspace.

The package respace in packages/respace creates a workspace from ReSpace components.

Using Respace

You can use your own webpack configuration to creae a space efficient Respace bundle. Or you can use ours! Respace comes with a CLI that can help you generate your own bundle.

$ npm install respace-cli -g
$ respace bundle your-respace-project

This is recommended if your bundle is simple and uses similar language as ours. This method of bundling supports TypeScript, ES6, and SCSS.

Developing ReSpace

Preparation

$ node -v # We use > 5
$ npm -v  # We use > 3
$ npm install lerna@^2.0.0-beta typings -g
$ npm run bootstrap
$ npm install
$ npm link

Cross package development with hot reloading

$ respace serve packages/respace-preset-nus

Compiling all packages to ES6, then ES5, and generate source map and typing definitions

$ respace build-all
$ respace build respace-core # For single component

TODO: Bundling each packages for browser use to dist

TODO: Running test cases

Cleaning up

$ npm run clean

License

MIT

About

ReSpace is a development environment built upon Mobx and React components.

License:MIT License


Languages

Language:TypeScript 55.4%Language:CSS 35.1%Language:JavaScript 9.1%Language:HTML 0.5%