Created
February 20, 2012 23:50
-
-
Save boazsender/1872372 to your computer and use it in GitHub Desktop.
Command line and JavaScript examples for grunt blog post.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ([email protected]) | |
[?] 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". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grunt lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grunt qunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grunt watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grunt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g grunt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew update && brew install phantomjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ phantomjs --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grunt init:template-name # to scaffold a new project with a template | |
$ grunt task-name # to run grunt tasks inside of a project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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