npm/publish-wiki.js
function (next) {
            console.log(chalk.yellow.bold('Publishing wiki...'));

            // create a location to clone repository
            // @todo - maybe do this outside in an os-level temp folder to avoid recursive .git
            mkdir('-p', WIKI_GIT_PATH);
            rm('-rf', WIKI_GIT_PATH);

            // @todo: Consider navigating to WIKI_GIT_PATH, setting up a new git repo there, point the remote
            // to WIKI_GIT_URL,
            // @todo: and push
            exec(`git clone ${WIKI_URL} ${WIKI_GIT_PATH} --quiet`, next);
        }
function (next) {
            console.log(chalk.yellow.bold('Publishing wiki...'));

            // create a location to clone repository
            // @todo - maybe do this outside in an os-level temp folder to avoid recursive .git
            mkdir('-p', WIKI_GIT_PATH);
            rm('-rf', WIKI_GIT_PATH);

            // @todo: Consider navigating to WIKI_GIT_PATH, setting up a new git repo there, point the remote
            // to WIKI_GIT_URL,
            // @todo: and push
            exec(`git clone ${WIKI_URL} ${WIKI_GIT_PATH} --quiet`, next);
        }
function ( next ) { console . log ( chalk . yellow . bold ( 'Publishing wiki...' ) ) ; // create a location to clone repository // @todo - maybe do this outside in an os-level temp folder to avoid recursive .git mkdir ( '-p' , WIKI_GIT_PATH ) ; rm ( '-rf' , WIKI_GIT_PATH ) ; // @todo: Consider navigating to WIKI_GIT_PATH, setting up a new git repo there, point the remote // to WIKI_GIT_URL, // @todo: and push exec ( ` ${ WIKI_URL } ${ WIKI_GIT_PATH } ` , next ) ; }
prepare a separate wiki output folder
prepare a separate wiki output folder