News for hackers. Stuff that matters.
Re:Rome: An experimental JavaScript toolchain by gear54rus on Monday April 13, 2020 @12:28PM (#22857245)
It's not intuitive to me as a JS dev too... Are you guys gonna re-implement typescript for example? Where does 'no deps' line get drawn?
Re:Rome: An experimental JavaScript toolchain by koboll on Monday April 13, 2020 @12:52PM (#22857503)
"No dependencies" isn't quite accurate. There are a couple, and they are TypeScript and related packages: https://github.com/facebookexperimental/rome/tree/master/nod...

But everything else is on track to be reimplemented within Rome.

Re:Rome: An experimental JavaScript toolchain by coolwhit on Monday April 13, 2020 @01:52PM (#22858123)
Note that the TypeScript dependency is not used at runtime. It's only used to type check the Rome source code.

Source https://news.ycombinator.com/item?id=22431169

Re:Rome: An experimental JavaScript toolchain by kkio on Monday April 13, 2020 @12:34PM (#22857298)
Echoing this sentiment. I think there's value in consolidating parts of the JS toolchain as there's a lot of variability there with how you can adjust your build system and pick your flavor of the week linter/formatter/bundler/etc. I'm not sure how 'no deps' is a a feature though, aside from (potentially) less packages to download during development.
Re:Rome: An experimental JavaScript toolchain by kevmo314 on Monday April 13, 2020 @12:38PM (#22857348)
Same, I don't mind having an alternative to webpack, but competing against prettier is going to be an uphill battle.
Re:Rome: An experimental JavaScript toolchain by ratww on Monday April 13, 2020 @02:38PM (#22858600)
I don't know. The whole point of using Prettier is that you're delegating your style choices to someone else.

And there were already some (very small) breaking changes between Prettier v1 and v2.

Changing from Prettier to something else doesn't sound like that big of a change, as long as Rome's formatter is not too ugly or changes are too drastic.

Re:Rome: An experimental JavaScript toolchain by kevmo314 on Monday April 13, 2020 @05:25PM (#22860210)
It's more of a network effect though that keeps me using prettier. These days I end up using prettier in codebases so my code looks like everyone else's, not just so it's self-consistent. It just makes it easier to read.

You're right though if Rome has a formatter that looks nice I suppose I wouldn't care, but at that point it's sort of like why not just use prettier?

Re:Rome: An experimental JavaScript toolchain by ratww on Tuesday April 14, 2020 @03:51AM (#22863606)
> You're right though if Rome has a formatter that looks nice I suppose I wouldn't care

Well, then I guess it wouldn't be an "uphill battle" :)