Open nimbupani opened 12 years ago
This is an interesting feedback. It's probably tricky to get this done right, we can think of a special grunt init template for this (with a bunch of prompt to fill in the Gruntfile configuration)
Or just copy over a Gruntfile and a package.json with extensive inline comments.
we're hitting this issue on Yeoman too.
Divya do you think a somewhat generic app config file (in json/yaml) that is read by grunt/etc would make sense?
The most important thing is file paths, but then concatenation rules/destinations are also pretty configurable.
I dont think another config file would help. I do not think we need a thorough check. Just verify that the essential comments for splitting css/html files exist. If they do not, find the main.css file and script files and wrap them with these html comments.
Then add a package.json and a grunt.js file. I am not sure if any additional changes are required.
If any folder is missing, we should output what folders are missing but not throw an error.
I have an existing h5bp project I want to use node build script on. Right now the only way it is possible is to create a temporary new project and copy grunt.js and package.json back to the existing project.
We should have a way to do this by just copying over grunt.js and package.json (and perhaps have people fill in what is the css, img, js folder).