Remove Entire "bower_components" Folder

Hi,

I want to remove the entire “bower_components” folder.

When I install my STAGE, I edited the “bower.json” file to remove the Bootstrap SASS.
However, after the installation that still create the empty
“bower_components” folder on the theme file list.
Then I tried to just delete the folder because it is empty that should useless, but when I GULP the theme that gave me error message:

admin:client root$ gulp watch
/Applications/MAMP/htdocs/client1/wp-content/themes/client/node_modules/main-bower-files/lib/index.js:81
            throw error;
            ^

Error: Bower components directory does not exist at /Applications/MAMP/htdocs/client1/wp-content/themes/client/bower_components
    at Error (native)
    at module.exports (/Applications/MAMP/htdocs/client1/wp-content/themes/client/node_modules/main-bower-files/lib/index.js:76:17)
    at new module.exports (/Applications/MAMP/htdocs/client1/wp-content/themes/client/node_modules/asset-builder/lib/Manifest.js:29:15)
    at module.exports (/Applications/MAMP/htdocs/client1/wp-content/themes/client/node_modules/asset-builder/index.js:17:10)
    at Object.<anonymous> (/Applications/MAMP/htdocs/client1/wp-content/themes/client/gulpfile.js:24:40)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)

These are I removed from the “bower.json”:

"overrides": {
    "bootstrap-sass": {
      "main": [
        "./assets/stylesheets/_bootstrap.scss",
        "./assets/javascripts/bootstrap/transition.js",
        "./assets/javascripts/bootstrap/alert.js",
        "./assets/javascripts/bootstrap/button.js",
        "./assets/javascripts/bootstrap/carousel.js",
        "./assets/javascripts/bootstrap/collapse.js",
        "./assets/javascripts/bootstrap/dropdown.js",
        "./assets/javascripts/bootstrap/modal.js",
        "./assets/javascripts/bootstrap/tooltip.js",
        "./assets/javascripts/bootstrap/popover.js",
        "./assets/javascripts/bootstrap/scrollspy.js",
        "./assets/javascripts/bootstrap/tab.js",
        "./assets/javascripts/bootstrap/affix.js",
        "./assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
        "./assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
        "./assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
        "./assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
        "./assets/fonts/bootstrap/glyphicons-halflings-regular.woff2"
      ]
    }
  }

Can anyone please give some helps on this? I want make the theme folder much cleaner as possible.

Much Thanks!!

You don’t need to make the dir part of your final distributable assets or even part of your repo but it certainly looks like the asset manager requires the dir at least be there, even if it’s empty.

Thanks for answering this, but I think I still want to remove it.

Did you ever figure out a good solution to this? I want to do the same thing - I am building a lightweight site that will have very few plugins and I’d rather do without bootstrap, composer, bower etc…

Would love any further help with this,

Thanks,
-Alyssa