{"_id":"weex-transformer","_rev":"3711382","name":"weex-transformer","description":"Weex DSL transformer","dist-tags":{"latest":"0.4.6"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"time":{"modified":"2025-02-13T05:57:36.000Z","created":"2016-04-08T02:49:05.786Z","0.4.6":"2018-02-07T08:02:12.890Z","0.4.5":"2017-07-28T08:09:18.125Z","0.4.3":"2017-02-07T07:16:46.066Z","0.4.2":"2016-12-16T06:58:45.809Z","0.3.1":"2016-04-26T10:01:13.188Z","0.3.0":"2016-04-22T03:28:21.687Z","0.2.1":"2016-04-19T15:07:11.991Z","0.2.0":"2016-04-19T09:53:52.427Z","0.1.8":"2016-04-08T02:51:37.715Z","0.1.7":"2016-04-08T02:49:05.786Z"},"users":{},"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-transformer.git"},"versions":{"0.4.6":{"name":"weex-transformer","version":"0.4.6","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"MIT","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.5","weex-styler":"~0.2.1","weex-templater":"~0.3.5","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"gitHead":"060df788cf5ca82de36a48f533d05b2dfd90b5c8","bugs":{"url":"https://github.com/weexteam/weex-transformer/issues"},"homepage":"https://github.com/weexteam/weex-transformer#readme","_id":"weex-transformer@0.4.6","_npmVersion":"5.0.2","_nodeVersion":"8.0.0","_npmUser":{"name":"hanks","email":"zhanghan.me@gmail.com"},"dist":{"shasum":"b47f6c94de0b75b26090fa49312d4d5286aba5a7","size":14602,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.4.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.4.6.tgz"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/weex-transformer_0.4.6_1517990532834_0.7757780365270146"},"_hasShrinkwrap":false,"publish_time":1517990532890,"_cnpm_publish_time":1517990532890,"_cnpmcore_publish_time":"2021-12-17T06:20:27.563Z"},"0.4.5":{"name":"weex-transformer","version":"0.4.5","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"GPL-3.0","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.5","weex-styler":"~0.2.1","weex-templater":"~0.3.5","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"gitHead":"9244f11caf04395534b2aea6d0e727573d436178","bugs":{"url":"https://github.com/weexteam/weex-transformer/issues"},"homepage":"https://github.com/weexteam/weex-transformer#readme","_id":"weex-transformer@0.4.5","_npmVersion":"5.0.2","_nodeVersion":"8.0.0","_npmUser":{"name":"hanks","email":"zhanghan.me@gmail.com"},"dist":{"shasum":"a06d4428a488ee7d864ed2c619f942f096c50a7c","size":26361,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.4.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.4.5.tgz"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/weex-transformer-0.4.5.tgz_1501229358041_0.8652595423627645"},"directories":{},"publish_time":1501229358125,"_hasShrinkwrap":false,"_cnpm_publish_time":1501229358125,"_cnpmcore_publish_time":"2021-12-17T06:20:28.191Z"},"0.4.3":{"name":"weex-transformer","version":"0.4.3","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"GPL-3.0","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.4","weex-styler":"~0.1.0","weex-templater":"~0.3.0","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"gitHead":"73cba16a2fb61668527b0c017b6d51e84fc4294a","bugs":{"url":"https://github.com/weexteam/weex-transformer/issues"},"homepage":"https://github.com/weexteam/weex-transformer#readme","_id":"weex-transformer@0.4.3","_shasum":"a856f4419fd399f9225fc37d2b8e9297b4501c9d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"a856f4419fd399f9225fc37d2b8e9297b4501c9d","size":26712,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.4.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/weex-transformer-0.4.3.tgz_1486451805845_0.3013438289053738"},"directories":{},"publish_time":1486451806066,"_hasShrinkwrap":false,"_cnpm_publish_time":1486451806066,"_cnpmcore_publish_time":"2021-12-17T06:20:28.464Z"},"0.4.2":{"name":"weex-transformer","version":"0.4.2","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"GPL-3.0","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.4","weex-styler":"~0.1.0","weex-templater":"~0.3.0","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"gitHead":"2c3e52cbab320f3a29884967e23ccfbaf5c9713b","bugs":{"url":"https://github.com/weexteam/weex-transformer/issues"},"homepage":"https://github.com/weexteam/weex-transformer#readme","_id":"weex-transformer@0.4.2","_shasum":"0902c4aa82c00d3f03bb46b877dc7a2b529ebf26","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"0902c4aa82c00d3f03bb46b877dc7a2b529ebf26","size":26670,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.4.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/weex-transformer-0.4.2.tgz_1481871523799_0.06855448638089001"},"directories":{},"publish_time":1481871525809,"_hasShrinkwrap":false,"_cnpm_publish_time":1481871525809,"_cnpmcore_publish_time":"2021-12-17T06:20:29.104Z"},"0.3.1":{"name":"weex-transformer","version":"0.3.1","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_toolchain.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache-2.0","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.4","weex-styler":"~0.0.16","weex-templater":"~0.2.1","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_toolchain/issues"},"homepage":"https://github.com/alibaba/weex_toolchain","_id":"weex-transformer@0.3.1","_shasum":"dc8f082f2e9be269ee080722b4feeb952a001da2","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"dc8f082f2e9be269ee080722b4feeb952a001da2","size":17769,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/weex-transformer-0.3.1.tgz_1461664869761_0.6494339527562261"},"directories":{},"publish_time":1461664873188,"_hasShrinkwrap":false,"_cnpm_publish_time":1461664873188,"_cnpmcore_publish_time":"2021-12-17T06:20:29.352Z"},"0.3.0":{"name":"weex-transformer","version":"0.3.0","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache-2.0","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.4","weex-styler":"~0.0.16","weex-templater":"~0.2.0","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-transformer@0.3.0","_shasum":"cd14a735539d1cdd3972a8f414c1759f63fbf690","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"cd14a735539d1cdd3972a8f414c1759f63fbf690","size":17776,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/weex-transformer-0.3.0.tgz_1461295698665_0.6363242827355862"},"directories":{},"publish_time":1461295701687,"_hasShrinkwrap":false,"_cnpm_publish_time":1461295701687,"_cnpmcore_publish_time":"2021-12-17T06:20:30.469Z"},"0.2.1":{"name":"weex-transformer","version":"0.2.1","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.4","weex-styler":"~0.0.16","weex-templater":"~0.1.6","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-transformer@0.2.1","_shasum":"2e107b7ee471aba8224d817144a8c1c3a1261c0b","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"2e107b7ee471aba8224d817144a8c1c3a1261c0b","size":17690,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/weex-transformer-0.2.1.tgz_1461078431492_0.8016555889043957"},"directories":{},"publish_time":1461078431991,"_hasShrinkwrap":false,"_cnpm_publish_time":1461078431991,"_cnpmcore_publish_time":"2021-12-17T06:20:31.141Z"},"0.2.0":{"name":"weex-transformer","version":"0.2.0","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.4","weex-styler":"~0.0.16","weex-templater":"~0.1.6","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-transformer@0.2.0","_shasum":"611e0c385ea6f5d1a60d7aad6db4a518dcfd981d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"611e0c385ea6f5d1a60d7aad6db4a518dcfd981d","size":17565,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/weex-transformer-0.2.0.tgz_1461059630893_0.8779051390010864"},"directories":{},"publish_time":1461059632427,"_hasShrinkwrap":false,"_cnpm_publish_time":1461059632427,"_cnpmcore_publish_time":"2021-12-17T06:20:31.376Z"},"0.1.8":{"name":"weex-transformer","version":"0.1.8","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.2","weex-styler":"~0.0.13","weex-templater":"~0.1.3","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-transformer@0.1.8","_shasum":"7b4992feb7c617089b4184618efd44825cdc8303","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"7b4992feb7c617089b4184618efd44825cdc8303","size":12983,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.1.8.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/weex-transformer-0.1.8.tgz_1460083895367_0.6702605022583157"},"directories":{},"publish_time":1460083897715,"_hasShrinkwrap":false,"_cnpm_publish_time":1460083897715,"_cnpmcore_publish_time":"2021-12-17T06:20:31.674Z"},"0.1.7":{"name":"weex-transformer","version":"0.1.7","description":"Weex DSL transformer","main":"index.js","scripts":{"test":"npm run mocha && npm run cover","mocha":"gulp test","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","bin":{"transformer":"./bin/transformer.js"},"dependencies":{"weex-scripter":"~0.1.2","weex-styler":"~0.0.13","weex-templater":"~0.1.3","chalk":"~1.1.1","commander":"~2.9.0","fs-extra":"~0.26.7","md5":"~2.1.0","parse5":"~2.1.0","printf":"~0.2.3"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-transformer@0.1.7","_shasum":"7feed6ac927be8d5a5a49343dcbdb6ac138f09d4","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"7feed6ac927be8d5a5a49343dcbdb6ac138f09d4","size":12982,"noattachment":false,"key":"/weex-transformer/-/weex-transformer-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-transformer/download/weex-transformer-0.1.7.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/weex-transformer-0.1.7.tgz_1460083745143_0.17740042973309755"},"directories":{},"publish_time":1460083745786,"_hasShrinkwrap":false,"_cnpm_publish_time":1460083745786,"_cnpmcore_publish_time":"2021-12-17T06:20:31.897Z"}},"readme":"# Weex DSL Transformer\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][circle-image]][circle-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[npm-image]: https://img.shields.io/npm/v/weex-transformer.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/weex-transformer\n[circle-image]: https://circleci.com/gh/alibaba/weex_toolchain.svg?style=svg\n[circle-url]: https://circleci.com/gh/alibaba/weex_toolchain/tree/master\n[downloads-image]: https://img.shields.io/npm/dm/weex-transformer.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/weex-transformer\n\n`<template>` + `<style>` + `<script>` + `<element>`\n\n## Install\n\n```bash\nnpm install weex-transformer\n```\n\n## Usage\n\n### CLI tool\n\n```\n  Usage: transformer [options] <file...>\n\n  Options:\n\n    -h, --help               output usage information\n    -V, --version            output the version number\n    -g, --logLevel [value]   specify log output level - `NOTE`, `WARNING`, `ERROR`, `OFF` (default: `NOTE`, equivalent to `ALL`)\n    -e, --isEntry [value]    whether is an entry module which has `bootstrap` (default: true)\n    -l, --oldFormat [value]  whether to transform to old format (default: false)\n    -o, --output [path]      the output file dirname\n```\n\n### API\n\n#### `transform(name, code, path, elements, config)`\n\n```javascript\nvar transformer = require('weex-transformer')\nvar output = transformer.transform('foo', '/* code here */', '.', {})\n```\n\n##### params\n\n- `name`: string, current bundle name\n- `code`: string, source code\n- `path`: string *optional*, useful when find custom component in a certain path\n- `elements`: object *optional*, existed custom component map\n- `config`: object *optional*\n    * `logLevel`: specify log output level - `NOTE` (default, equivalent to `ALL`), `WARNING`, `ERROR`, `OFF`, aranging from low to high\n    * `isEntry`: whether is an entry module which has `bootstrap` (default: true)\n    * `oldFormat`: whether to transform to old format (default: false)\n\n##### returns\n\n- an object with keys\n    * `result`: string, all custom components `define()` and final `bootstrap()`\n    * `logs`: array, corresponding warning & error logs\n\n#### `transformOld(...)`\n\nsame params and different output format for old style: `register(name, options)` and `render(name, data)`\n\n## transforming content\n\n- `template`: JavaScript Object by `parse5`\n- `style`: JSON Object by `css`\n- `script`: JavaScript AST with `template`, `deps`, `style` by `esprima`\n- `element`: string code map for deeply parsing\n\n## workflow\n\n1. get template, style, script, elements\n2. parse and validate style by `styler`\n3. parse and validate template by `templater` and get deps\n4. parse script by `scripter`\n5. join template, style and script to build a module\n6. collect element code map\n7. output `define()` string code, deps, element code map and logs\n8. find deps code by name from element code map first and from file system for second\n9. join all deps code together recursively\n10. find all required 3rd party javascript and bundle them\n11. append `bootstrap()` string code and bundle at last\n","_attachments":{},"homepage":"https://github.com/weexteam/weex-transformer#readme","bugs":{"url":"https://github.com/weexteam/weex-transformer/issues"},"license":"MIT"}