wide-midnight-78598
10/26/2022, 5:23 PMwebpack
, vite
, esbuild
(yay Go), swc
(yay Rust), etc (to which I'm a giant 👎 ) - or,
B) would it be to use those as plugins and facilitate their usage in a consistent matter, and maybe throw some dep inference + caching in for good measure, or
C) Alternative/middleground
prettier
is currently a plugin, eslint
should be added in (and can be added in, if not already there) - so we've started on the fmt
and lint
(and fix
stories) and then we're stuck with the question of transpiling/bundling (check
, package
). For instance, my internal tooling moved from experimental_shell
to a ViteJS plugin which uses all of my existing configuration (and, more importantly, plugins for Svelte/Kit) and basically calls the correct vite args at the command line.
The prospect of using Pants and migrating config from vite
to yet another transpiler/builder (since the JS ecosystem is the wild west), is a non-starter for me.steep-waitress-53641
10/26/2022, 5:32 PMwitty-crayon-22786
10/26/2022, 5:35 PMcc @happy-kitchen-89482 @witty-crayon-22786 for higher level perspective on Pants’ role in that backendthanks!: will review in a little bit.
curved-television-6568
10/26/2022, 5:39 PMblack
mypy
flake8
etc and just wires it all up, so I think that matches alt B.wide-midnight-78598
10/26/2022, 5:42 PMcc
backend compile on it's own, or rely on `cmake`/`make`/`ninja`
Right now, it compiles each file to a cached object with the gcc
or clang compiler
and then links those to a cached binarybroad-processor-92400
10/26/2022, 7:03 PMenough-analyst-54434
10/26/2022, 7:46 PMhappy-kitchen-89482
10/26/2022, 7:48 PMwide-midnight-78598
10/26/2022, 7:58 PMenough-analyst-54434
10/26/2022, 7:59 PMwide-midnight-78598
10/26/2022, 8:00 PMcurved-television-6568
10/26/2022, 8:01 PMwide-midnight-78598
10/26/2022, 8:03 PM./pants package :something && ./pants deploy :somethingelse
being my primary workflow ...
Oh wait, I guess this would just be ./pants deploy :somethingelse
and let the magic take overhappy-kitchen-89482
10/26/2022, 8:58 PM./pants package :something
should also be able to build the assets embedded in that something, such as JS bundleswide-midnight-78598
10/26/2022, 9:08 PM