What is the purpose of npm.js inside a new Bootstrap project?

Hello guys.

I have just created a new Bootstrap project using WebStorm latest version (2016.3).

Inside js folder I've found a file called npm.js with the following content :

 

// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')

 

What is the purpose of this file?

Is it ok if I erase it?

Thank you!

0
1 comment

When creating a new Twitter Bootstrap project, WebStorm just downloads https://github.com/twbs/bootstrap/releases/download/<version>/bootstrap-<version>-dist.zip and extracts it to the project directory - nothing more. I have no idea why npm.js is included in the distribution - from https://github.com/twbs/bootstrap, What's included, it shouldn't be there.But anyway it's not a problem with WebStorm. And, BTW, I don't have npm.js in a new project create with Twitter Bootstrap template, v4.0.0-alpha.5 - only bootstrap.js and bootstrap.min.js are there

0

Please sign in to leave a comment.