Skip to content

Instantly share code, notes, and snippets.

@boazsender
Created February 20, 2012 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boazsender/1872372 to your computer and use it in GitHub Desktop.
Save boazsender/1872372 to your computer and use it in GitHub Desktop.
Command line and JavaScript examples for grunt blog post.
Please answer the following:
[?] Project name (Awesome)
[?] Project title (Awesome)
[?] Description (The best jQuery plugin ever.)
[?] Version (0.1.0)
[?] Project git repository (git://github.com/boazsender/Awesome.git)
[?] Project homepage (https://github.com/boazsender/Awesome)
[?] Project issues tracker (https://github.com/boazsender/Awesome/issues)
[?] Licenses (MIT)
[?] Author name (Boaz Sender)
[?] Author email (boaz@bocoup.com)
[?] Author url (none)
[?] Are these answers correct? (Y/n)
Writing grunt.js...OK
Writing README.md...OK
Writing src/Awesome.js...OK
Writing test/Awesome_test.js...OK
Writing test/Awesome.html...OK
Writing libs/jquery/jquery.js...OK
Writing libs/qunit/qunit.js...OK
Writing libs/qunit/qunit.css...OK
Writing LICENSE-MIT...OK
Initialized from template "jquery".
$ npm install -g grunt
$ brew update && brew install phantomjs
$ phantomjs --version
$ grunt init:template-name # to scaffold a new project with a template
$ grunt task-name # to run grunt tasks inside of a project
$ mkdir jQuery.Awesome && cd jQuery.Awesome && grunt init:jquery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment