weex-scripter
Weex <script> transformer
Last updated 8 years ago by hanks .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install weex-scripter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.6                                ...           latest (8 years ago)

5 Versions

  • 0.1.6                                ...           8 years ago
  • 0.1.5                                ...           9 years ago
  • 0.1.4                                ...           10 years ago
  • 0.1.3                                ...           10 years ago
  • 0.1.2                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (7)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |