devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB
https://snuggsi.com
MIT License
398 stars 17 forks source link

<to-do> #85

Closed tmornini closed 7 years ago

tmornini commented 7 years ago

Speaking with @halorium about snuggsi today, and he mentioned that most JS frameworks (cough) have a TODO app demo and that having one would make it easier to compare with the other frameworks.

brandondees commented 7 years ago

yep it's gonna have to happen sooner or later.

snuggs commented 7 years ago

@tmornini @brandondees we'll use the window.localStorage Web API.

Further Learning

brandondees commented 7 years ago

I'm not initiated on the detailed requirements but best stick with whatever's established for this (not sure if there is a prescription / requirement on persistence at any level): http://todomvc.com/

snuggs commented 7 years ago

@brandondees @tmornini there's a (general) spec for this as well. https://github.com/tastejs/todomvc/blob/master/app-spec.md

Have addressed as checklist item in PR https://github.com/devpunks/snuggsi/issues/89

/cc @halorium

snuggs commented 7 years ago

@brandondees @tmornini @halorium Found the comparative examples. Man look.... if this is "A simple TODO in VANILLA JS" then the web is all fucked up!: /cc @pachonk

Here's others we can use as a Benchmark (Pun intended)

snuggs commented 7 years ago

Found this to use as a "Vanilla JS" ES6 reference to the concept of the mixin Storage (HTMLElement)

As an aside I think this would be a great Mixin to have as an example anyways. Of course after we refactor about 70% of their code away:

https://github.com/tastejs/todomvc/blob/gh-pages/examples/vanilla-es6/src/store.js

halorium commented 7 years ago

Wow @snuggs, you got busy on this quick. Cool. Excited to see the final product. I have built the Todo MVC app in about 3 different frameworks before so it will really help me understand what you have built.

snuggs commented 7 years ago

Found a better "Store" May want to hold on to this one. Thank you RiotJS /cc @btakita

https://github.com/tastejs/todomvc/blob/gh-pages/examples/riotjs/js/store.js