UNPKG

@nx/gatsby

Version:

Gatsby Plugin for Nx

16 lines 677 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addGitIgnoreEntry = void 0; const devkit_1 = require("@nx/devkit"); function addGitIgnoreEntry(host, options) { if (host.exists('.gitignore')) { let content = host.read('.gitignore', 'utf-8'); content = `${content}\n/apps/${options.projectName}/node_modules\n/apps/${options.projectName}/public\n/apps/${options.projectName}/.cache\n`; host.write('.gitignore', content); } else { devkit_1.logger.warn(`Couldn't find .gitignore file to update`); } } exports.addGitIgnoreEntry = addGitIgnoreEntry; //# sourceMappingURL=add-git-ignore-entry.js.map