Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is example output generated by the "grunt init:gruntplugin" task.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
tasks
test
.gitignore
LICENSE-MIT
README.md
grunt.js
package.json

README.md

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.8. Instead of reporting issues here, please report any issues with this repository as grunt issues. Instead of watching or forking this repository, watch grunt and use the grunt init task.

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 "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.

Want to learn more? Check grunt out.

Note that this entire build process is automated by a rather complex expect script, which is used to automate grunt in order to facilitate the creation of this and other init task example repositories.

$ 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
Running "init:gruntplugin" (init) task
This task will create one or more files in the current directory, based on the
environment and the answers to a few questions. Note that answering "?" to any
question will show question-specific help and answering "none" to most questions
will leave its value blank.

"gruntplugin" template notes:
The grunt plugin system is still under development. For more information, see
the docs at https://github.com/cowboy/grunt/blob/master/docs/plugins.md

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 ("Cowboy" Ben Alman) 
[?] Author email (none) 
[?] Author url (http://benalman.com/) 
[?] What versions of grunt does it require? (~0.3.8) 
[?] What versions of node does it run on? (*) 
[?] Do you need to make any changes to the above before continuing? (y/N) 

Writing .DS_Store...OK
Writing .gitignore...OK
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
Running "lint:files" (lint) task
Lint free.

Running "test:files" (test) task

module.js:311
    throw err;
          ^
Error: Cannot find module 'grunt'
    at Function._resolveFilename (module.js:332:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/private/tmp/grunt-gruntplugin-example/test/gruntplugin-example_test.js:1:75)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354: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) 53b00d2] Committing example "grunt init:gruntplugin" task output.
 8 files changed, 197 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 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

License

Copyright (c) 2012 "Cowboy" Ben Alman
Licensed under the MIT license.

Something went wrong with that request. Please try again.