Coder Social home page Coder Social logo

Add template of Cloudflare Pages about workers HOT 4 CLOSED

syumai avatar syumai commented on June 21, 2024
Add template of Cloudflare Pages

from workers.

Comments (4)

syumai avatar syumai commented on June 21, 2024

#50 has been done.

A template based on pages-function example is wanted.

from workers.

AdjectiveAllison avatar AdjectiveAllison commented on June 21, 2024

I'd love to do this but I'm unsure what the best approach would be to create a template.

Would it just be some manual file movement/changes into the templates directory? The Makefile would need to be updated to use the direct path to the asset gen and maybe something in wrangler.toml needs to be changed?

Could I help write something that moves your examples to templates automatically perhaps?
I'm looking to help contribute and am really glad I found this exists. Let me know if there is any issue that you'd like me to tackle first.

from workers.

syumai avatar syumai commented on June 21, 2024

@AdjectiveAllison

Thank you for expressing your willingness to contribute.

For this task, there is no need to modify the core code of syumai/workers.
The following tasks are expected:

  • Create _templates/cloudflare/pages-tinygo
  • Move the contents of _examples/pages-functions to the above directory and simplify the content
    • For example, we would like to remove specific terms like syumai in /api/hello?name=syumai.
  • Adjust wrangler.toml, Makefile and README.md to have similar content as worker-tinygo
    • We want it to work with the command wrangler generate my-app syumai/workers/_templates/cloudflare/pages-tinygo
    • Although the wrangler generate command has been deprecated in wrangler v3, there is no alternative yet, so it is still acceptable to continue using it.

If you can handle these changes, it would be greatly appreciated. Thank you for your comment.

from workers.

syumai avatar syumai commented on June 21, 2024

#62 resolved this issue.

from workers.

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.