umi-block-convertor

1.0.1 • Public • Published

umi-block-convertor

A cli tool to convert your umi page to a umi block.

Usage

$ umi-block-convertor [block source entry js] [block target folder]
$ umi-block-convertor --config [path to config.json]

Config

A config demo:

// all path relative to process.cwd()
{
  "source": "./src/pages/test/Hello.js",
  "target": "../block/hello",
  "extFiles": [
    ["./src/pages/test/model.js", "src/model.js"],
    ["./src/pages/test/locals", "src/locals"]
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i umi-block-convertor

Weekly Downloads

5

Version

1.0.1

License

ISC

Unpacked Size

19 kB

Total Files

13

Last publish

Collaborators

  • yutingzhao1991