Git Product home page Git Product logo

Comments (5)

Can-Sahin avatar Can-Sahin commented on May 2, 2024

Its a development mode only thing. Starting the express server so I think its fine. Nobody ever touches it actually so I cant think of any reason for adding any types there. Plus it would add extra transpiling to every npm start.

Do you have any reason adding types there would help developers ? If so we can consider

from react-boilerplate-typescript.

jackdh avatar jackdh commented on May 2, 2024

No nothing in particular.

I know for large applications alot of the time people would split out the front / back however for smaller applications it tends to be quicker to just package it all in one.

From there the reasons to have it our exactly the same as why we have typescript on the frontend :).

I'd be happy to work on a pull request if that would be helpful?

from react-boilerplate-typescript.

Can-Sahin avatar Can-Sahin commented on May 2, 2024

I didnt quite understand what you meant 😕How does packaging front and back as one relates to this boilerplate. Its front-end only static website (build folder only)

I of course love types :) but when it comes to developing (writing the application code). Server here is %100 separated from anyones application code or is it not in your case ? Nobody makes changes in the server folder and types there are totally irrelevant for people. I'm bit skeptical adding another typescript transpilation here. It would compile everytime you run and almost 99% of those times people would wait for types to transpile they dont even care. Can you elaborate bit more your point of view :)

from react-boilerplate-typescript.

 avatar commented on May 2, 2024

@jackdh
This boilerplate only has frontend, no backend included.
The node server serves as HMR (hot module replacement) on dev environment and has nothing to do in production.

from react-boilerplate-typescript.

jackdh avatar jackdh commented on May 2, 2024

@Can-Sahin @ericviston

Not to worry, I guess I was looking to do something like:

https://github.com/TrillCyborg/fullstack

However as @ericviston says if this is frontend only then it makes sense to leave the server as it is :)

from react-boilerplate-typescript.

Related Issues (20)

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.