Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make installing react-gantry automated #9

Open
akrigline opened this issue Mar 15, 2018 · 2 comments
Open

Make installing react-gantry automated #9

akrigline opened this issue Mar 15, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@akrigline
Copy link
Contributor

akrigline commented Mar 15, 2018

The latest versions of create-react-app have a npx script that installs the blank react-app. I'm not certain how this works, but it would be excellent if we could replicate this with Gantry.

Requirements:

  • Ability to Install a blank, gantry inspired Application without having to clone the repo, delete git and reinitialize.
  • Automatically fill out the new package.json with details from the npx command.
  • [STRETCH] Allow various arguments to change the blank app's installation (i.e. withThunks, withRedux, withStorybook, withBlueprints).

NPX Blog Post

@akrigline akrigline added enhancement New feature or request help wanted Extra attention is needed labels Mar 15, 2018
@akrigline akrigline changed the title Is there some fancy way we could make installing react-gantry automated. Make installing react-gantry automated Mar 15, 2018
@akrigline
Copy link
Contributor Author

To be successful, a node script should do the following to get a new project up and running without the hassle of cloning the repo, changing the directory name, and resetting the git.

  1. Create a directory name as supplied by an argument.
  2. Create a copy of all of the files in the gantry itself in this new directory.
  3. npm install
  4. git init

What this would avoid:

  • Cloning this repo and then resetting git to start the a project

I wonder if there's a simple way to just create a sharable node script that would do the clone / reset git automatically, and that's the solution to this problem.

@akrigline
Copy link
Contributor Author

Cory House's react-slingshot has a setup script that automates the process that removes .git and changes the packagejson based on user prompts, then removes the startup script itself.

We could approach this from that angle:
Create a gist that will let us use npx to:

  1. run git clone on this repo
  2. run npm run startup which will nuke the git and change the packagejson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant