Meteor.js 0.6.5.1 and Bootstrap 3 - meteor

I installed Bootstrap 3 in my Meteor.js 0.6.5.1 project via meteorite and did a "meteor remove" of the originally packaged bootstrap 2.3.2. But everytime I run "meteor" the old bootstrap package seems to be re-installed. Now my meteor project has 2 versions of bootstrap being loaded and its giving me conflicts...anyway to permanently remove the old bootstrap or is it dependent as part of Meteor.js 0.6.5.1?

You need to manually remove all the remnants of the package.
Remove packagename from .meteor/packages file.
Remove /packages/packagename folder. Also remove packagename from /packages/.gitignore if you've got that file.
If you use meteorite, remove all traces of packagename from smart.json and force reload by running mrt install.
That should do it.

It looks like when I installed meteor-bootboxjs v3 it also installed bootstrap v2.3.x....next time I will look more closely # the package.js.....

Related

What is the proper way to upgrade Bootstrap 4 for Rails?

I tried to upgrade from Bootstrap 4 Alpha 6 to 4.0.0 final version for my Rails 5 project, I'm sure the v4.0.0 gem has been installed (I also uninstalled the alpha version gem), but when I run my project (dev mode), I found the generated Bootstrap CSS files are still based on the Alpha version.
gem 'bootstrap', '~> 4.0.0'
Other than uninstalling the old gem and install the new bootstrap gem, do I need to do anything else for the upgrade? Download the physical v4.0.0 files and replace the old files in my project?
You can have look at this article:
How to update a single gem conservatively
Option 1
This will work if all dependencies for the update are already satisfied.
Find out the version you want to update to
Change it directly in Gemfile.lock
Run bundle install and see if that worked
Option 2
This will work if the gem has no shared dependencies with other gems.
Find out the version you want to update to.
Add that version explicitly to the Gemfile with , '=1.2.3'
Run bundle install
Remove the explicit version number again
Run bundle install once more
Option 3
This should always work.
Run bundle update GEMNAME
Run git diff Gemfile.lock and notice all the updates you didn't want
Revert the unwanted changes to Gemfile.lock you don't want (manually or by staging changed lines one-by-one), leaving only the desired updates.
Run bundle install and see if that worked
Option 4
There are persistent rumors that you can update a single gem by calling bundle update --source GEMNAME. However no one seems to know how and why this works, it's not a documented feature of Bundler. It might be an unintended side effect of something else.
I believe this command will try to update GEMNAME and GEMNAME only. If this leads to unmatched dependencies to other locked gems, it will fail.
If you use this option, be sure to git diff your Gemfile.lock to see if the changes are what you expected.
Option 5
Bundler >= 1.14 has a --conservative flag. Using the conservative flag allows bundle update GEM to update the version of GEM, but prevents Bundler from updating the versions of any of the gems that GEM depends on.
Credits To Author: Henning Koch
Try to keep Ruby dependencies in your Gemfile and JS/CSS ones elsewhere. Node+Yarn is a good way to do that.
If not already there
brew install yarn
Then in config/initializers/assets.rb
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Now you can do this in your console:
yarn add bootstrap
It should have create a node-modules directory if not already there.
Then just add bootstrap to your JS/SCSS files
JS
//= require bootstrap/js/src/index
CSS
#import "bootstrap/scss/bootstrap";

How to tell Visual Studio that Bootstrap files are updated?

I am trying to install Bootstrap Datetimepicker on a PC which is not connected to the Internet.
I have the Bootstrap Datetimepicker nupkg files. I added the folder of the files as a Package Source. When I try to install the package, I get the error:
Unable to resolve dependencies. 'bootstrap 3.0.0' is not compatible with 'Bootstrap.v3.Datetimepicker.CSS 4.17.45 constraint: bootstrap (>= 3.3.0)'
I already copied all CSS and JS files of Bootstrap 3.3.7 to the relevant folders in my project. How do I tell Visual Studio that they have been updated?
How do I tell Visual Studio that they have been updated?
You need update the package bootstrap to 3.3.0 or later.
You want to update package Bootstrap.v3.Datetimepicker to 4.17.45, which has a Dependencies limitation: bootstrap (>=3.3.0). So you need update the package bootstrap.
I already copied all CSS and JS files of Bootstrap 3.3.7 to the relevant folders in my project
NuGet manager the packages as a whole will not modify the internal data, so even you have already copied all CSS and JS files of Bootstrap 3.3.7, nuget still manager the previous package Bootstrap 3.0.0. To resolve this issue, just update the package Bootstrap to 3.3.0 or later.

Installing Cordova plugin to meteor project using a github tarball link

I'm trying to install a package to my meteor project using a repository in github.
The only way Meteor allow me to install it is using a "tarball" specific link like this:
https://github.com/Wizcorp/phonegap-facebook-plugin/tarball/d8b0f6935a7c6e586188bf85f9da88a1c160790b
Although, the package version referenced in the link is not the one I need (I got that link from an old support post).
Could someone explain me how to obtain that type of link (tarball) from this repository and version (0.12.0)?
https://github.com/Wizcorp/phonegap-facebook-plugin/releases/tag/v0.12.0
So far I have tried:
Copy the tar.gz download link of the right version and running:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/aogilvie/phonegap-facebook-plugin/archive/0.6.0.tar.gz
Result: "Meteor requires either an exact version, a Git URL with a SHA
reference"
Installing it using the version number:
meteor add cordova:com.phonegap.plugins.facebookconnect#0.12.0
Result: I got "Package installed" but when run ios-device I got the error:
"Failed to fetch plugin com.phonegap.plugins.facebookconnect#0.12.0 via registry".
Downloading the zip file, unzip and put folder in packages folder.
Result: Is not working because is not a package.js inside the folder.
Thanks in advance
You are actually trying to add a Cordova plugin (meteor add cordova:...), not a Meteor package.
Therefore, your trial 3 (local package / plugin) needs a similar meteor add cordova:your-plugin-name#file://packages/folder-to-local-cordova-plugin instead of a meteor add package-name (which will look for a package.js file).
Trial 2 (version number) works only for published plugins.
You should stick with your trial 1 but you have to specify the commit hash (git endpoint + # + commit hash) instead of the tarball link:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/Wizcorp/phonegap-facebook-plugin.git#c0f8da97a1d65397ada73e958dafed3aeef2e491
See Meteor Guide > Build > Mobile > Native features with Cordova plugins > Installing plugins > Installing a plugin from Git

Is there a way to install animate.css via Bower/Homebrew/etc?

I've finally started developing locally and have installed Roots.io for WP builds. Bower, gulp, node, it's all great. I've used Bower to install wow.js and it's there, but the dependency is animate.css. Is there a way to install animate.css via Bower/Homebrew/etc?
On the animate.css Github I don't see a simple way to include it in the Roots build. I've tried to manually include in which hasn't worked either, hence looking for the ideal/clean solution to the problem.
Thank you!
When installing dependancies via bower (or any package manager really) that project should include a manifest (bower.json) that lists it's own dependancies. E.g. The bower.json in wow.js should include a reference to animate.css. However if it does not you can include it as any other dependancy:
bower install animate-css --save
Then run you build process again. In this case:
gulp

Intellisense on Visual Studio 2015 RC for bower.json file is not working properly.

When I tried to add the dependencies in bower.json file. Intellisense does work for name but it does not work for version. For version it only shows "*" (Any available version of the package).
After I added just "*". its not able to get the appropriate or any version of the dependencies...
e.g I tried to add one for bootstrap.
"dependencies": {
"bootstrap": "*"
}
bower bootstrap#~3.3.4 not-cached git://github.com/twbs/bootstrap.git#~3.3.4
bower bootstrap#~3.3.4 resolve git://github.com/twbs/bootstrap.git#~3.3.4
I have to install through command line to make it work like "bower install bootstrap --save". Is there any way that I can just type in bower.json file and show the available version of bootstrap. Or am I missing any extra plugins for that in VS 2015 RC.
It does seem to be a valid issue since Beta7.
Corresponding Github Issue can be found and tracked here:
https://github.com/aspnet/Tooling/issues/219
I installed ASP.Net 5 RC1 this morning and get the version intellisence work now :D. But it doesn't give any help to suggest the list of packages matching the input characters.
I still believe that this issue happens because of the proxy

Resources