These are chat archives for canjs/canjs

20th
Nov 2016
xedos
@xedoken
Nov 20 2016 07:02

Hey guys! i've worked with this stack ago. https://github.com/stealjs/steal-canjs-example

can someone upgrade this to use with canjs 3? if i do it manually i got errors. May be someone know which dependencies i should write in package.json to work with this stack? thank you. :)

Frank Lemanschik
@frank-dspeed
Nov 20 2016 11:52
hmmm
let me look if it needs upgrading don't you think the new examples on v3.canjs.com are enought?
xedos
@xedoken
Nov 20 2016 12:00
Yeah, new examples are great, but i dont find example how setup canjs 3 with stwal
Frank Lemanschik
@frank-dspeed
Nov 20 2016 12:01
you don't need to set it up you know about donejs?
donejs bundels canjs + stealjs and some more
then
mkdir empty-project && cd empty-project
donejs add app
and you got a steal + can3 app
xedos
@xedoken
Nov 20 2016 12:03
Yeah, i know about it. But there is no canjs 3.0. Right now out of the box is 2.3, right? I need setup a small stack, like canjs + steal. Then package it and require as a global script in my symfony 3 project
Frank Lemanschik
@frank-dspeed
Nov 20 2016 12:04
there is can3
just gave you the repo
:D
can3 branch :+1:
xedos
@xedoken
Nov 20 2016 12:06
Oh, thanks :) one question. If i write small donejs app, export as a global script, how i can require it in my project with script tag? Do i need require canjs, other deps before i require my global project script tag?
Frank Lemanschik
@frank-dspeed
Nov 20 2016 12:06
good question that is not consistent at present :) but it gets all fixed soon
i think about 90% possible that it will include steal and canjs
so you could realy simply load only the global exports :)
but at steal-tools for building is at present work in progress but that part should work plz try it if you expirence errors say it
xedos
@xedoken
Nov 20 2016 12:08
i really need this. Thank you for your answers, i'll try
Frank Lemanschik
@frank-dspeed
Nov 20 2016 12:08
and don't worry
we get it working :)
in general all works but there are some issus sometimes on some usecases so if you expect something is wrong simply say it it gets fixed asap
xedos
@xedoken
Nov 20 2016 12:09
Thanks :)
Frank Lemanschik
@frank-dspeed
Nov 20 2016 12:13
@xedoken when donejs can3 is public do you think the steal example you posted is still needed and usefull?
xedos
@xedoken
Nov 20 2016 12:15
Idk, may be for creating some really small projects or widgets.
I'll try done + canjs 3, export as a global, and then we will see. :)
xedos
@xedoken
Nov 20 2016 12:46
smth wrong with my npm. i try npm install -g git+https://github.com/donejs/donejs#can3 and nothing happens.. clear console.
Frank Lemanschik
@frank-dspeed
Nov 20 2016 12:50
ya sounds like a network problem
try yarn
npm install -g yarn
xedos
@xedoken
Nov 20 2016 13:04
ok, am i right that donejs 0.10.0-pre.1 already with canjs 3?
Frank Lemanschik
@frank-dspeed
Nov 20 2016 13:04
yes
you got it
:D
but i think its some versions higher already
you can do npm upgrade maybe after creating it
xedos
@xedoken
Nov 20 2016 13:05
:D finally i installed it and happy to code :)
Frank Lemanschik
@frank-dspeed
Nov 20 2016 13:05
ya rock it like its hot
xedos
@xedoken
Nov 20 2016 16:02
so, i start new donejs project, add some basic components(empty) and export to global script. then i try to load that global script in html file and i got an error Uncaught TypeError: Cannot read property 'extend' of undefined. Am i missed smth?
Frank Lemanschik
@frank-dspeed
Nov 20 2016 19:00
did you boundle steal with it?
in the build.js?