UNPKG

@nx/detox

Version:

The Nx Plugin for Detox contains executors and generators for allowing your workspace to use the powerful Detox integration testing capabilities.

15 lines (14 loc) 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addGitIgnoreEntry = addGitIgnoreEntry; const devkit_1 = require("@nx/devkit"); function addGitIgnoreEntry(host, options) { if (host.exists('.gitignore')) { let content = host.read('.gitignore', 'utf-8'); content = `${content}\n${options.e2eProjectRoot}/artifacts\n`; host.write('.gitignore', content); } else { devkit_1.logger.warn(`Couldn't find .gitignore file to update`); } }