5.0.1 ⢠Published 4 years ago
@dbenfouzari/cli-tools v5.0.1
ā ļø This package is now deprecated in favor of
@dbenfouzari/cliIt will be removed in a future release
@dbenfouzari/cli-tools
Liens directs
Installation
yarn add -D @dbenfouzari/cli-toolsor if you are using npm
npm i -D @dbenfouzari/cli-toolsUsage
After installing it, it grants you 3 commands
generate-react-component
This command will generate a React component based on your request.
> yarn generate-react-component
? What is the component name ? test-react
? Select a target directory src/components/
⨠ Done in 4.24s.The output will be
š¦ src
 ⣠š components
 ā ⣠š test-react
 ā ā ⣠š index.ts
 ā ā ⣠š test-react.modules.scss
 ā ā ⣠š test-react.stories.tsx
 ā ā ⣠š test-react.test.tsx
 ā ā ā š test-react.tsx
 ā ...generate-native-component
This command will generate a React-Native component based on your request.
> yarn generate-native-component
? What is the component name ? test-native
? Select a target directory src/components/
⨠ Done in 3.15s.The result will be
š¦ src
 ⣠š components
 ā ⣠š test-native
 ā ā ⣠š index.ts
 ā ā ⣠š test-native.stories.tsx
 ā ā ⣠š test-native.test.tsx
 ā ā ā š test-native.tsx
 ā ...generate-component
This command will prompt you with an app type choice, then execute above command accordingly.
yarn generate-component
? What is your app type ? (Use arrow keys)
⯠React
  React-Native
? What is the component name ? test-component
? Select a target directory src/components/
⨠ Done in 32.19s.The output will be
š¦ src
 ⣠š components
 ā ⣠š test-component
 ā ā ⣠š index.ts
 ā ā ⣠š test-component.module.scss
 ā ā ⣠š test-component.stories.tsx
 ā ā ⣠š test-component.test.tsx
 ā ā ā š test-component.tsx
 ā ...