Skip to content

ahmetcangurel/pasta-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pasta-Cli

Create your components and screens with single command
For React & React Native

Pasta is released under the MIT license. Current npm package version. Follow @cangureltxt

🚚 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.

About

Create files for components, screens etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published