code: function getBlocks(filepath) {
      if (!filepath) {
          return;
      }
      var content = (0, _fs.readFileSync)(filepath, 'utf8');
      var result = (0, _vueTemplateCompiler.parseComponent)(content);
      var ret = {
          template: {
              code: result.template.content
          },
          script: {
              code: result.script.content
          },
          styles: []
      };
      result.styles.forEach(function (e, i) {
          ret.styles[i] = {
              code: e.content
          };
      });
      result.customBlocks.forEach(function (e, i) {
          var type = e.type;
          ret[type] = ret[type] || [];
          ret[type].push({
              code: e.content
          });
      });
      return ret;
  }
docs: parse .vue content to an object with all blocks' code
  @param {string} filepath the path of .vue file
  
  @return {Object} an object with all blocks' code
   
  @file compile .vue to .js
  @author JoeRay61(joeray199261@gmail.com)