Methane-Cli v1.4.1 #36
Adedoyin-Emmanuel
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
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'
.button
, the file name remainsbutton
but the generated component would bebutton
instead ofButton
. This has been fixed in this version.-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.This discussion was created from the release Methane-Cli v1.4.1.
Beta Was this translation helpful? Give feedback.
All reactions