Code Monkey home page Code Monkey logo

Comments (4)

bebraw avatar bebraw commented on August 30, 2024

I'm currently refactoring it a bit (simpler configuration) and hope to get the work done very soon so I can start using the generator in places. I've actually pushed a lot of weight from the core during this process. This has given a nice degree of flexibility that I like. I'm also adding some tests in place so it's easier to contribute if someone wants to.

There's no official road map but I have at least the following concerns in mind:

  • Performance - Now it generates initial bundle and then uses that to generate each page. I believe it would be better to parallelize this (worker process, nothing special) and generate a bundle per instance (less to parse). This won't help with Travis or single threaded platforms but it would likely help in my personal usage.
  • Routing - The current approach doesn't give you that SPA feeling. I think a little different approach may be required. Possibly a router could be implemented on top of a generated site although I can also consider generating JSON etc. to load PWA style.
  • Replace React with rapscallion - I gave this a go earlier but I hit some issue with rapscallion. When it's mature enough, moving to it during generation might be a good way to go.
  • Incremental generation - Instead of generating the whole site always, it would be good to look into caching at least a part of it. Maybe things like cache-loader can help here. Caching is a difficult problem, though, and I may have to invent new ways to deal with it (compose a site out of fragments that are then invalidated based on change).

Especially the last items might not happen as I don't have to maintain big sites to warrant that style of work. That said, I have to push the performance somehow as a Travis build against the webpack site is far too slow. A part of that might be just a matter of configuration.

from antwar.

frankLife avatar frankLife commented on August 30, 2024

It's good to be with the support of the backend(ssr) so that we can get SPA feeling 💯 . But I find the documentation need improving. This configuration is too simple. I find I must learn about it from source code of antwar. 😄

from antwar.

bebraw avatar bebraw commented on August 30, 2024

Yeah, the documentation isn't in sync with the implementation at the moment. The source is the best option (esp. the site + smoketest). I imagine adding SSR is far easier now than before.

I've kept Antwar out of sight on purpose as there are far more robust alternatives out there as it's not cheap to support these kind of projects (no business model). 👍

from antwar.

frankLife avatar frankLife commented on August 30, 2024

That's all right. Hope it will be better in future and I will focus on this project 👍

from antwar.

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.