corpusculejs / corpuscule Goto Github PK
View Code? Open in Web Editor NEWLightweight framework based on WebComponents and decorators
Home Page: https://corpusculejs.github.io/corpuscule
License: MIT License
Lightweight framework based on WebComponents and decorators
Home Page: https://corpusculejs.github.io/corpuscule
License: MIT License
I have been following the progress in this repo for a while, so first of all must admit the great work (especially now when I'm looking through the docs). So let me submit an issue.
Looks like the @style
is now accepting either CSS file or raw styles. This is handful, but there is an idea on my mind and I'm not sure where to implement it better.
I would like to add support for lit-css, which is a good way of sharing styles in a way compatible with LitElement. It basically can be already used with raw styles.
Here is the example how it is done in styled-lit-element
by the same author: https://github.com/lit-styles/lit-styles/blob/6bea874af7f7b0dc5f8f5e5e5095a68c724792b9/packages/styled-lit-element/src/StyledLitElementMixin.js#L18
Questions:
styled-lit-element
does via decorators?For some reason @corpuscule/element
doesn't contain decorator to define custom element. It should be added as @element
decorator.
Computed
feature should not be in the main element
package since it is a separate feature that is able to exist by itself. So there should be a @corpuscule/computed
package containing this feature
Due to new decorator proposal coming soon Corpuscule have to be rewritten back to decorators approach (legacy for now), and it should be the single option to work with framework. It moves framework toward to the goal of using the most bleeding edge technologies.
For now @corpuscule/element
has a lot of things that could be easily removed simplifying code and architecture of a package.
lit-html
Shady Rendercomputed
lit-html
Shady RenderSince Corpuscule is aiming bleeding edge and browser are getting better and better in support of new technologies, the dynamically imported shady-render
could be removed. If the shady-render is still necessary, it could be replaced through the simple babel plugin.
React is still working on it's implementation of async rendering and since Corpuscule position itself as a successor to React, it should be better to wait until the implementation is released rather than to introduce half-baked scheduler that does almost nothing.
computed
For now computed
is @corpuscule/element
built-in. That's not good because it has very insignificant connection to the package core. So I believe it would be better to move it to the separate package @corpuscule/decorator-computed
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.