How to use the signale.complete function in signale

To help you get started, we’ve selected a few signale 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 GitSquared / edex-ui / src / _boot.js View on Github external
tty.onclosed = (code, signal) => {
        tty.ondisconnected = () => {};
        signale.complete("Terminal exited", code, signal);
        app.quit();
    };
    tty.onopened = () => {
github prijs / pri / src / utils / log.ts View on Github external
export function logComplete(message: string) {
  signale.complete(message);
}
github sourcegraph / sourcegraph / browser / scripts / dev.ts View on Github external
(err, stats) => {
        signale.complete(stats.toString(tasks.WEBPACK_STATS_OPTIONS))

        if (err || stats.hasErrors()) {
            signale.error('Webpack compilation error')
            return
        }
        signale.success('Webpack compilation done')

        buildChrome()
        buildFirefox()
        tasks.copyPhabricator()
        triggerReload()
    }
)
github GitSquared / edex-ui / src / _boot.js View on Github external
backgroundThrottling: false,
            webSecurity: true,
            nodeIntegration: true,
            nodeIntegrationInSubFrames: false,
            allowRunningInsecureContent: false,
            experimentalFeatures: settings.experimentalFeatures || false
        }
    });

    win.loadURL(url.format({
        pathname: path.join(__dirname, 'ui.html'),
        protocol: 'file:',
        slashes: true
    }));

    signale.complete("Frontend window created!");
    win.show();
    if (!settings.allowWindowed) {
        win.setResizable(false);
    } else if (!require(lastWindowStateFile)["useFullscreen"]) {
        win.setFullScreen(false);
    }

    signale.watch("Waiting for frontend connection...");
}
github GitSquared / edex-ui / src / _boot.js View on Github external
app.on('before-quit', () => {
    tty.close();
    Object.keys(extraTtys).forEach(key => {
        if (extraTtys[key] !== null) {
            extraTtys[key].close();
        }
    });
    signale.complete("Shutting down...");
});
github GitSquared / edex-ui / src / _boot.js View on Github external
term.onclosed = (code, signal) => {
                term.ondisconnected = () => {};
                term.wss.close();
                signale.complete(`TTY exited at ${port}`, code, signal);
                extraTtys[term.port] = null;
                term = null;
            };
            term.onopened = pid => {