Skip to content

songsiqi/weex-vue-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weex-vue-migration

NPM version Build status Test coverage Downloads

Migration from *.we file to *.vue file.

Install

npm install weex-vue-migration

Usage

CLI tool

  Usage: weex-vue-migrate [options] <file...>

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -e, --entry [path]       entry files, separated by comma `,`
    -o, --output [path]      output file dirname

API

transform(weexCode, isEntry)

var migrater = require('weex-vue-migration')
var result = migrater.transform(weexCode)

params:

  • weexCode: string, weex DSL code

returns:

  • result: object, result
    • content: string, vue DSL code
    • elements: array, list of elements object
      • name: string, name of <element>
      • content: string, vue DSL code of <element>

License

GPL-3.0

References

Mission:

Babel plugins:

About

migration from *.we file to *.vue file

Resources

License

Stars

Watchers

Forks

Packages

No packages published