How to use corvid-local-server - 6 common examples

To help you get started, we’ve selected a few corvid-local-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix-incubator / corvid / packages / corvid-local-testkit / src / Index.bs.js View on Github external
startInCloneMode: (function (prim) {
      return Testkit$1.startInCloneMode(prim);
    })
};
github wix-incubator / corvid / packages / corvid-local-testkit / src / index.js View on Github external
startInCloneMode: localSite => {
    return corvidLocalServerTestkit.startInCloneMode(
      localSite[LOCAL_SITE_PATH]
    );
  }
};
github wix-incubator / corvid / packages / corvid-local-testkit / src / Index.bs.js View on Github external
startInEditMode: (function (prim) {
      return Testkit$1.startInEditMode(prim);
    }),
  startInCloneMode: (function (prim) {
github wix-incubator / corvid / packages / corvid-local-testkit / src / index.js View on Github external
startInEditMode: localSite => {
    return corvidLocalServerTestkit.startInEditMode(localSite[LOCAL_SITE_PATH]);
  },
  startInCloneMode: localSite => {
github wix-incubator / corvid / packages / corvid-cli / src / utils / electron.js View on Github external
async function connectToLocalServer(serverMode, serverArgs, win) {
  const server =
    serverMode === "edit"
      ? startInEditMode(".", serverArgs)
      : startInCloneMode(".", serverArgs);

  const {
    adminPort: localServerPort,
    adminToken: token,
    close: closeLocalServer
  } = await server;

  win.webContents.on("will-prevent-unload", async event => {
    console.log(JSON.stringify({ event: "closingWithUnsavedChanges" }));
    const choice = process.env.SKIP_UNSAVED_DIALOG
      ? 1
      : await electron.dialog.showMessageBox(win, beforeCloseDialogParams);
    const leave = choice === 0;
    if (leave) {
      event.preventDefault();
    }
github wix-incubator / corvid / packages / corvid-cli / src / utils / electron.js View on Github external
async function connectToLocalServer(serverMode, serverArgs, win) {
  const server =
    serverMode === "edit"
      ? startInEditMode(".", serverArgs)
      : startInCloneMode(".", serverArgs);

  const {
    adminPort: localServerPort,
    adminToken: token,
    close: closeLocalServer
  } = await server;

  win.webContents.on("will-prevent-unload", async event => {
    console.log(JSON.stringify({ event: "closingWithUnsavedChanges" }));
    const choice = process.env.SKIP_UNSAVED_DIALOG
      ? 1
      : await electron.dialog.showMessageBox(win, beforeCloseDialogParams);
    const leave = choice === 0;
    if (leave) {
      event.preventDefault();

corvid-local-server

MIT
Latest version published 3 years ago

Package Health Score

43 / 100
Full package analysis

Similar packages