Code Monkey home page Code Monkey logo

Comments (10)

zth avatar zth commented on August 30, 2024 2

Things that come to mind:

  • A vite-based template
  • Remix
  • Node + Express

from create-rescript-app.

cknitt avatar cknitt commented on August 30, 2024 1

@cknitt What do you think of rescript-init npm package? ...

@DZakh Sorry for the late reply! Yes, it will definitely be nice to have a means to integrate ReScript into an existing project like you described. I am still a bit unsure about where we'd best put that functionality, but it will surely be helpful if you get the ball rolling with a separate rescript-init package. 👍

from create-rescript-app.

DZakh avatar DZakh commented on August 30, 2024

I'd like to have a script that would integrate ReScript into an existing project.

  • Install rescript
  • Add bs-config
  • Add npm scripts
  • Add internal files to .gitignore

from create-rescript-app.

cknitt avatar cknitt commented on August 30, 2024

Yes, that would be nice. Maybe we could add that as an option in create-rescript-app.

Although people probably wouldn't expect this / wouldn't be looking for this functionality in a create-xxx package? 🤔

from create-rescript-app.

DZakh avatar DZakh commented on August 30, 2024

Yeah, probably, more obvious to have such behavior in the rescript init

from create-rescript-app.

DZakh avatar DZakh commented on August 30, 2024

I'm writing an article how to use ReScript for a CLI. Can be packed in a template repo.
Also, I've started working on platformatic bindings, I'd prefer having a template with it or pure Fastify instead of the one with express.

from create-rescript-app.

DZakh avatar DZakh commented on August 30, 2024

@cknitt What do you think of rescript-init npm package? I can create it after finishing working on the https://github.com/DZakh/rescript-stdlib-cli that I described in the https://forum.rescript-lang.org/t/wip-the-ultimate-answer-to-belt-vs-js-in-rescript/3844. They should have pretty similar functionality, so wouldn't take much effort.
I'm planning to start writing articles about ReScript and it would be nice to simplify the step of configuring the project 😊

from create-rescript-app.

cknitt avatar cknitt commented on August 30, 2024

@zth I would also like to have a Vite template.

There is https://github.com/jihchi/vitejs-template-react-rescript, but that one already includes a bit too much stuff IMHO (rescript-webapi, rescript-vitest).

I would like to have a very simple template with only Vite - or maybe Vite + Tailwind CSS, that's a very nice combo that we are using in our projects.

from create-rescript-app.

cknitt avatar cknitt commented on August 30, 2024

Regarding express vs. fastify vs. platformatic: I am currently seeing the following weekly download numbers on npm:

  • express: 26.957.203
  • fastify: 759.168
  • platformatic: 77

I think we should provide a template for express first because it still seems to be the most popular web framework for Node.js. Having a fastify template in addition might also be nice. I would not do one for platformatic.

from create-rescript-app.

fhammerschmidt avatar fhammerschmidt commented on August 30, 2024

I would welcome a "rescript-development-testing" template that somehow comes with the latest master or at least the next npm package (currently 10.1.0-rc.2) to lower the barrier for others to report bugs and test new features.

from create-rescript-app.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.