JSPM

  • Created
  • Published
  • Downloads 39
  • Score
    100M100P100Q54480F
  • License ISC

transform wx micro app to bytedance micro app

Package Exports

  • wx-to-tt

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wx-to-tt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

字节跳动小程序一键搬家工具

Introduction:

帮助微信小程序的开发者快速迁移到字节跳动小程序

Quick Start

  1. 安装

    npm i wx-to-tt

  2. wx2tt -i 微信小程序目录source-directory -o 生成字节跳动小程序的目录

    wx2tt -i ./wxProjects/demo -o ./ttProjects/demo
  3. 单文件入口转换:

    wx2tt -i 微信小程序文件 -o 生成字节小程序的目录

    wx2tt -i ./wxProjects/demo.wxml -o ./ttProjects/
  4. 可查看转换日志

Feature

  1. parse, traverse, transform, generate
  2. 文件后缀替换,.wxml -> .ttml, .wxss -> .ttss
  3. API前缀替换,wx -> tt
  4. 支持命令行

敬请期待

  1. 针对字节系APP, 输出各宿主不支持的的组件与API