0.5.4-r3 • Published 5 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 --initor
sigma --iUse this command to create .sigmaconfig.json
Create project with Sigma
sigma --generateor
sigma --gUse this command to create a React project with sigma
- React Native and Expo will added in future
- This command not execute
npm installyou need to runnpm installoryarn- Recomended to execute
npm updateoryarn upgradeafter 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/TodoItemSigma will generate the "TodoItem" inside "TodoList" folder