https://github.com/astrocoders/old-astroman
Rapid scaffolding for React Native, Meteor and React Boilerplate projects (but now focused on RN)
https://github.com/astrocoders/old-astroman
cli react-native scaffolding
Last synced: 12 months ago
JSON representation
Rapid scaffolding for React Native, Meteor and React Boilerplate projects (but now focused on RN)
- Host: GitHub
- URL: https://github.com/astrocoders/old-astroman
- Owner: Astrocoders
- License: mit
- Created: 2016-10-24T18:17:12.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-06-22T13:17:26.000Z (about 9 years ago)
- Last Synced: 2025-04-30T07:09:13.780Z (about 1 year ago)
- Topics: cli, react-native, scaffolding
- Language: JavaScript
- Homepage:
- Size: 369 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `astroman`
[](https://travis-ci.org/Astrocoders/astroman)
Rapid scaffolding for React Native, Meteor and React Boilerplate [add more description] projects
## Install
```
yarn global add astroman
```
## Usage
# React Native
Commands in React Native environment
## Init
`astroman` helps you initialize these type of projects:
```
astroman init react-native MyProject
```

## Create
### astroman create scene [name]
```
$ astroman create scene Dashboard
```
### astroman create component [name]
```
$ astroman create component ButtonRounded
```
### astroman create redux [InterfaceName]
We call interface the reducer name in which that state will be hold on along with
this particular reducer actions, container and logic.
```
$ astroman create redux Todos
# creates redux/Todos/reducer.js, redux/Todos/actions.js/ redux/Todos/Container.js redux/Todos/logic.js
# it also update the main reducers file with the new reducer
```
### astroman create reduxAction [InterfaceName/actionName]
IMPORTANT: _Requires `create redux` to have been called before!_
```
$ astroman create reduxAction Todos/addNewOne
```
This one will create the action creator in `Todos/actions.js`, the constant in `Todos/constants.js` and add the new
switch entry in `Todos/reducer.js`
## Astroplugins
With astroplugins we intend to encapsulate "tiny apps" with their own ecosystem as reusable packages easily to plug in in the main one.
For that we established that the main app should always, when possible, use only redux and redux-logics as middleman to communicate with data and side effects. Of course that there should be cases where you need to make exceptions, but try to stick with that as much as you can. Using redux and redux-logics as middleman offers a incredible abstraction allowing you to stop rewriting integrations for every backend.
## Commands
### astroman plug [gitURL]
```
$ astroman plug git@github.com:user/repo.git
```
### astroman create plugin [pluginName]
NOT DONE
### astroman remove plugin [pluginName]
NOT DONE
### Contributing
PRs and issues are welcome!