Skip to content

Commit

Permalink
feat(app generator): prune npm packages after install
Browse files Browse the repository at this point in the history
This gets rid of any extraneous packages; perhaps left over from previous
generator attempts.
  • Loading branch information
cueedee committed Aug 26, 2016
1 parent 5f12dc5 commit 20f95d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,14 @@ var AppGenerator = generators.Base.extend(

, end:
{
intro: function ()
// Get rid of any extraneous packages; perhaps left over from previous generator attemtps.
//
prune: function ()
{
this.spawnCommand( 'npm', [ 'prune' ] );
}

, intro: function ()
{
/* jshint laxbreak: true */

Expand Down

0 comments on commit 20f95d3

Please sign in to comment.