pasta-cli
v1.1.6
Published
Create your 'React Native' components and screens with single command
Downloads
33
Maintainers
Readme
🚚 No installation required, npx available
npx pasta-cli --name my-component
🎯 Props
| Name | Type | Description |
| :------- | :--------------------- | :-------------------------------------------------------------------------- |
| --name
| string (rqeuired) | If you separate the name with a -
sign, you will get Pascal case output. |
| --type
| react
,react-native
| It can take the values "react" or "react-native". (Default: 'react-native') |
| --dir
| etc: src/components
| Specifies where to render the component. (Default: project root dir) |
💎 Example usage
This command will create a component named "button" under "src/components" folders for "react-native".
npx pasta-cli --name my-component --dir src/components --type react-native
-src/
-components/
-MyComponent/
-MyComponent.tsx
-MyComponent.Style.ts
📄 License
Pasta is MIT licensed, as found in the LICENSE file.