These are chat archives for canjs/canjs

4th
Jan 2019
Julian
@pYr0x
Jan 04 09:06
He @justinbmeyer .. yes i want to start with some first steps. If you want me to help, i appreciate. I can need some help to understand and do the best choice. E.g. uses es6 class syntax or old constructor functions
Frank Lemanschik
@frank-dspeed
Jan 04 12:45
@pYr0x you should go for es6 classes
i followed and algined proposals and already landed stuff for that
so you can now even assign values directly to the class and you can also mix static and none static aka prototype functions
class myClass {
  constructor() {},
  myValue: 'string'
}
works now
Justin Meyer
@justinbmeyer
Jan 04 12:48
@pYr0x want to meet today to talk about it?
apsignifi
@apsignifi
Jan 04 15:18
question: in canjs3 app, when I click a link, it works fast as expected. However, when I rightclick and 'open in new tab' it reloads the entire app again causing the slowdown.
is there a way to launch the app in a new tab without actually reloading it ?
Matthew Phillips
@matthewp
Jan 04 15:20
No, unfortunately that's the cost of single-page apps, the app has to execute every time the full page loads.
Chasen Le Hara
@chasenlehara
Jan 04 16:27
We’ll be LIVE in just a little bit with our contributors meeting, where we demo what we’ve been working on and get nerdy about various topics: https://www.youtube.com/watch?v=XZEzZY9vN9Q
Julian
@pYr0x
Jan 04 17:37
@justinbmeyer if you want.. i am online
@apsignifi you can put your stuff into a serviceworker and cache all javascript files. after opening the tab, you only need to redownload the data e.g. api calls
Justin Meyer
@justinbmeyer
Jan 04 17:40
@pYr0x does 3pm CST work for you (in 3 hrs 20 min)?
Julian
@pYr0x
Jan 04 17:40
yep...
Justin Meyer
@justinbmeyer
Jan 04 17:41
sent you a calendar invite
Julian
@pYr0x
Jan 04 18:44
k
apsignifi
@apsignifi
Jan 04 19:05
@apsignifi you can put your stuff into a serviceworker and cache all javascript files. after opening the tab, you only need to redownload the data e.g. api calls
Thanks, will try it out
apsignifi
@apsignifi
Jan 04 19:10
I wonder if there is a way to implement "using serviceworker and cache all Javascript files" in a donejs app (using can 3.0 - upgrading to higher versions soon)
Kevin Phillips
@phillipskevin
Jan 04 19:11
providing a service worker out of the box is part of this proposal: donejs/donejs#734
Frank Lemanschik
@frank-dspeed
Jan 04 19:32
@justinbmeyer just saw the meeting if your interrested we both can have a hangout i have solutions for all that
but its hard to write it all up alone
i would need help from the complet team only to point you in the right direction https://github.com/verdaccio/verdaccio
this is what i use for private unpkg
it runs well out of the box its a npm proxy
i have realy good concepts for that all doing that since 1.5 years in production and i only need to transport my ideas to you or some one else so that he can catch up at my current state and then help me to finish it up we could get a total new donejs that works amazing well
i was starting my own fork for that trying to publish all the concepts but it is to big for one person i was doing canES
Frank Lemanschik
@frank-dspeed
Jan 04 19:37
i simply build via rollup every single canjs package via the canjs repo with some modifications and optimizations as single mjs file that you can use local or via unpkg
and i can talk english a lot of better then write it so i am sure you will get it when we talk
@chasenlehara i would even love to talk to you about your marketing proposal as that would work better i also have the best topic slogan at present
its The Engagement Framework
and @matthewp look at the chunk files
Frank Lemanschik
@frank-dspeed
Jan 04 19:43
that is what i am currently working on where i pointed out treeshaking did not work as expected because of some coding style
this canes package loads everything with as minimal code as possible
and that is still to much
but loads a lot of faster then steal your right
!
and is also instant better debug able then steal builds
and best is it can also be build as SystemJS bundels splitted chunked all that
simply change rollup output to SystemJS + apply bable via plugin and we get simply a better steal result
at present most of the futures that will make rollup work like steal does are in pipline already and are experimental but they are none documented in the rollup project already
experimentalPreserveModules, experimentalCodeSplitting, experimentalDynamicImports
they will land standard soon
we are finishing up such plugins at present that can apply shared chunked styles to js objects them self
Frank Lemanschik
@frank-dspeed
Jan 04 19:48
also supports shadowDOM
its all working Today! we only need to adopt it here and write up change the guides
it will also solve doumentation issues since we split over more projects and maintainers like react and angular does rollup team documents rollup plugin owners document the plugins and so on so we can focus on the best parts of CanJS to set it ahead of compitors like react
and we have even react compatiblity
no one could have any missing pieces its simply the nativ opensource ecosystem so the biggest in the world!
Frank Lemanschik
@frank-dspeed
Jan 04 20:37
i also would love to announce that i created a CanJS Spectrum Community
i could add you all via the slack team connection if you like and make you admin
its the community build to Last!!!!
so the old slogan of donejs
i liked the slogan so much that it got choosen for that :D
Chasen Le Hara
@chasenlehara
Jan 04 22:04
@apsignifi This might interest you: https://github.com/stealjs/steal-serviceworker
@frank-dspeed You said so much, not really sure where to start
Re: Spectrum, that’s on my list of platforms to consider
Frank Lemanschik
@frank-dspeed
Jan 04 22:12
yes sorry sure all this is much to much at all but some one needs to say it :D