1.2.0 • Published 3 years ago

@biglemonco/plop-templates v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@biglemonco/plop-templates

Installation

  1. First install it:

yarn add @biglemonco/plop-templates

  1. Then in your plopfile.ts:
import { NodePlopAPI } from 'plop';

export default (plop: NodePlopAPI) => {
  plop.load('@biglemonco/plop-templates');
};
  1. Add plop to your package.json
{
	"scripts": {
		"plop": "plop"
	}
}

Generator commands

This comes with a few commands to create different component types:

CommandDescriptionOptions
plop screenCreates a container and component and for a screen--name "string" (component name)--datasource "none" or "apollo" or "datastore"
plop viewCreates a container and component for view--name "string" (component name)--uiLibrary "none" or "antd"--uiComponent "none" or "table"--datasource "none" or "apollo" or "datastore"
plop layoutCreates a layout with storybook--name "string" (component name)--uiLibrary "none" or "antd"--uiComponent "none" or "table"
plop componentCreates a component--name "string" (component name)
plop lambdaAdds typescript to an existing Lambda function--name "string" (Lambda function name)--directory "string" (Lambda directory)--functionType "resolver" or "trigger"
1.2.0

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago