Alfred
Alfred is a command line tool, a suite of helper commands for react developers
Installation
Install globally and use anywhere :
npm i alfredjs -g
or
Install locally to your project and use from npm scripts :
npm i alfredjs
Add an npm script in your package.json
"scripts":{"alfredjs":"alfredjs"}
Usage
Run globally installed alfredjs in project folder :
$ cd my-project
$ alfred
Commands
Commands:
help [command...] Provides help for a given command.
exit Exits application.
new:component <name> [reduxEnabled] Creates a new component
new:components <names...> Creates multiple components at once without redux
new:view <name> [reduxEnabled] Creates a new view
new:action <actionCreatorName> <name> Creates a new action creator
create:routes Creates a simple react-router-dom entry in root folder
init Creates an .alfredrc file with all the defaults
Environment Variables
$ALFRED_VERBOSE
: If environment variables is set, alfred stouts processes as they happen
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
TODO: Write credits
License