Created
March 23, 2012 20:06
-
-
Save cowboy/2174440 to your computer and use it in GitHub Desktop.
Expect: the best thing EVER
This file contains hidden or 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
| [master][cowboy@CowBook:/Volumes/Data/Dropbox/Projects/Repos/cowboy/grunt] | |
| [16:05:20] $ ./dev/init.exp | |
| spawn bash --noprofile --norc | |
| bash-3.2$ PS1=' | |
| > $ ' | |
| cd /tmp | |
| $ cd /tmp | |
| rm -rf /tmp/grunt-jquery-example | |
| $ rm -rf /tmp/grunt-jquery-example | |
| $ mkdir grunt-jquery-example && cd grunt-jquery-example | |
| $ git init | |
| Initialized empty Git repository in /private/tmp/grunt-jquery-example/.git/ | |
| $ git remote add origin git@github.com:cowboy/grunt-jquery-example.git | |
| $ grunt init:jquery --no-color | |
| Running "init:jquery" (init) task | |
| Please answer the following: | |
| [?] Project name (grunt-jquery-example) | |
| [?] Project title (Grunt jQuery Example) | |
| [?] Description (The best jQuery plugin ever.) This is example output generated by the "grunt init:jquery" task. | |
| [?] Version (0.1.0) | |
| [?] Project git repository (git://github.com/cowboy/grunt-jquery-example.git) | |
| [?] Project homepage (https://github.com/cowboy/grunt-jquery-example) | |
| [?] Project issues tracker (https://github.com/cowboy/grunt-jquery-example/issues) | |
| [?] Licenses (MIT) | |
| [?] Author name (Ben Alman) | |
| [?] Author email (cowboy@rj3.net) | |
| [?] Author url (none) | |
| [?] Are these answers correct? (Y/n) | |
| Writing grunt.js...OK | |
| Writing libs/jquery/jquery.js...OK | |
| Writing libs/qunit/qunit.css...OK | |
| Writing libs/qunit/qunit.js...OK | |
| Writing README.md...OK | |
| Writing src/grunt-jquery-example.js...OK | |
| Writing test/grunt-jquery-example.html...OK | |
| Writing test/grunt-jquery-example_test.js...OK | |
| Writing LICENSE-MIT...OK | |
| Initialized from template "jquery". | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── grunt.js | |
| ├── libs | |
| │ ├── jquery | |
| │ │ └── jquery.js | |
| │ └── qunit | |
| │ ├── qunit.css | |
| │ └── qunit.js | |
| ├── package.json | |
| ├── src | |
| │ └── grunt-jquery-example.js | |
| └── test | |
| ├── grunt-jquery-example.html | |
| └── grunt-jquery-example_test.js | |
| 5 directories, 10 files | |
| $ grunt --no-color | |
| Running "lint:files" (lint) task | |
| Lint free. | |
| Running "qunit:files" (qunit) task | |
| Testing grunt-jquery-example.html....OK | |
| >> 4 assertions passed (29ms) | |
| Running "concat:dist" (concat) task | |
| File "dist/grunt-jquery-example.js" created. | |
| Running "min:dist" (min) task | |
| File "dist/grunt-jquery-example.min.js" created. | |
| Uncompressed size: 502 bytes. | |
| Compressed size: 253 bytes gzipped (358 bytes minified). | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── dist | |
| │ ├── grunt-jquery-example.js | |
| │ └── grunt-jquery-example.min.js | |
| ├── grunt.js | |
| ├── libs | |
| │ ├── jquery | |
| │ │ └── jquery.js | |
| │ └── qunit | |
| │ ├── qunit.css | |
| │ └── qunit.js | |
| ├── package.json | |
| ├── src | |
| │ └── grunt-jquery-example.js | |
| └── test | |
| ├── grunt-jquery-example.html | |
| └── grunt-jquery-example_test.js | |
| 6 directories, 12 files | |
| $ git add . | |
| $ git commit -m 'Committing example "grunt init:jquery" task output.' | |
| [master (root-commit) 9e491bd] Committing example "grunt init:jquery" task output. | |
| 12 files changed, 11427 insertions(+), 0 deletions(-) | |
| create mode 100644 LICENSE-MIT | |
| create mode 100644 README.md | |
| create mode 100644 dist/grunt-jquery-example.js | |
| create mode 100644 dist/grunt-jquery-example.min.js | |
| create mode 100644 grunt.js | |
| create mode 100644 libs/jquery/jquery.js | |
| create mode 100644 libs/qunit/qunit.css | |
| create mode 100644 libs/qunit/qunit.js | |
| create mode 100644 package.json | |
| create mode 100644 src/grunt-jquery-example.js | |
| create mode 100644 test/grunt-jquery-example.html | |
| create mode 100644 test/grunt-jquery-example_test.js | |
| $ git push -uf origin master | |
| Counting objects: 20, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (19/19), done. | |
| Writing objects: 100% (20/20), 89.37 KiB, done. | |
| Total 20 (delta 1), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-jquery-example.git | |
| + 9486b84...9e491bd master -> master (forced update) | |
| Branch master set up to track remote branch master from origin. | |
| $ # EOF | |
| $ echo -e '# Grunt "init:jquery" example | |
| > | |
| > This is example output generated by the "grunt init:jquery" task. | |
| > | |
| > _Note: this repository was generated dynamically using grunt v0.3.0. Instead of | |
| > reporting issues here, please report any issues with this repository as | |
| > [grunt issues][issues]. Instead of watching or forking this repository, | |
| > watch [grunt][grunt] and use the grunt [init task][init]._ | |
| > | |
| > ## Project Creation Transcript | |
| > The following is a transcript of the session in which this project and | |
| > repository were created. This is not actually a part of the [grunt][grunt] | |
| > "init:jquery" template, this session transcript was added afterwards. The | |
| > text after the `$` are the commands that were executed, and everything else is | |
| > program output. If you want to see the repository exactly as it was created by | |
| > grunt, view [the previous commit][prev].' > README.md | |
| $ echo -e ' | |
| > Want to learn more? Check [grunt][grunt] out. | |
| > | |
| > [grunt]: https://github.com/cowboy/grunt | |
| > [issues]: https://github.com/cowboy/grunt/issues | |
| > [init]: https://github.com/cowboy/grunt/blob/master/docs/task_init.md | |
| > [expect]: https://github.com/cowboy/grunt/blob/master/dev/init.exp | |
| > [prev]: https://github.com/cowboy/grunt-jquery-example/tree/HEAD~1 | |
| > | |
| > Note that this entire build process is automated by a rather complex [expect | |
| > script][expect], which is used to automate grunt in order to facilitate the | |
| > creation of this and other [init task][init] example repositories. | |
| > | |
| > ```' >> README.md | |
| $ cat /tmp/grunt-expect-out | perl -ne's/ --no-color//;if(/^\$ mkdir/){$x=1}elsif(/^\$ # EOF/){$x=0}$x&&print$_' >> README.md | |
| $ echo -e '``` | |
| ## License | |
| Copyright (c) 2012 "Cowboy" Ben Alman | |
| Licensed under the MIT license.' >> README.md | |
| git add . | |
| git commit -m 'Adding project creation transcript.' | |
| > | |
| > ## License | |
| > Copyright (c) 2012 "Cowboy" Ben Alman | |
| > Licensed under the MIT license.' >> README.md | |
| $ git add . | |
| $ git commit -m 'Adding project creation transcript.' | |
| [master 1b1280f] Adding project creation transcript. | |
| 1 files changed, 162 insertions(+), 39 deletions(-) | |
| rewrite README.md (88%) | |
| $ git push -uf origin master | |
| Counting objects: 5, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (3/3), done. | |
| Writing objects: 100% (3/3), 2.18 KiB, done. | |
| Total 3 (delta 1), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-jquery-example.git | |
| 9e491bd..1b1280f master -> master | |
| Branch master set up to track remote branch master from origin. | |
| $ exit | |
| exit | |
| spawn bash --noprofile --norc | |
| bash-3.2$ PS1=' | |
| > $ ' | |
| cd /tmp | |
| $ cd /tmp | |
| rm -rf /tmp/grunt-commonjs-example | |
| $ rm -rf /tmp/grunt-commonjs-example | |
| $ mkdir grunt-commonjs-example && cd grunt-commonjs-example | |
| $ git init | |
| git remote add origin git@github.com:cowboy/grunt-commonjs-example.git | |
| Initialized empty Git repository in /private/tmp/grunt-commonjs-example/.git/ | |
| $ git remote add origin git@github.com:cowboy/grunt-commonjs-example.git | |
| $ grunt init:commonjs --no-color | |
| Running "init:commonjs" (init) task | |
| Please answer the following: | |
| [?] Project name (grunt-commonjs-example) | |
| [?] Description (The best project ever.) This is example output generated by the "grunt init:commonjs" task. | |
| [?] Version (0.1.0) | |
| [?] Project git repository (git://github.com/cowboy/grunt-commonjs-example.git) | |
| [?] Project homepage (https://github.com/cowboy/grunt-commonjs-example) | |
| [?] Project issues tracker (https://github.com/cowboy/grunt-commonjs-example/issues) | |
| [?] Licenses (MIT) | |
| [?] Author name (Ben Alman) | |
| [?] Author email (cowboy@rj3.net) | |
| [?] Author url (none) | |
| [?] What versions of node does it run on? (>= 0.6.9) * | |
| [?] Main module/entry point (lib/grunt-commonjs-example) | |
| [?] Test command (grunt test) | |
| [?] Are these answers correct? (Y/n) | |
| Writing grunt.js...OK | |
| Writing lib/grunt-commonjs-example.js...OK | |
| Writing README.md...OK | |
| Writing test/grunt-commonjs-example_test.js...OK | |
| Writing LICENSE-MIT...OK | |
| Initialized from template "commonjs". | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── grunt.js | |
| ├── lib | |
| │ └── grunt-commonjs-example.js | |
| ├── package.json | |
| └── test | |
| └── grunt-commonjs-example_test.js | |
| 2 directories, 6 files | |
| $ grunt --no-color | |
| Running "lint:files" (lint) task | |
| Lint free. | |
| Running "test:files" (test) task | |
| Testing grunt-commonjs-example_test.js.OK | |
| >> 1 assertions passed (1ms) | |
| Running "concat:dist" (concat) task | |
| File "dist/grunt-commonjs-example.js" created. | |
| Running "min:dist" (min) task | |
| File "dist/grunt-commonjs-example.min.js" created. | |
| Uncompressed size: 283 bytes. | |
| Compressed size: 199 bytes gzipped (240 bytes minified). | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── dist | |
| │ ├── grunt-commonjs-example.js | |
| │ └── grunt-commonjs-example.min.js | |
| ├── grunt.js | |
| ├── lib | |
| │ └── grunt-commonjs-example.js | |
| ├── package.json | |
| └── test | |
| └── grunt-commonjs-example_test.js | |
| 3 directories, 8 files | |
| $ git add . | |
| $ git commit -m 'Committing example "grunt init:commonjs" task output.' | |
| [master (root-commit) 8b0a8f4] Committing example "grunt init:commonjs" task output. | |
| 8 files changed, 219 insertions(+), 0 deletions(-) | |
| create mode 100644 LICENSE-MIT | |
| create mode 100644 README.md | |
| create mode 100644 dist/grunt-commonjs-example.js | |
| create mode 100644 dist/grunt-commonjs-example.min.js | |
| create mode 100644 grunt.js | |
| create mode 100644 lib/grunt-commonjs-example.js | |
| create mode 100644 package.json | |
| create mode 100644 test/grunt-commonjs-example_test.js | |
| $ git push -uf origin master | |
| Counting objects: 13, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (13/13), done. | |
| Writing objects: 100% (13/13), 3.65 KiB, done. | |
| Total 13 (delta 0), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-commonjs-example.git | |
| + db40505...8b0a8f4 master -> master (forced update) | |
| Branch master set up to track remote branch master from origin. | |
| $ # EOF | |
| $ echo -e '# Grunt "init:commonjs" example | |
| > | |
| > This is example output generated by the "grunt init:commonjs" task. | |
| > | |
| > _Note: this repository was generated dynamically using grunt v0.3.0. Instead of | |
| > reporting issues here, please report any issues with this repository as | |
| > [grunt issues][issues]. Instead of watching or forking this repository, | |
| > watch [grunt][grunt] and use the grunt [init task][init]._ | |
| > | |
| > ## Project Creation Transcript | |
| > The following is a transcript of the session in which this project and | |
| > repository were created. This is not actually a part of the [grunt][grunt] | |
| > "init:commonjs" template, this session transcript was added afterwards. The | |
| > text after the `$` are the commands that were executed, and everything else is | |
| > program output. If you want to see the repository exactly as it was created by | |
| > grunt, view [the previous commit][prev].' > README.md | |
| $ echo -e ' | |
| > Want to learn more? Check [grunt][grunt] out. | |
| > | |
| > [grunt]: https://github.com/cowboy/grunt | |
| > [issues]: https://github.com/cowboy/grunt/issues | |
| > [init]: https://github.com/cowboy/grunt/blob/master/docs/task_init.md | |
| > [expect]: https://github.com/cowboy/grunt/blob/master/dev/init.exp | |
| > [prev]: https://github.com/cowboy/grunt-commonjs-example/tree/HEAD~1 | |
| > | |
| > Note that this entire build process is automated by a rather complex [expect | |
| > script][expect], which is used to automate grunt in order to facilitate the | |
| > creation of this and other [init task][init] example repositories. | |
| > | |
| > ```' >> README.md | |
| $ cat /tmp/grunt-expect-out | perl -ne's/ --no-color//;if(/^\$ mkdir/){$x=1}elsif(/^\$ # EOF/){$x=0}$x&&print$_' >> README.md | |
| $ echo -e '``` | |
| ## License | |
| Copyright (c) 2012 "Cowboy" Ben Alman | |
| Licensed under the MIT license.' >> README.md | |
| git add . | |
| git commit -m 'Adding project creation transcript.' | |
| > | |
| > ## License | |
| > Copyright (c) 2012 "Cowboy" Ben Alman | |
| > Licensed under the MIT license.' >> README.md | |
| $ git add . | |
| $ git commit -m 'Adding project creation transcript.' | |
| [master c4be45c] Adding project creation transcript. | |
| 1 files changed, 143 insertions(+), 57 deletions(-) | |
| rewrite README.md (91%) | |
| $ git push -uf origin master | |
| Counting objects: 5, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (3/3), done. | |
| Writing objects: 100% (3/3), 2.07 KiB, done. | |
| Total 3 (delta 1), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-commonjs-example.git | |
| 8b0a8f4..c4be45c master -> master | |
| Branch master set up to track remote branch master from origin. | |
| $ exit | |
| exit | |
| spawn bash --noprofile --norc | |
| bash-3.2$ PS1=' | |
| > $ ' | |
| cd /tmp | |
| $ cd /tmp | |
| rm -rf /tmp/grunt-node-example | |
| $ rm -rf /tmp/grunt-node-example | |
| $ mkdir grunt-node-example && cd grunt-node-example | |
| $ git init | |
| git remote add origin git@github.com:cowboy/grunt-node-example.git | |
| Initialized empty Git repository in /private/tmp/grunt-node-example/.git/ | |
| $ git remote add origin git@github.com:cowboy/grunt-node-example.git | |
| $ grunt init:node --no-color | |
| Running "init:node" (init) task | |
| Please answer the following: | |
| [?] Project name (grunt-node-example) | |
| [?] Description (The best project ever.) This is example output generated by the "grunt init:node" task. | |
| [?] Version (0.1.0) | |
| [?] Project git repository (git://github.com/cowboy/grunt-node-example.git) | |
| [?] Project homepage (https://github.com/cowboy/grunt-node-example) | |
| [?] Project issues tracker (https://github.com/cowboy/grunt-node-example/issues) | |
| [?] Licenses (MIT) | |
| [?] Author name (Ben Alman) | |
| [?] Author email (cowboy@rj3.net) | |
| [?] Author url (none) | |
| [?] What versions of node does it run on? (>= 0.6.9) * | |
| [?] Main module/entry point (lib/grunt-node-example) | |
| [?] Test command (grunt test) | |
| [?] Are these answers correct? (Y/n) | |
| Writing grunt.js...OK | |
| Writing lib/grunt-node-example.js...OK | |
| Writing README.md...OK | |
| Writing test/grunt-node-example_test.js...OK | |
| Writing LICENSE-MIT...OK | |
| Initialized from template "node". | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── grunt.js | |
| ├── lib | |
| │ └── grunt-node-example.js | |
| ├── package.json | |
| └── test | |
| └── grunt-node-example_test.js | |
| 2 directories, 6 files | |
| $ grunt --no-color | |
| Running "lint:files" (lint) task | |
| Lint free. | |
| Running "test:files" (test) task | |
| Testing grunt-node-example_test.js.OK | |
| >> 1 assertions passed (1ms) | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── grunt.js | |
| ├── lib | |
| │ └── grunt-node-example.js | |
| ├── package.json | |
| └── test | |
| └── grunt-node-example_test.js | |
| 2 directories, 6 files | |
| $ git add . | |
| $ git commit -m 'Committing example "grunt init:node" task output.' | |
| [master (root-commit) b946f66] Committing example "grunt init:node" task output. | |
| 6 files changed, 149 insertions(+), 0 deletions(-) | |
| create mode 100644 LICENSE-MIT | |
| create mode 100644 README.md | |
| create mode 100644 grunt.js | |
| create mode 100644 lib/grunt-node-example.js | |
| create mode 100644 package.json | |
| create mode 100644 test/grunt-node-example_test.js | |
| $ git push -uf origin master | |
| Counting objects: 10, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (9/9), done. | |
| Writing objects: 100% (10/10), 2.53 KiB, done. | |
| Total 10 (delta 0), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-node-example.git | |
| + 5dc51c9...b946f66 master -> master (forced update) | |
| Branch master set up to track remote branch master from origin. | |
| $ # EOF | |
| $ echo -e '# Grunt "init:node" example | |
| > | |
| > This is example output generated by the "grunt init:node" task. | |
| > | |
| > _Note: this repository was generated dynamically using grunt v0.3.0. Instead of | |
| > reporting issues here, please report any issues with this repository as | |
| > [grunt issues][issues]. Instead of watching or forking this repository, | |
| > watch [grunt][grunt] and use the grunt [init task][init]._ | |
| > | |
| > ## Project Creation Transcript | |
| > The following is a transcript of the session in which this project and | |
| > repository were created. This is not actually a part of the [grunt][grunt] | |
| > "init:node" template, this session transcript was added afterwards. The | |
| > text after the `$` are the commands that were executed, and everything else is | |
| > program output. If you want to see the repository exactly as it was created by | |
| > grunt, view [the previous commit][prev].' > README.md | |
| $ echo -e ' | |
| > Want to learn more? Check [grunt][grunt] out. | |
| > | |
| > [grunt]: https://github.com/cowboy/grunt | |
| > [issues]: https://github.com/cowboy/grunt/issues | |
| > [init]: https://github.com/cowboy/grunt/blob/master/docs/task_init.md | |
| > [expect]: https://github.com/cowboy/grunt/blob/master/dev/init.exp | |
| > [prev]: https://github.com/cowboy/grunt-node-example/tree/HEAD~1 | |
| > | |
| > Note that this entire build process is automated by a rather complex [expect | |
| > script][expect], which is used to automate grunt in order to facilitate the | |
| > creation of this and other [init task][init] example repositories. | |
| > | |
| > ```' >> README.md | |
| $ cat /tmp/grunt-expect-out | perl -ne's/ --no-color//;if(/^\$ mkdir/){$x=1}elsif(/^\$ # EOF/){$x=0}$x&&print$_' >> README.md | |
| $ echo -e '``` | |
| ## License | |
| Copyright (c) 2012 "Cowboy" Ben Alman | |
| Licensed under the MIT license.' >> README.md | |
| git add . | |
| git commit -m 'Adding project creation transcript.' | |
| > | |
| > ## License | |
| > Copyright (c) 2012 "Cowboy" Ben Alman | |
| > Licensed under the MIT license.' >> README.md | |
| $ git add . | |
| $ git commit -m 'Adding project creation transcript.' | |
| [master 6a0a625] Adding project creation transcript. | |
| 1 files changed, 130 insertions(+), 27 deletions(-) | |
| rewrite README.md (82%) | |
| $ git push -uf origin master | |
| Counting objects: 5, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (3/3), done. | |
| Writing objects: 100% (3/3), 1.93 KiB, done. | |
| Total 3 (delta 1), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-node-example.git | |
| b946f66..6a0a625 master -> master | |
| Branch master set up to track remote branch master from origin. | |
| $ exit | |
| exit | |
| spawn bash --noprofile --norc | |
| bash-3.2$ PS1=' | |
| > $ ' | |
| cd /tmp | |
| $ cd /tmp | |
| $ rm -rf /tmp/grunt-gruntplugin-example | |
| $ mkdir grunt-gruntplugin-example && cd grunt-gruntplugin-example | |
| $ git init | |
| git remote add origin git@github.com:cowboy/grunt-gruntplugin-example.git | |
| Initialized empty Git repository in /private/tmp/grunt-gruntplugin-example/.git/ | |
| $ git remote add origin git@github.com:cowboy/grunt-gruntplugin-example.git | |
| $ grunt init:gruntplugin --no-color | |
| Running "init:gruntplugin" (init) task | |
| Please answer the following: | |
| [?] Project name (grunt-gruntplugin-example) | |
| [?] Description (The best sample grunt tasks ever.) This is example output generated by the "grunt init:gruntplugin" task. | |
| [?] Version (0.1.0) | |
| [?] Project git repository (git://github.com/cowboy/grunt-gruntplugin-example.git) | |
| [?] Project homepage (https://github.com/cowboy/grunt-gruntplugin-example) | |
| [?] Project issues tracker (https://github.com/cowboy/grunt-gruntplugin-example/issues) | |
| [?] Licenses (MIT) | |
| [?] Author name (Ben Alman) | |
| [?] Author email (cowboy@rj3.net) | |
| [?] Author url (none) | |
| [?] What versions of grunt does it require? (~0.3.0) | |
| [?] What versions of node does it run on? (*) * | |
| [?] Are these answers correct? (Y/n) | |
| Writing bin/grunt-gruntplugin-example...OK | |
| Writing grunt.js...OK | |
| Writing README.md...OK | |
| Writing tasks/gruntplugin-example.js...OK | |
| Writing test/gruntplugin-example_test.js...OK | |
| Writing LICENSE-MIT...OK | |
| Initialized from template "gruntplugin". | |
| Done, without errors. | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── bin | |
| │ └── grunt-gruntplugin-example | |
| ├── grunt.js | |
| ├── package.json | |
| ├── tasks | |
| │ └── gruntplugin-example.js | |
| └── test | |
| └── gruntplugin-example_test.js | |
| 3 directories, 7 files | |
| $ grunt --no-color | |
| Running "lint:files" (lint) task | |
| Lint free. | |
| Running "test:files" (test) task | |
| module.js:313 | |
| throw err; | |
| ^ | |
| Error: Cannot find module 'grunt' | |
| at Function._resolveFilename (module.js:334:11) | |
| at Function._load (module.js:279:25) | |
| at Module.require (module.js:357:17) | |
| at require (module.js:373:17) | |
| at Object.<anonymous> (/private/tmp/grunt-gruntplugin-example/test/gruntplugin-example_test.js:1:75) | |
| at Module._compile (module.js:444:26) | |
| at Object..js (module.js:462:10) | |
| at Module.load (module.js:351:31) | |
| at Function._load (module.js:310:12) | |
| at Module.require (module.js:357:17) | |
| $ tree | |
| . | |
| ├── LICENSE-MIT | |
| ├── README.md | |
| ├── bin | |
| │ └── grunt-gruntplugin-example | |
| ├── grunt.js | |
| ├── package.json | |
| ├── tasks | |
| │ └── gruntplugin-example.js | |
| └── test | |
| └── gruntplugin-example_test.js | |
| 3 directories, 7 files | |
| $ git add . | |
| $ git commit -m 'Committing example "grunt init:gruntplugin" task output.' | |
| [master (root-commit) 5456da7] Committing example "grunt init:gruntplugin" task output. | |
| 7 files changed, 192 insertions(+), 0 deletions(-) | |
| create mode 100644 LICENSE-MIT | |
| create mode 100644 README.md | |
| create mode 100644 bin/grunt-gruntplugin-example | |
| create mode 100644 grunt.js | |
| create mode 100644 package.json | |
| create mode 100644 tasks/gruntplugin-example.js | |
| create mode 100644 test/gruntplugin-example_test.js | |
| $ git push -uf origin master | |
| Counting objects: 12, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (12/12), done. | |
| Writing objects: 100% (12/12), 3.21 KiB, done. | |
| Total 12 (delta 0), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-gruntplugin-example.git | |
| + 7549735...5456da7 master -> master (forced update) | |
| Branch master set up to track remote branch master from origin. | |
| $ # EOF | |
| $ echo -e '# Grunt "init:gruntplugin" example | |
| > | |
| > This is example output generated by the "grunt init:gruntplugin" task. | |
| > | |
| > _Note: this repository was generated dynamically using grunt v0.3.0. Instead of | |
| > reporting issues here, please report any issues with this repository as | |
| > [grunt issues][issues]. Instead of watching or forking this repository, | |
| > watch [grunt][grunt] and use the grunt [init task][init]._ | |
| > | |
| > ## Project Creation Transcript | |
| > The following is a transcript of the session in which this project and | |
| > repository were created. This is not actually a part of the [grunt][grunt] | |
| > "init:gruntplugin" template, this session transcript was added afterwards. The | |
| > text after the `$` are the commands that were executed, and everything else is | |
| > program output. If you want to see the repository exactly as it was created by | |
| > grunt, view [the previous commit][prev].' > README.md | |
| $ echo -e ' | |
| > Want to learn more? Check [grunt][grunt] out. | |
| > | |
| > [grunt]: https://github.com/cowboy/grunt | |
| > [issues]: https://github.com/cowboy/grunt/issues | |
| > [init]: https://github.com/cowboy/grunt/blob/master/docs/task_init.md | |
| > [expect]: https://github.com/cowboy/grunt/blob/master/dev/init.exp | |
| > [prev]: https://github.com/cowboy/grunt-gruntplugin-example/tree/HEAD~1 | |
| > | |
| > Note that this entire build process is automated by a rather complex [expect | |
| > script][expect], which is used to automate grunt in order to facilitate the | |
| > creation of this and other [init task][init] example repositories. | |
| > | |
| > ```' >> README.md | |
| $ cat /tmp/grunt-expect-out | perl -ne's/ --no-color//;if(/^\$ mkdir/){$x=1}elsif(/^\$ # EOF/){$x=0}$x&&print$_' >> README.md | |
| $ echo -e '``` | |
| ## License | |
| Copyright (c) 2012 "Cowboy" Ben Alman | |
| Licensed under the MIT license.' >> README.md | |
| git add . | |
| git commit -m 'Adding project creation transcript.' | |
| > | |
| > ## License | |
| > Copyright (c) 2012 "Cowboy" Ben Alman | |
| > Licensed under the MIT license.' >> README.md | |
| $ git add . | |
| $ git commit -m 'Adding project creation transcript.' | |
| [master 97f1a9a] Adding project creation transcript. | |
| 1 files changed, 146 insertions(+), 25 deletions(-) | |
| rewrite README.md (81%) | |
| $ git push -uf origin master | |
| Counting objects: 5, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (3/3), done. | |
| Writing objects: 100% (3/3), 2.10 KiB, done. | |
| Total 3 (delta 1), reused 0 (delta 0) | |
| To git@github.com:cowboy/grunt-gruntplugin-example.git | |
| 5456da7..97f1a9a master -> master | |
| Branch master set up to track remote branch master from origin. | |
| $ exit | |
| exit | |
| [master][cowboy@CowBook:/Volumes/Data/Dropbox/Projects/Repos/cowboy/grunt] | |
| [16:05:45] $ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a link to the expect script.