The Basics: package.json



The Basics: package.json

0 2


grunt-tutorial-02-package-json

Grunt tutorials.

On Github kahlil / grunt-tutorial-02-package-json

The Basics: package.json

by Kahlil / @distilledhype

Node Modules

Store package information

Store dependencies & devDependencies

Grunt

Make meta information available to Grunt

Store devDependencies

Do we really need it?

Highly recommended for teams

Grunt plugins

Generate It

  • grunt-init & Yeoman “Grunt-init is a scaffolding tool used to automate project creation.”
  • npm init “This will ask you a bunch of questions, and then write a package.json for you.”

Copy & Paste It

{
  "name": "my-project-name",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "~0.4.1",
    "grunt-contrib-jshint": "~0.6.3",
    "grunt-contrib-nodeunit": "~0.2.0",
    "grunt-contrib-uglify": "~0.2.2"
  }
}

Demo

Thanks ♥

@gruntjs

IRC: #grunt