enrollwise-fe-cli 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @blenderbox/enrollwise-fe-cli@1.0.0
Install via package.json:
"@blenderbox/enrollwise-fe-cli": "1.0.0"
About this version
Enrollwise CLI for React code generation.
You can install CLI either globally or locally.
To install globally run yarn global add enrollwise-fe-cli
or npm i -g enrollwise-fe-cli
;
To install locally run yarn add -D enrollwise-fe-cli
or npm i --save-dev enrollwise-fe-cli
in the root of your project.
Create configuration file ew-react-codegen.config.json
in the root of your project.
Populate it with the following content:
{
"componentsFolderPath": "./your_path_goes_here",
"elementsFolderPath": "./your_path_goes_here",
"hooksFolderPath": "./your_path_goes_here",
"utilitiesFolderPath": "./your_path_goes_here"
}
If you've installed CLI locally, update your package.json scripts
property:
"scripts": {
"ew-react-codegen": "ew-react-codegen"
}
If you've installed CLI locally you will need to call commans using your package manager of choise, for example:
yarn ew-react-codegen component foo --props --tests
or npm ew-react-codegen component foo --props --tests
Congratulations! You're ready to use commands and generate code!
CLI exposes following commands:
ew-react-codegen component
ew-react-codegen element
ew-react-codegen hook
ew-react-codegen utility
Creates new component with optional props, tests, stories and styles
Accepts followind options:
-
--props
- Add props to the component -
--story
- Add story to the component -
--style
- Add style to the component -
--tests
- Add tests to the component
Creates new element with optional props, tests, stories and styles
Accepts followind options:
-
--props
- Add props to the element -
--story
- Add story to the element -
--style
- Add style to the element -
--tests
- Add tests to the element
Creates new hook with optional props and tests
Accepts followind options:
-
--props
- Add props to the hook -
--tests
- Add tests to the hook
Creates new utility with optional parameters and tests
Accepts followind options:
-
--params
- Add params to the utility" -
--tests
- Add tests to the utility"
Provides command line help and description for the CLI commands.
Details
- enrollwise-fe-cli
-
blenderbox
- about 3 years ago
- MIT
- 12 dependencies
Assets
- enrollwise-fe-cli-1.0.0-npm.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0