pasta-cli

1.1.3 • Public • Published

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.

Package Sidebar

Install

npm i pasta-cli

Weekly Downloads

2

Version

1.1.3

License

MIT

Unpacked Size

8.68 kB

Total Files

9

Last publish

Collaborators

  • cangurel