Wheels, cranks, power meters, etc to a large extent will be able to be moved to a new bike, unless you jump to a different technology (disc brakes, thru axles, BB30, etc).
My guess is that where there is a will, there is a way. To a large extent brake cable housing can be replaced with full-length housing, and either larger holes drilled in the frame, or attach with tie-wraps.
Shift Cable housing can be a little more problematic.