Questions about installation modes in Angular

Asked

Viewed 59 times

0

Let’s assume I want to install a specific version of bootstrap in my angular design, the command would be this:

npm install [email protected] --save

This command is required to be included in the file package json., because if ever this project needs to be sent to the cloud the bootstrap will also be included and installed, all because of the parameter --save

But let’s say I want to use the css calling for Bootstrap Switch

Bootstrap

There are no guidelines on how to install the project by the parameter --save, the only way to make the css libraries work would be to put it directly in the project, but the package.json file would not be notified of this inclusion in the project, it would only be installed in the project manually.

The Library Bootstrap Switch is working perfectly in the project, I have tested, but will the time to send it to the cloud server it will work?

  • Yes, it will work. But you looked that project on NPM? If the dependency Voce is using is not in NPM, or Bower, or any other manager, it is necessary to keep it fixed in the project and not include it in .gitignore. If you are deploying to a cloud, it will be considered.

  • didn’t understand the question.

  • 1

    There is a project on http://bootstrapswitch.com’s NPM, I asked if you saw it. Because it is possible to add as dependency the way you think you do not have it.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.