npm init
name: (my-amazing-app) version: (1.0.0) license: (BSD) About to write to /home/user/my-amazing-app/package.json:
npm install -g grunt
grunt init:gruntfile
Please answer the following: [?] Is the DOM involved in ANY way? (Y/n) [?] Will files be concatenated or minified? (Y/n) [?] Will you have a package.json file? (Y/n) [?] Do you need to make any changes to the above before continuing? (y/N)
cut to demo
require(["my-handy-dep", "the-ultimate-dep"], function(dep1, dep2) { alert("I don't return anything, HA!"); }
define("mega-module", function() { return "I'm amazing, USE ME" }
define("module-with-depp", ["johnny"], function(JohnnyDepp) {
return "I need" + JohnnyDepp + " in my life"
}
to the command line...
Inspect the web