You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
akrigline
changed the title
Is there some fancy way we could make installing react-gantry automated.
Make installing react-gantry automated
Mar 15, 2018
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.
Create a directory name as supplied by an argument.
Create a copy of all of the files in the gantry itself in this new directory.
npm install
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.
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:
run git clone on this repo
run npm run startup which will nuke the git and change the packagejson.
The latest versions of
create-react-app
have anpx
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:
NPX Blog Post
The text was updated successfully, but these errors were encountered: