packages/liferay-theme-tasks/lib/project/index.js
/**
	 * Return a temporary directory inside the project's tree. The directory is
	 * created and emptied if necessary.
	 *
	 * Each call to this method will return a new directory.
	 *
	 * The returned directory is guaranteed to exist during the execution of the
	 * current build but no more than that. However, it is not deleted on exit.
	 *
	 * @return {FilePath}
	 */
Return a temporary directory inside the project's tree. The directory is
created and emptied if necessary.

Each call to this method will return a new directory.

The returned directory is guaranteed to exist during the execution of the
current build but no more than that. However, it is not deleted on exit.


Return a temporary directory inside the project ' s tree . The directory is created and emptied if necessary . Each call to this method will return a new directory . The returned directory is guaranteed to exist during the execution of the current build but no more than that . However it is not deleted on exit .
tmpdir() {
		const tmpdir = this.options.pathBuild.join(
			'.tmp',
			crypto.randomBytes(4).toString('hex')
		);
		fs.emptyDirSync(tmpdir.asNative);
		return tmpdir;
	}
tmpdir ( ) { const tmpdir = this . options . pathBuild . join ( '.tmp' , crypto . randomBytes ( 4 ) . toString ( 'hex' ) ) ; fs . emptyDirSync ( tmpdir . asNative ) ; return tmpdir ; }
Return a temporary directory inside the project's tree.
Return a temporary directory inside the project ' s tree .