Suppose that I ran
$ npm install bootstrap --save
and now I have, inside the node_modules
folder, a bootstrap
folder containing a Bootstrap distribution. What am I supposed to do with it?
Here's the (simplified) structure of my project, a template for writing blog posts (https://github.com/jacquerie/portfolio-template):
.
├── Gruntfile.js
├── css
│ └── application.css
├── index.html
├── js
│ └── application.js
├── package.json
└── node_modules
└── bootstrap
I could do something like
$ cp node_modules/bootstrap/dist/css/bootstrap.css css
but that looks rather unelegant and it's a manual step I don't want to remember to do. I could fix the latter creating some task in Gruntfile.js
using grunt-contrib-copy
to do it for me, but that looks like an hack.
Is there a better way?