millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

split utils into a separate lib #93

Closed millermedeiros closed 10 years ago

millermedeiros commented 10 years ago

since they might be useful for plugins and other tools that manipulate the AST.

millermedeiros commented 10 years ago

the main problem is that some utilities only makes sense on esformatter context since they keep an internal config state (things like aroundIfNeeded, beforeIfNeeded, ...) not sure how useful would be to extract just the other methods. our internal structure probably wouldn't change that much.... setting it as a low priority for now.

jzaefferer commented 10 years ago

I wouldn't bother until there's a clear use case, that is, someone requesting a split.

millermedeiros commented 10 years ago

started to split the helpers into separate packages, see: https://github.com/millermedeiros/rocambole-token - since some methods are also required by esindent

millermedeiros commented 10 years ago

also created https://github.com/millermedeiros/rocambole-node