Skip to content

Commit

Permalink
Move spinner stop higher up to prevent it from appearing during any l…
Browse files Browse the repository at this point in the history
…anguage's initialization

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Nov 15, 2016
1 parent 62c100f commit 4332e42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions lib/init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var path = require('path');
// Third Party Dependencies

// Internal
var log = require('../log');
var languages = {
js: require('./javascript'),
rs: require('./rust'),
Expand All @@ -14,6 +15,10 @@ var exportables = {};

// Initialize the directory given the various options
exportables.createNewProject = (options) => {

// Stop spinner from being in our way while entering package.json data
log.spinner.stop();

// Set a default directory if one was not provided
options.directory = options.directory || path.resolve('.');

Expand Down
3 changes: 0 additions & 3 deletions lib/init/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ exportables.buildJSON = (npmConfig) => {
promzardConfig = path.join(resources, 'init-config.js');
}

// Stop spinner from being in our way while entering package.json data
log.spinner.stop();

// Init promozard with appropriate config.
var pz = new PZ(promzardConfig, ctx);

Expand Down

0 comments on commit 4332e42

Please sign in to comment.