code: function insertJs(name) {
    const componentDir = `${packagesDir}/${name}`;
    const componentSrcDir = `${packagesDir}/${name}/src`;
    const upperComponentName = getComponentName(name);
  
    const templateHandle = Handlebars.compile(componentIndexTpl);
    const context = { upperComponentName, name };
  
    fs.writeFileSync(`${componentDir}/index.js`, `${templateHandle(context)}`);
  
    fs.writeFileSync(`${componentSrcDir}/${name}.vue`, `${componentVueTpl}`);
  }
docs: 插入js