@nx/plugin
Version:
32 lines (31 loc) • 995 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.tmpFolder = tmpFolder;
exports.tmpProjPath = tmpProjPath;
exports.tmpBackupProjPath = tmpBackupProjPath;
const devkit_1 = require("@nx/devkit");
function tmpFolder() {
return `${devkit_1.workspaceRoot}/tmp`;
}
/**
* The directory where the e2e workspace resides in.
*
* @param path path within the e2e directory
* @returns `'${process.cwd()}/tmp/nx-e2e/proj/<path>'`
*/
function tmpProjPath(path) {
return path
? `${tmpFolder()}/nx-e2e/proj/${path}`
: `${tmpFolder()}/nx-e2e/proj`;
}
/**
* The workspace backup directory. This is used for caching of the creation of the workspace.
*
* @param path path within the e2e directory
* @returns `'${process.cwd()}/tmp/nx-e2e/proj-backup/<path>'`
*/
function tmpBackupProjPath(path) {
return path
? `${devkit_1.workspaceRoot}/tmp/nx-e2e/proj-backup/${path}`
: `${devkit_1.workspaceRoot}/tmp/nx-e2e/proj-backup`;
}
;