wodax-umi-block-convertor
v1.0.1
Published
A cli tool to convert your umi page to a umi block.
Downloads
3
Readme
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"]
]
}