https://pantsbuild.org/ logo
#general
Title
# general
m

modern-wolf-36228

12/03/2021, 10:49 AM
Is it possible to define rules for the
./pants tailor
command? Like, I have
.vue
and
.js
files, and I want those directories to be populated with
BUILD
as well
c

curved-television-6568

12/03/2021, 12:03 PM
Yes, you implement a rule that returns
PutativeTargets
from a union type of
PutativeTargetsRequest
. See the docker backend for example: https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/docker/goals/tailor.py
m

modern-wolf-36228

12/03/2021, 12:04 PM
neat
simple
2
thanks
4 Views