@coderaiser coderaiser released this Mar 23, 2017 · 804 commits to master since this release

Assets 4

Modules

Now you can override modules data.

const http = require('http');
const cloudcmd = require('cloudcmd');
const io = require('socket.io');
const app = require('express')();

const port = 1337;
const prefix = '/cloudcmd';

const server = http.createServer(app);
const socket = io.listen(server, {
    path: `${prefix}/socket.io`
});

const filePicker = {
    data: {
        FilePicker: {
            key: 'key',
        }
    }
};

// override option from json/modules.json
const modules = {filePicker};

app.use(cloudcmd({
    socket,  /* used by Config, Edit (optional) and Console (required)   */
    modules, /* optional */
}));

server.listen(port);

feature

  • (cloudcmd) add ability to override modules (#109)
  • (server) cloudfunc: common -> server
  • (entity) add from cloudfunc