weex-scripter

0.1.6 • Public • Published

Weex <script> Transformer

NPM version Build status Downloads

transform JavaScript

API

  • fix(code): automatically add data: {function () {return {...}}} to init component data from data: {...}
  • parseAndReplaceRequire(code): parse third party js required in <script>, return the modified code and collect requires
    • note that require is automatically changed to browserifyRequire because of the built-in require in js-framework
  • getBundle(requires): bundle all the third party js required in <script> by using browserify

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.6
    52
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.6
    52
  • 0.1.5
    9
  • 0.1.4
    0
  • 0.1.3
    0
  • 0.1.2
    1

Package Sidebar

Install

npm i weex-scripter

Weekly Downloads

62

Version

0.1.6

License

MIT

Unpacked Size

21.3 kB

Total Files

19

Last publish

Collaborators

  • hanks
  • songsiqi