codely
v0.0.5
Published
The codely command line utility.
Downloads
33
Maintainers
Readme
Installation
Installation is as simple as running the following command (if you see EACCES error, reading fixing npm permissions may help):
npm install -g codely
or with yarn
yarn add global codely
Usage
Creating your project
Run the following command:
codely init
Then, answer the questions below:
- What is the name of the project?
- What do you want to code?
And then a folder will be created with the name of the project and with the selected subsystems.
Creating your react or react native component
Run the following command:
codely generate:component
Then, answer the questions below:
- What is the name of the component?
- Do you want to create the component using typescript?
And then a folder will be created with the name of the component inside src/components with an index file and a styles files.
Creating your react or react native page
Run the following command:
codely generate:page
Then, answer the questions below:
- What is the name of the page?
- Do you want to create the page using typescript?
And then a folder will be created with the name of the component inside src/pages with an index file and a styles files.
Creating a new controller
Run the following command:
codely generate:controller
Then, answer the questions below:
- What is the name of the controller?
- What methods do you want to use?
- Does your project use the JavaScript modules type (import/export)?
- Do you want to create the controller using typescript?
And then a file will be created with the name of the controller inside src/app/controllers.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Made with :hearts: by Greyson :wave: