-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow output to be formatted #11
Comments
@bebraw interesting. That could quite easily be realized as a separate gulp plugin, if it doesn't exist already :) |
Looks like there are two primary options for JS: gulp-esformatter and gulp-jsbeautifier. Maybe we can pick one of those and integrate it to the narrative? It should ask "Do you want to use a JS beautifier?" in case CoffeeScript path wasn't chosen. In addition if the user answers yes, it should ask at least for indentation. Other options can be tweaked by hand if needed. How does that sound? |
Sounds like a good idea I think! |
Here's a little something you can try, https://github.com/bebraw/slush-angular/tree/formatting . Note that we should perform formatting only on JS/CSS/HTML. It just concats the data for other formats for some reason. Any idea what's a nice way to achieve this sort of thing? |
I'm one of those peeps that likes to use four spaces instead of two. Maybe it would make sense to provide some sort of hook that would make it possible to reformat the code easily after generation? That would save up some time.
The text was updated successfully, but these errors were encountered: