https://pantsbuild.org/ logo
w

wide-midnight-78598

01/27/2023, 6:25 PM
@ancient-vegetable-10556 Were you able to gist that NodeJS npm example?
a

ancient-vegetable-10556

01/27/2023, 6:26 PM
it may have bitrotted slightly since I wrote it, but this is the shape of what I have: https://github.com/chrisjrn/pantsbuild-example-python/blob/chrisjrn/js-demo/js_demo/BUILD
demos using
parcel
to make a minified
.js
file that includes local and 3rd-party imports
w

wide-midnight-78598

01/27/2023, 6:32 PM
Thanks!
Are we able to run something like a formatter over our existing code? Like, if we output over... ourselves?
a

ancient-vegetable-10556

01/27/2023, 6:33 PM
I think so, but there’s future work that could make that actually good
I don’t recommend it at the moment!
w

wide-midnight-78598

01/27/2023, 6:35 PM
Ah 🙂 I have a Swift repo that I want to format in a pre-commit hook. My swift plugin isn't ready for downloading and running deps
a

ancient-vegetable-10556

01/27/2023, 6:35 PM
I know what the solution should look like. I just need a week or two to actually work on it
w

wide-midnight-78598

01/27/2023, 6:36 PM
❤️
a

ancient-vegetable-10556

01/27/2023, 6:37 PM
it’s effectively blocked on figuring out what the design for stabilisation of
esc
/`eris` will be
w

wide-midnight-78598

01/27/2023, 6:39 PM
👍 Roger - I'm very excited to remove a bunch of kludge from this monorepo
a

ancient-vegetable-10556

01/27/2023, 6:42 PM
It’ll be good to be able to enable that 🙂
4 Views