Config build task and re-arrange the folders for building.