function create()

in src/index.js [50:83]


function create(type, company, primary, secondary, version) {
	const ignoresPath = __dirname.substring(0, __dirname.length - 3) + 'templates\\ignores';
	const legacyTemplatePath = __dirname.substring(0, __dirname.length - 3) + 'templates\\legacy\\windows-admin-center-extension-template';
	const templatePath = __dirname.substring(0, __dirname.length - 3) + 'templates\\windows-admin-center-extension-template';
	const manifestTemplatePath = __dirname.substring(0, __dirname.length - 3) + 'templates\\manifest';

	if (pathExists.sync(primary)) {
		console.error('This tool definition already exists.  No changes have been made.')
	} else {
		let productPath = './' + primary;
		console.log(productPath);
		fse.mkdirSync(primary);

		if (version === 'legacy') {
			fse.copySync(legacyTemplatePath, productPath);
		} else {
			fse.copySync(templatePath, productPath);
		}

		fse.copyFileSync(ignoresPath + '\\git', productPath + '\\.gitignore');
		fse.copyFileSync(ignoresPath + '\\npm', productPath + '\\.npmignore');

		if (type === 'tool') {
			// make tool manifest
			fse.copyFileSync(manifestTemplatePath + '\\tool-manifest.json', productPath + '\\src\\manifest.json');
		} else if (type === 'solution') {
			// make solution manifest
			fse.copyFileSync(manifestTemplatePath + '\\solution-manifest.json', productPath + '\\src\\manifest.json');
		}

		updateFiles(company, primary, secondary, version);
		printOutro(primary);
	}
}