0.5.4-r3 • Published 4 years ago
sigma-cli v0.5.4-r3
SIGMA CLI
Command | Alias | Description |
---|---|---|
generate:component | g:c | Create React/React Native/Expo component |
generate:page | g:p | Create React/React Native/Expo page |
--init | -i | Configure Sigma for existing project |
--generate | -g | Create project with sigma template |
Adding Sigma to existing project
sigma --init
or
sigma --i
Use this command to create .sigmaconfig.json
Create project with Sigma
sigma --generate
or
sigma --g
Use this command to create a React project with sigma
- React Native and Expo will added in future
- This command not execute
npm install
you need to runnpm install
oryarn
- Recomended to execute
npm update
oryarn upgrade
after installCreateing component or page
For component
sigma generate:component <componentName>
or
sigma g:c <componentName>
Use this to create a React/React Native/Expo component(default path "/src/components")
For page
sigma generate:page <componentName>
or
sigma g:p <componentName>
Use this to create a React/React Native/Expo page(default path "/src/pages")
If component or page name contains "/", sigma will detect that is the path to component or page e.g.:
sigma generate:component TodoList/TodoItem
Sigma will generate the "TodoItem" inside "TodoList" folder