Skip to content

mosikoo/babel-plugin-revo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-revo

Installation

npm install babel-plugin-revo

Usage

Via .babelrc

.babelrc

{
  "plugins": ["revo"]
}

Example

this following JS:

import Revo from '../../rpc';

Revo.pcproj.pcproject.pub.listPcprojByCategory({
  workNo: '',
  nickname: '',
  roles: []
}).then((content) => {
  console.log(content.nickname);
});

will be compiled to

Revo('/pcproj/pcproject/pub/listPcprojByCategory.json')({
  workNo: '',
  nickname: '',
  roles: []
}).then((content) => {
  console.log(content.nickname);
});

详情教学可参考这里

About

babel plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published