@nx/gatsby
Version:
Gatsby Plugin for Nx
16 lines • 782 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addCypress = void 0;
const tslib_1 = require("tslib");
const cypress_1 = require("@nx/cypress");
const linter_1 = require("@nx/linter");
function addCypress(host, options) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
if ((options === null || options === void 0 ? void 0 : options.e2eTestRunner) !== 'cypress') {
return () => void 0;
}
return (0, cypress_1.cypressProjectGenerator)(host, Object.assign(Object.assign({}, options), { linter: linter_1.Linter.EsLint, name: `${options.name}-e2e`, directory: options.directory, project: options.projectName }));
});
}
exports.addCypress = addCypress;
//# sourceMappingURL=add-cypress.js.map