scaffold-eth / scaffold-eth-2

Open source forkable Ethereum dev stack
https://scaffoldeth.io
MIT License
1.41k stars 884 forks source link

Install SE2 with NPX #121

Closed carletex closed 1 year ago

carletex commented 1 year ago

It'd be cool to be able to install SE2 with npx. eg:

npx create-se2-app <projectname>

Also, in the future, we could use npx templating to have some options on install: e.g.

Example on NextJS image


For now, lets explore how we can set npx installs that do a clean install of SE2.

Thoughts @technophile-04 @rin-st ??

technophile-04 commented 1 year ago

Really wanted this for so long with scaffold-eth, but

!! I thought !! we weren't doing it because :

These are some of the blockers which !! I thought !! because of it we are not doing something like npx create-se-app .

But I would really love to see/excited for npx create-se2-app maybe we just keep the above points in mind which I think will be covered since our motto is (keep it simple & minimal) 🙌. Also doing npx create-se2-app opens up a lot of opportunities like Hardhat vs Foundry and many more as Carlos mentioned.

rin-st commented 1 year ago

I believe we need that functionality, but it seems it's a huge task. I have never tried to do something like that, so I need to research. We should probably do it when the main priority things are completed.

roninjin10 commented 1 year ago

Hey everybody, enabling this to be installed via npx, yarn create, and pnpm create is not a huge task. More like a medium task but pretty straight forward. I'd be happy to chat sometime about what it would take to get this done.

carletex commented 1 year ago

Sounds great @roninjin10

Let's talk this week in Denver if you are around! I think Austin already DMed you.

Thanks!

carletex commented 1 year ago

When talking with @roninjin10 (Thanks! <3), we thought that a first good step would be to create a new repo (e.g. create-se2-app) that has the "binary" to:

In the future (when thinking about letting the builder choose between Hardhat OR Foundry), we could reconsider if we need to implement a more complex system (like npx templating).

Some resources:

roninjin10 commented 1 year ago

How goes this @carletex @austintgriffith? Anything I can help with?

carletex commented 1 year ago

We are making progress @roninjin10! Check NPX install in https://github.com/scaffold-eth/se-2/issues/251#issuecomment-1480765238

Would love to hear your opinion on #251

Thanks!

carletex commented 1 year ago

Closing this on favor of #251