Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional AngularJS
|
BOOK: Professional AngularJS
This is the forum to discuss the Wrox book Professional AngularJS by Valeri Karpov, Diego Netto; ISBN: 978-1-118-83207-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional AngularJS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2015, 06:37 AM
Registered User
 
Join Date: May 2015
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Size of initial StockDog folder ~200 MB?

After "scaffolding" the StockDog app with Yeoman, -
Code:
yo angular StockDog
that folder contains ~28,000 files and more than 6000 subfolders and a total size 143 MB!

Is that normal? Or did something go wrong during that initial process? Everything seems to work, though.
 
Old August 19th, 2015, 09:47 PM
Registered User
 
Join Date: Aug 2015
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by matthiku View Post
After "scaffolding" the StockDog app with Yeoman, -
Code:
yo angular StockDog
that folder contains ~28,000 files and more than 6000 subfolders and a total size 143 MB!

Is that normal? Or did something go wrong during that initial process? Everything seems to work, though.
I second that question! The scaffolding file size/numbers are absurd. I'm well over 100MB. I also need some insight into why?
 
Old August 20th, 2015, 11:40 AM
Registered User
 
Join Date: Aug 2015
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I guess this is "normal" for Yeoman scaffolding files size: http://stackoverflow.com/questions/1...-and-11k-files
 
Old August 24th, 2015, 06:38 AM
Authorized User
Points: 130, Level: 2
Points: 130, Level: 2 Points: 130, Level: 2 Points: 130, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2015
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Praxia View Post
I guess this is "normal" for Yeoman scaffolding files size: http://stackoverflow.com/questions/1...-and-11k-files
You're right, it is normal. The node and bower modules recursively keep their own copies of their dependencies in a tree of folders. This behaviour seems to be a bone of contention within the community.

If you're using source control like git, it's no practical problem as the gitignore file filters out the dependencies. If you tend to just zip your folders and copy and paste projects this'll will feel horrible. Best you manually copy the project contents and exclude 'node_modules' and 'bower_components' as you will use 'npm install' and 'bower install' respectively to install them elsewhere. Also have fun deleting those file paths that exceed window's limit to handle. You'll have to google 'mklink' to help you clear them out.
The Following User Says Thank You to dougal83 For This Useful Post:
Praxia (August 24th, 2015)
 
Old August 25th, 2015, 04:38 PM
Registered User
 
Join Date: Aug 2015
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dougal83 View Post
You're right, it is normal. The node and bower modules recursively keep their own copies of their dependencies in a tree of folders. This behaviour seems to be a bone of contention within the community.

If you're using source control like git, it's no practical problem as the gitignore file filters out the dependencies. If you tend to just zip your folders and copy and paste projects this'll will feel horrible. Best you manually copy the project contents and exclude 'node_modules' and 'bower_components' as you will use 'npm install' and 'bower install' respectively to install them elsewhere. Also have fun deleting those file paths that exceed window's limit to handle. You'll have to google 'mklink' to help you clear them out.
Great advice, Dougal. Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload script with images with a file size greater than 20 MB. Jens PHP How-To 3 April 3rd, 2010 04:29 PM
Uplad txt field of size greater than 12 mb rapraj PHP Databases 3 October 28th, 2007 09:36 AM
Upload .txt file of size 15 mb or more rapraj PHP Databases 1 October 24th, 2007 06:34 PM
Calculate a Webserver Folder Size fred205 BOOK: Beginning ASP 3.0 0 February 12th, 2005 05:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.