fis3-parser-rosetta

2.0.5 • Public • Published

Rosetta Parser tools

For more information, please visit here.

此插件做两种工作。

  1. 面向 custom element 定义文件,将其解析成满足 rosetta 运行时的 js 文件。
  2. 面向 custom element 使用的文件。分析其依赖,并给调用处自动添加 className.(r-element r-invisible)

安装

支持全局安装和局部安装,根据自己的需求来定。

npm install fis3-parser-rosetta

使用

将 custom element 格式的 html 文件,解析成 js 文件。

fis.match('/elements/*.html', {
  rExt: '.js',
  parser: fis.plugin('rosetta')
}):

配置说明

  • compileUsage 默认为 false,配置是否将调用 element 的部分,解析成 js.

Readme

Keywords

Package Sidebar

Install

npm i fis3-parser-rosetta

Weekly Downloads

3

Version

2.0.5

License

BSD

Last publish

Collaborators

  • 2betop
  • jiexuangao