Skip to content
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

Open
bebraw opened this issue May 21, 2014 · 4 comments
Open

Allow output to be formatted #11

bebraw opened this issue May 21, 2014 · 4 comments

Comments

@bebraw
Copy link
Contributor

bebraw commented May 21, 2014

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.

@joakimbeng
Copy link
Member

@bebraw interesting. That could quite easily be realized as a separate gulp plugin, if it doesn't exist already :)

@bebraw
Copy link
Contributor Author

bebraw commented Jun 3, 2014

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?

@joakimbeng
Copy link
Member

Sounds like a good idea I think!

@bebraw
Copy link
Contributor Author

bebraw commented Jun 3, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants