Taiwan has been governed separately since the end of a 1949 civil war , but Beijing has repeatedly threatened to invade should the island declare formal independence , and has targeted it with more than 1,000 ballistic missiles .