0.2.5 • Published 7 years ago

weex-vue-migration v0.2.5

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
7 years ago

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:

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago