Giter Club home page Giter Club logo

squirt's People

Contributors

errilaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

squirt's Issues

`markup`: Reduce size of generated declarations

Simple declaration merging is used in the .d.ts files, so values like colors are repeated for each property which uses them (there are 31 instances of the color block). Should be able to make the types a little more sophisticated to use a single interface for these values, making the markup package a bit smaller.

  • Use interfaces to trim down *.types.ts
  • Use loops to trim down *.define.ts

`server`: Live reload gaps

  • Changing a global module or a dependency of a global module should purge the loader.
  • Track non-source dependencies

Extensible `Context`

Provide a facility to provide custom values in the Context object per-request. Example: a user property retrieved from a database based on the request's cookies.

  • Support export default (context: Context) => ({ additional properties }) at *.context.(ts|js|civet).
  • Provide example of augmenting the Context in docs.

`markup`: SVG and MathML support

SVG and MathML require self-closing instead of void tags. I have not located a structured list with this information.

  • Manually create a list of self-closing SVG and MathML tags
  • Add support in AST (dom.ts) for self-closing tags
  • Generate SVG and MathML elements (from @webref/elements) within svg and math modules (matching the generated functions)

`ui`: library

@squirt/ui

Fast minimal declarative client-side library for interactivity, making use of insertAdjacentHTML, outerHTML, etc.

  • Updating sections
  • Adding sections
  • Full page transitions with prefetch

Multiple globals files

Currently src/common/globals.(ts|js|civet) is supported.

  • Add support for *.global.(ts|js|civet)
  • Allow anywhere within src/

`markup`: Improved markup symbols

Use @webref packages to generate more complete symbols with doc comments.

Generate symbols for known CSS value keywords matching generated property functions.

Example:

fontWeight.bold
color.red
borderTopStyle.dashed
justifyContent.center

`server`: Default error page & automatic live reload

Errors will interrupt live-reload currently as Squirt just lets Bun show its built-in error page.

  • Provide its own error page
  • Error page should embed the live reload script.
  • If disconnected, live reload should try to reconnect

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.