generate-me-components v1.1.0
Generate Me Components
A simple library for creating js component(s) folder quickly with as many files as you want! :fire:
Installation
npm i -D generate-me-components
Usage
npx generate-me-components [your-components-names]
OR:
npx gmc [your-components-names]
NOTE: if you don't specifiy components' names, you will be asked later. Also, components names are case-insensitive.
Example:
npx gmc counter1 counter2
This command will ask you the following questions:
- Components Path (if it does not exist, it will be created automatically).
- If you're using JSX/TSX file extensions.
Then if you're using JSX/TSX file extensions, it will ask you:
- The used StyleSheet language (CSS, SASS, Stylus...).
- The used Scripting language (JSX, TSX).
- If arrow function components are preferred.
- If you want to include additional files.
- Additional files' extension (e.g., test.js...).
- If you want to create component's files directly without folders.
- Components' Names (if not specified in CLI arguments).
Otherwise, it will just ask you:
- Extensions of Component's files (e.g., vue, svelte...).
- If you want to create component's files directly without folders.
- Components' Names (if not specified in CLI arguments).
For example: if you enter: vue ts js, it will create 3 files with the same name but different file extensions.
After this, it will ask you if you want to create a config file so that you don't have to answer these questions the next time.
The file name is generate-me-components.json.
NOTE: if you delete an option in the generated config file, it will ask you the corresponding question for that deleted option next time you run the command.
Issues
If you find a bug or want to suggest a new feature, create a new issue.
if you like the library, give a star to that repo to support me and buy me a coffee if you can!