As the title says, according to tutorials for example we need to install Grunt and Grunt CLI seperately. I was curious as to why this is not the case with Bower?
Why don't I need to install Bower and a Bower CLI seperatly?
Related
I ran npm install grunt-contrib-uglify --save-dev to my local project folder and it kept adding a bunch of other node module packages. How do I make it only install the package specified?
NPM installes package dependencies recursively. So when you install grunt-contrib-uglify it will also install chalk, lodash, maxmin, uri-path and, uglify-js. It will also then install any dependencies those packages have. You can't install just grunt-contrib-uglify because it wouldn't work without them.
What are roles of package managers and preprocessors in build system of GulpJS?
Package managers
Package Manager Bower and Using Gulp to Manage Components
Install Bower
$ npm install -g bower
Finding Packages
$ bower search
Ex: $ bower search jquery
Installing a Package
$ bower install --save
Ex: $ bower install jquery --save
Updating Packages
$ bower update
More: http://andy-carter.com/blog/a-beginners-guide-to-package-manager-bower-and-using-gulp-to-manage-components
A Build System is refered to as collection of tasks(collectively called as task runners), which automate the repetitive work.These tasks may be like Compilation of preprocess CSS and JavaScript, Minification of files to reduce its size, Concatenation of files into one and Triggering the
The build system works with 3 components Package managers(bower, npm), Preprocessors and Task runners(gulp and grunt).
After running
yo ionic
from https://github.com/diegonetto/generator-ionic
Then lauching grunt serve i've got this :
Running "wiredep:app" (wiredep) task
Cannot find where you keep your Bower packages.
I'm stuck and I can't get a preview of the app.
I update grunt-wiredep npm install --save-dev grunt-wiredep and then run a bower install bower install jquery --save I call the Grunt task grunt wiredep and it was done without any errors, finally i could run grunt serve
#arnaudlrx 's answer is correct but check if you instal git in your machine , because if you run
bower install jquery --save
but you don't have git installed there nothing will work
I need to install npm dependencies described on my packages.json file manually (by manually I mean with a command like npm install or mrt install, that doesn't require to start the app).
I know that meteor-npm creates the npm directory inside packages and that when I start the app using mrt or meteor the npm modules get downloaded.
But I'm writing a test script and I need the modules to be installed before running the tests so I would need to install them as I install standard meteorite modules with mrt install.
In theory this is very easy, because you could just run npm install PACKAGENAME in your project directory. However, this would of course mess up meteor, which will try to interpret the new files as meteor files.
Instead, you have two options:
install in a super directory (they will be found): cd .. && npm install PACKAGENAME
install packages globally: npm install -g PACKAGENAME
I'm trying to get used to GruntJS and when I install a package for my app it doesn't add the dependencies to the package.json. I followed the "Get Started" section from the GruntJS site and NPM installs the module in my app directory.
What I am doing wrong?
Try npm install [plugin] --save-dev
Subject says --save-def