Is it possible to define rules for the `./pants ta...
# general
m
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
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
neat
simple
2
thanks