Skip to content

cloudcmd v6.9.0

Compare
Choose a tag to compare
@coderaiser coderaiser released this 23 Mar 16:01
· 2080 commits to master since this release

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