5.0.1 ā¢ Published 3 years ago
@dbenfouzari/cli-tools v5.0.1
ā ļø This package is now deprecated in favor of
@dbenfouzari/cli
It will be removed in a future release
@dbenfouzari/cli-tools
Liens directs
Installation
yarn add -D @dbenfouzari/cli-tools
or if you are using npm
npm i -D @dbenfouzari/cli-tools
Usage
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
ā ...