Hello everybody,
I don’t understand the difference between the Ionic Lib version, the one that I can find insert in the terminal
ionic -v
and the ionic version in the app, the one that is in the bower.json file.
Why are they different?
And also if I want to be sure to have my app with the leatest version of ionic I do this first
sudo npm install -g ionic
and then in the app root
ionic lib update
I assume that the first command update the Ionic version of npm and the second update the library in my app www/lib. But reading from the ionic-cli on github I don’t understand what this is for
you can build apps with ionic without using the cli --> like using only the framework sources and push your project to phonegap build. So you do not need all the cli stuff.
bower is a packaging tool for websites and so you can add dependencies to your project.
It works like nodes npm.
Instead of maintaining the used libs by hand (copy the sources to your lib folder) and pushing in your git- or svn repo, you add bower.json to your project add the required libs --> run bower install and all deps are installed in bower_components folder --> easy.
To use bower you need node and npm. so in the last time most libs are also available via npm. So maybe you only need your package.json.
Hi Bengtler and thank you for replying.
CLI is also using bower, right? So which are the pros and cons?
I mean which way do you suggest, CLI or bower?
thanks again.