lib/tasks/jsdoc/generateJsdoc.js
async function createTmpDirs(projectName) {
	const {path: tmpDirPath} = await createTmpDir(projectName);

	const sourcePath = path.join(tmpDirPath, "src"); // dir will be created by writing project resources below
	await makeDir(sourcePath, {fs});
	const targetPath = path.join(tmpDirPath, "target"); // dir will be created by jsdoc itself
	await makeDir(targetPath, {fs});

	const tmpPath = path.join(tmpDirPath, "tmp"); // dir needs to be created by us
	await makeDir(tmpPath, {fs});

	return {
		sourcePath,
		targetPath,
		tmpPath
	};
}
async function createTmpDirs(projectName) {
	const {path: tmpDirPath} = await createTmpDir(projectName);

	const sourcePath = path.join(tmpDirPath, "src"); // dir will be created by writing project resources below
	await makeDir(sourcePath, {fs});
	const targetPath = path.join(tmpDirPath, "target"); // dir will be created by jsdoc itself
	await makeDir(targetPath, {fs});

	const tmpPath = path.join(tmpDirPath, "tmp"); // dir needs to be created by us
	await makeDir(tmpPath, {fs});

	return {
		sourcePath,
		targetPath,
		tmpPath
	};
}
async function createTmpDirs ( projectName ) { const { path : tmpDirPath } = await createTmpDir ( projectName ) ; const sourcePath = path . join ( tmpDirPath , "src" ) ; // dir will be created by writing project resources below await makeDir ( sourcePath , { fs } ) ; const targetPath = path . join ( tmpDirPath , "target" ) ; // dir will be created by jsdoc itself await makeDir ( targetPath , { fs } ) ; const tmpPath = path . join ( tmpDirPath , "tmp" ) ; // dir needs to be created by us await makeDir ( tmpPath , { fs } ) ; return { sourcePath , targetPath , tmpPath } ; }
Create temporary directories for JSDoc generation processor

@private
@param {string} projectName Project name used for naming the temporary working directory
@returns {Promise<Object>} Promise resolving with sourcePath, targetPath and tmpPath strings
Create temporary directories for JSDoc generation processor