A guide to NPM version constraints for Rubyists
30-Jan-2020 1789
In this post, I want to answer the following question for Rubyists:What do the tilde ~ and caret ^ designations mean for version constraints in a package.json file?To answer this question, we'll compare how Rubyists declare Ruby project dependencies in a Gemfile with conventions used to declare NPM module dependencies in a package.json file.Of note, some projects use both Gemfile and package.json. For example, a newly created Rails 6 application will have generated a package.json file because, by default, it ships with Webpack and related NPM dependencies to compile JavaScript assets.It might include a section like this:.
A guide to NPM version constraints for Rubyists #ruby #rubydeveloper #rubyonrails #guide #version #constraints #Rubyists #guide https://rubyonrails.ba/link/a-guide-to-npm-version-constraints-for-rubyists