Skip to content
Browse files

simplify template to just copy files

  • Loading branch information...
1 parent 823b910 commit d23c959168fe55bffaf8169686f1ac1e0e40bd0d davetayls committed Mar 8, 2013
Showing with 9 additions and 30 deletions.
  1. +9 −30 template.js
View
39 template.js
@@ -1,43 +1,22 @@
-/*jshint node:true */
-exports.description = "Pogo: generic scaffolding";
-exports.notes = "Generates scaffolding for a generic project";
+'use strict';
+exports.description = 'Project scaffolding and prototyping';
-exports.template = function(grunt, init, done) {
- "use strict";
-
- var _ = grunt.utils._;
-
- _.extend(grunt.helper("prompt_for_obj"), {
- css: {
- message: "Which CSS pre-processor do you want? [ sass, stylus, none ]",
- default: "sass"
- },
- responsive: {
- message: 'Is this site responsive?',
- default: 'yes'
- },
- templating: {
- message: 'What templating library do you want? [ mustache, none ]',
- default: 'mustache'
- }
- });
-
- grunt.helper("prompt", {}, [
+// Any existing file or directory matching this wildcard will cause a warning.
+exports.warnOn = '*';
- // grunt.helper("prompt_for", "css"),
- // grunt.helper("prompt_for", "responsive"),
- // grunt.helper("prompt_for", "templating")
+// The actual init template.
+exports.template = function(grunt, init, done) {
- ], function(err, props) {
+ init.process({}, [], function(err, props) {
// Files to copy (and process).
var files = init.filesToCopy(props);
// Actually copy (and process) files.
- init.copyAndProcess(files, props, {});
+ init.copyAndProcess(files, props);
// All done!
done();
});
-};
+};

0 comments on commit d23c959

Please sign in to comment.
Something went wrong with that request. Please try again.