Giter Site home page Giter Site logo

Comments (9)

enuchi avatar enuchi commented on July 29, 2024

Thanks, hope this project has been useful for you.

Not sure I will add typescript into the demo app, since not all users will be familiar or would want to use it. I am redoing the docs right now though, and would be happy to include a section on how to implement typescript if a user wanted to.

Looking at how clasp does it, they are using a ts2gas package that just converts the typescript code as a string to gas-compatible code right before pushing. I think for this project, since webpack is being used, it would make more sense to just add the typescript and ts-loader packages and add a rule to the webpack config as described here: https://webpack.js.org/guides/typescript/

That way you could also use typescript for the client-side React code. Does that make sense to you too @ralphilius ?

from react-google-apps-script.

ralphilius avatar ralphilius commented on July 29, 2024

Yes. That would be great. Thanks @enuchi

from react-google-apps-script.

RCRJ avatar RCRJ commented on July 29, 2024

I'm really fortunate this issue is on your mind, I just started trying to use an external component that uses typescript. Would really appreciate someone else's expertise making sure webpack is configured correctly for that.

Thanks a lot @enuchi, this project has been extremely useful!

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Hi @ralphilius @RCRJ , I've just done a major update for the repo, and included support for typescript. One of the files in the demo now uses typescript, and it seems to work well. If you get a chance, please take a look and see if you have any issues.

from react-google-apps-script.

ralphilius avatar ralphilius commented on July 29, 2024

Hi @enuchi, this is just about time for my new project. I'll use it and give feedback. In meantime, for getting started guide what do you think if we turn this repo into a template?

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Not sure what you mean @ralphilius. What would a template look like?

from react-google-apps-script.

ralphilius avatar ralphilius commented on July 29, 2024

@enuchi This is what I mean: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Yup, just updated the settings @ralphilius

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Hey @ralphilius , going to close this since it's been a couple months. Reopen if you have issues with typescript.

from react-google-apps-script.

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.