Skip to content

Automation : convenience script for generators #74

@andytango

Description

@andytango

Hey @stylesuxx

Fantastic generator, great work!

One (small) thing I've found using developing with this is that when I run the sub-generators, I have to copy/paste their names from readme, which always feel like a bit of a hassle. So I made a simple shell script like this:

#!/usr/bin/env bash

yo react-webpack-redux:$1  $@:2

First argument is the generator name, rest are passed through.

I wonder though if this something that could be achieved with npm? So you could have something like

npm run action action_name
npm run container container_name
npm run reducer reducer_name

Happy to submit a PR if this has affected anyone else!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions