Skip to content

Methane-Cli v1.4.1

Compare
Choose a tag to compare
@Adedoyin-Emmanuel Adedoyin-Emmanuel released this 17 Apr 22:31
· 23 commits to master since this release
b319c3d

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.

  1. React Components and Pages as well as NextJs Components, Pages name default to index.jsx or index.tsx if generateFolder configuration is specified. This makes components and pages import cleaner and easier to understand. For example, if you generate a component called Button, the generated component path would be Button/index.jsx or Button/index.tsx and you can import it like this import Button from './components/Button'. Unlike before where you would have to import it like this import Button from './components/Button/Button'.
  2. Fixed component and page capitalization issues. In previous versions of Methane, if you generate a component called button, the file name remains button but the generated component would be button instead of Button. This has been fixed in this version.
  3. Gracefully handled potential errors that might occur when generating pages or components.
  4. Added a new argument -d or --default to methane 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 running methane config command.