Skip to content

Commit

Permalink
fix(logging): add installation log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebradley committed Apr 22, 2018
1 parent f7fefee commit d585be3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/executor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import untildify from 'untildify';
import fse from 'fs-extra';
import { spawn } from 'child_process';
import { spawn, chdir } from 'child-process-promise';
import normalizePackageData from 'normalize-package-data';
import sortPackageJSON from 'sort-package-json';

Expand Down Expand Up @@ -79,8 +79,21 @@ const executor = async () => {
normalizePackageData(packageJSON);
fse.writeJsonSync(packageJSONLocation, sortPackageJSON(packageJSON), 'utf8');

console.log('⌛🤞 Installing packages');
await spawn('npm', ['install'], { cwd: destinationDirectory, stdio: 'inherit' });
await spawn('git', ['init'], { cwd: destinationDirectory, stdio: 'inherit' });

console.log('🥝 🍋 🍐 🍓 🍊 🍍 🍰 Installation complete! 🍒 🍈 🍇 🍉 🍏 🍎 🍌');

console.log(`⛵ Navigating to ${destinationDirectory}`);
await chdir(destinationDirectory);

console.log('🔥 "npm run test" runs the jest tests');
console.log('🏗️ "npm run build" will build your modules');

if (isReact) {
console.log('📖 "npm run storybook" starts Storybook!');
}
};

export default executor;

0 comments on commit d585be3

Please sign in to comment.