What’s the latest and greatest for JavaScript supp...
# general
p
What’s the latest and greatest for JavaScript support? I’m enabling experimental js backend, tailor is doing some stuff… but nothing with package json files just making a JavaScript_sources target. Any place I can look for current how to?
Gentle poke for more 👀
👍 1
b
It's still very very "experimental". https://github.com/pantsbuild/pants/blob/main/src/python/pants/notes/2.17.x.md#new-javascript-experimental plus the code itself (https://github.com/pantsbuild/pants/tree/main/src/python/pants/backend/javascript) are where to start finding more info about what's what... which isn't a great experience 🙂
p
Indeed. The old JavaScript example repo doesn’t match either. I poked around the backend, but didn’t learn much to be honest. Can I teach pants about the package.json?
b
`tailor`: Generates build file targets for
*.js
,
*.test.js
and
package.json
files.
Suggests that pants should know about it
Ah, question, though:
tailor
will only add new targets for files that aren't owned by another target. Do you have `file`/`files`/`resources` targets that refer to the
package.json
files?