Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cowboy/grunt-gruntfile-example
This is example output generated by the "grunt init:gruntfile" task.
https://github.com/cowboy/grunt-gruntfile-example
Last synced: 30 days ago
JSON representation
This is example output generated by the "grunt init:gruntfile" task.
- Host: GitHub
- URL: https://github.com/cowboy/grunt-gruntfile-example
- Owner: cowboy
- Created: 2012-03-27T00:27:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-07T13:01:57.000Z (over 12 years ago)
- Last Synced: 2024-10-14T14:18:44.170Z (2 months ago)
- Language: JavaScript
- Homepage: https://github.com/cowboy/grunt
- Size: 82 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grunt "init:gruntfile" example
This is example output generated by the "grunt init:gruntfile" 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][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:gruntfile" 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].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-gruntfile-example/tree/HEAD~1Note 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.```
$ mkdir grunt-gruntfile-example && cd grunt-gruntfile-example$ git init
git remote add origin [email protected]:cowboy/grunt-gruntfile-example.git
Initialized empty Git repository in /private/tmp/grunt-gruntfile-example/.git/$ git remote add origin [email protected]:cowboy/grunt-gruntfile-example.git
$ grunt init:gruntfile
Running "init:gruntfile" (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."gruntfile" template notes:
This template tries to guess file and directory paths, but you will most likely
need to edit the generated grunt.js file before running grunt. If you run grunt
after generating grunt.js, and grunt exits with errors, edit the grunt.js file!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)Writing grunt.js...OK
Initialized from template "gruntfile".
Done, without errors.
$ tree
.
└── grunt.js0 directories, 1 file
$ grunt
Loading "grunt.js" tasks and helpers...ERROR
>> TaskError: Unable to read "package.json" file (Error code: ENOENT).
Task "default" not found. Use --force to continue.Aborted due to warnings.
$ tree
.
└── grunt.js0 directories, 1 file
$ git add .
$ git commit -m 'Committing example "grunt init:gruntfile" task output.'
[master (root-commit) 09de36d] Committing example "grunt init:gruntfile" task output.
1 files changed, 58 insertions(+), 0 deletions(-)
create mode 100644 grunt.js```
## License
Copyright (c) 2012 "Cowboy" Ben Alman
Licensed under the MIT license.