Methane-Cli v1.4.1
Adedoyin-Emmanuel
released this
17 Apr 22:31
·
25 commits
to master
since this release
What's New ❓
I'm super excited to release a patch version for methane 🚀 Version 1.4.1 aims to fix issues related to the components and pages generation.
- React Components and Pages as well as NextJs Components, Pages name default to
index.jsx
orindex.tsx
if generateFolder configuration is specified. This makes components and pages import cleaner and easier to understand. For example, if you generate a component calledButton
, the generated component path would beButton/index.jsx
orButton/index.tsx
and you can import it like thisimport Button from './components/Button'
. Unlike before where you would have to import it like thisimport Button from './components/Button/Button'
. - Fixed component and page capitalization issues. In previous versions of Methane, if you generate a component called
button
, the file name remainsbutton
but the generated component would bebutton
instead ofButton
. This has been fixed in this version. - Gracefully handled potential errors that might occur when generating pages or components.
- Added a new argument
-d
or--default
tomethane init
command. This allows developers to easily initialize Methane with the default configuration without being prompted to answer questions. This is useful when you want to quickly initialize Methane in a new project. Note You can always update the Methane configuration by runningmethane config
command.