'use babel';

import yarnExec from '../yarn/exec';

export default async function (projectFolder) {
  const success = await yarnExec(projectFolder, 'install');

  if (!success) {
    atom.notifications.addError(
      'An error occurred whilst installing dependencies. See output for more information.',
    );

    return;
  }

  atom.notifications.addSuccess('Missing dependencies have been installed');
}

@@ -48,56 +48,265 @@
 c';%0A
-%0Aexport default async function (projectFolder) %7B
+import addProgressNotification from '../add-progress-notification';%0A%0Aexport default async function (projectFolder) %7B%0A  let progress;%0A%0A  const options = %7B%0A    onStart: () =%3E %7B%0A      progress = addProgressNotification('Updating dependencies...');%0A    %7D,%0A  %7D;%0A
 %0A  c
@@ -359,16 +359,54 @@
 install'
+, null, options);%0A%0A  progress.dismiss(
 );%0A%0A  if
@@ -484,23 +484,21 @@
  whilst 
-install
+updat
 ing depe
@@ -604,17 +604,9 @@
 ss('
-Missing d
+D
 epen
@@ -623,23 +623,21 @@
 ve been 
-install
+updat
 ed');%0A%7D%0A

Add progress notification to `install` command