lib/functions/ignore.js
function addGasIgnore(rootFolder) {

    // If no .gitignore files exists, add one
    const gasignore = path.join(rootFolder, constants.IGNORE_FILE);
    if (!fs.existsSync(gasignore)) {
        fs.writeFileSync(gasignore, gasignoreContent);
    }
}
function addGasIgnore(rootFolder) {

    // If no .gitignore files exists, add one
    const gasignore = path.join(rootFolder, constants.IGNORE_FILE);
    if (!fs.existsSync(gasignore)) {
        fs.writeFileSync(gasignore, gasignoreContent);
    }
}
function addGasIgnore ( rootFolder ) { // If no .gitignore files exists, add one const gasignore = path . join ( rootFolder , constants . IGNORE_FILE ) ; if ( ! fs . existsSync ( gasignore ) ) { fs . writeFileSync ( gasignore , gasignoreContent ) ; } }
Add a .gasignore file if none is present yet

@param {String} rootFolder - Folder to add .gasignore in
@returns {void}
Add a . gasignore file if none is present yet