@imgcook/generator-react

0.1.8 • Public • Published

@imgcook/generator-react

Generate a new project from a react template.

Develop

/**
 * @name plugin example
 * @param option: { data, filePath, config }
 * - data: module and generate code Data
 * - filePath: Pull file storage directory
 * - config: cli config
 */

const pluginHandler = async options => {
  let { data } = options;
  // body...
  return data;
};

module.exports = (...args) => {
  return pluginHandler(...args).catch(err => {
    console.log(err);
  });
};

Reference Example

Readme

Keywords

Package Sidebar

Install

npm i @imgcook/generator-react

Weekly Downloads

1

Version

0.1.8

License

ISC

Unpacked Size

35.7 kB

Total Files

20

Last publish

Collaborators

  • yorkie
  • zhou605555926
  • jonchen003
  • yukrain
  • gindis