code: function taskController(config) {
      const taskName = minimist['_'][0];
      const {name, port, ver, dir, update} = minimist;
  
      switch (taskName) {
          case 'create':
              require('../tasks/create')(name || config.name);
              break;
          case 'init':
              require('../tasks/init')(configPath, update);
              break;
          case 'include':
              require('../tasks/include')(name);
              break;
          case 'clean':
              require('../tasks/clean')(name);
              break;
          case 'dev':
              hasProject(name, ()=> {
                  require('../tasks/dev')(name, port || config.serverPort);
              });
              break;
          case 'build':
              hasProject(dir, ()=> {
                  require('../tasks/build')(dir, ver);
              });
              break;
          default:
              console.log('没有这个任务!');
              break;
      }
  }
docs: 任务分发模块
  @param config