packages/dangerfile/index.js
async function create(sourcedir) {
	const target = join(sourcedir, FILENAME);
	const exists = await exist(target);

	const source = exists
		? target
		: join(__dirname, FILENAME)
	;

	const content = await readFile(source);
	await writeFile(primed, content.toString());

	return exists
		?	'Creating a new Dangerfile'
		: 'Creating a default Dangerfile'
	;
}
async function create(sourcedir) {
	const target = join(sourcedir, FILENAME);
	const exists = await exist(target);

	const source = exists
		? target
		: join(__dirname, FILENAME)
	;

	const content = await readFile(source);
	await writeFile(primed, content.toString());

	return exists
		?	'Creating a new Dangerfile'
		: 'Creating a default Dangerfile'
	;
}
async function create ( sourcedir ) { const target = join ( sourcedir , FILENAME ) ; const exists = await exist ( target ) ; const source = exists ? target : join ( __dirname , FILENAME ) ; const content = await readFile ( source ) ; await writeFile ( primed , content . toString ( ) ) ; return exists ? 'Creating a new Dangerfile' : 'Creating a default Dangerfile' ; }
Create a dangerfile
@param  {String} target [description]
@return {[type]}        [description]
Create a dangerfile