Added prepublish script to project templates.