1.

What Is --save-dev Option While Installing The Grunt?

Answer»

As mentioned in previous ANSWER that “package.json” file holds the METADATA for grunt plugins. So when grunt is installed USING --save-dev option, the metadata is added to package.json. So you don’t have to add it manually. And this is how your package.json will look LIKE,

  1. {
  2. "NAME": "my-project-name",
  3. "version": "0.1.0",
  4. "devDependencies": {
  5. "grunt": "~0.4.5",
  6. "grunt-contrib-jshint": "~0.10.0",
  7. "grunt-contrib-nodeunit": "~0.4.1",
  8. "grunt-contrib-uglify": "~0.5.0"
  9. }
  10. }

As mentioned in previous answer that “package.json” file holds the metadata for grunt plugins. So when grunt is installed using --save-dev option, the metadata is added to package.json. So you don’t have to add it manually. And this is how your package.json will look like,



Discussion

No Comment Found