grunt1: split required file to config and main func files