function parseLifecycleScripts ({target, pkgJson: {scripts = {}}}) {
	const results = []
	for (let i = 0; i < LIFECYCLE_SCRIPTS.length; i++) {
		const name = LIFECYCLE_SCRIPTS[i]
		const script = scripts[name]
		if (script) results.push({target, script})
	}
	return results
}
extract lifecycle scripts from supplied dependency.
@param {Dep} dep - dependency to be parsed.
@return {Array.<Object>} - array of script targets to be executed.