-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add a "from scratch" section to the "getting started" page #85
Comments
So, the first thing to do for a new project is always creating the opam switch. Once that is done you can proceed to install the dependencies for the project, and Dune is most probably the first dependency one wants to install. Btw if you want to take a stab at the "from scratch" section I encourage you to do so, you are probably one of the best positioned to do so! 🤗 |
I'm more than happy to take a shot at writing a small "from scratch" section. I think I got a from-scratch setup working yesterday, but before I write things down, I'd love to get feedback on this general outline from people who actually know what they're doing. 😁
The first two steps in particular are the ones that could use some guidance, I think. Like, is it correct that you need a global opam + global dune first, so that you can init the project and then make the project switch? |
There's no need to use the global switch, an opam local switch can be installed with In other words:
This can be the first step. |
Currently, the Getting Started docs highlight the [template]( template, which is definitely the easiest way for most people to jump in, but personally I like to set up new projects by hand because I feel like it helps me get more familiar with how the ecosystem's tools fit together. Especially as someone coming from Bucklescript, I'm less familiar with how the opam and dune pieces fit together, and I'd like more hands-on experience getting a project set up with those tools.
Some specific things I'm confused about:
dune init
to create a project... which will likely have its own opam switch? Do I first need to create an opam switch with the version of dune I want to use inside the new project?...wait, maybe that's the only thing I'm confused about. 😆 I'll keep working through this and let you know if there's anything else that confuses me.
The text was updated successfully, but these errors were encountered: