dynamic-templates
v0.0.11
Published
react component builder cli
Downloads
7
Maintainers
Readme
dynamic-templates
Why build this tool?
This CLI is used to generate multiple types of files to make a developers life easier.
What would you like to see in this package?
If you would like to see different features in this package. Feel free to shoot me an email at [email protected]
How to use
npm i dynamic-templates
Commands
dynamic-templates init [-y]
-y: optional flag for default config file
Once installed you have access to the following commands
dynamic-templates create [name, -f, -c]
name: not optional when using either of the flags below
-f: optional flag for default functional component
-c: optional flag for default class component
Create will walk you a through a prompt setup to create files from command line. Please see Working Template Generator
section for options that currently work and those that will be coming soon.
dynamic-templates version
dynamic-templates help
Working Template Generators
Functional Component (React)
✔️ dynamic imports
✔️ hooks supported
✔️ test file generation with react-testing-library
✔️ npm installs based on dynamic imports
Class Component (React)
✔️ dynamic imports
✔️ lifecycle method support
✔️ test file generation with react-testing-library
✔️ npm installs based on dynamic imports
HTML
✔️ title of page
✔️ multiple html files generated in loop
Styled-components
✔️ Styled Components (boilerplate for an array of [name, tag name])
Support Coming Soon
❌ JS Helper files
Release Notes
0.0.10
Implements Styled Components Boilerplate
React fragment support in tag generator
Introduces
dynamic-templates init [-y]
Introduces
dymanic-templates create [name, -f, -c]
for default component builds