These are chat archives for canjs/canjs

1st
Nov 2016
Christopher Oliphant
@RALifeCoach
Nov 01 2016 10:04
What is the current status of 3.0?
Andrei Balmus
@abalmush
Nov 01 2016 11:17
+1
Frank Lemanschik
@frank-dspeed
Nov 01 2016 11:18
it looks pritty cool it works pritty well
none blocking issus at present spotted
why don't u simply test it out? via the can all js it includes can map and all this in a single file
Christopher Oliphant
@RALifeCoach
Nov 01 2016 11:19
can all js?
Is that a non-steal based version of CanJS 3.0?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 11:21
yes :) its simply canjs all modules in one js file
but as you whant steal no problem https://github.com/donejs/cli/blob/can3/package.json
here copy paste the dependencys and do npm install
example using can all js so called canjs.js
it includes all the modules in one js file so you can access the like Can.Map Can.fixtures
all under the Can object its good for fast testing and that
Christopher Oliphant
@RALifeCoach
Nov 01 2016 11:24
When I was working with CanJS 3.0 a few months ago, I was told it HAD to run with steal
Frank Lemanschik
@frank-dspeed
Nov 01 2016 11:24
no canjs 3 don't needs steal steal is only a module loader not realy needed
Andrei Balmus
@abalmush
Nov 01 2016 11:24
Also guys is there any plans on change a little bit the directory structure? somethink like:
  • build + (all stuff related to build process - build.js, builder.json, …)
  • demos
  • src + (all canjs stuff)
  • tests
    … and os on,
    bacause currently we have a lot of folders and files in main directory which is not quite ok I think. #projectstructure
Christopher Oliphant
@RALifeCoach
Nov 01 2016 11:24
That greatly impacted our ability to add CanJS into our existing legacy system
Frank Lemanschik
@frank-dspeed
Nov 01 2016 11:25
here
that helps to add it into your legacy system
steal is not needed
but steal could produce bundels for your legacy system also
maybe you don't understood all the parts of the system complet and should attend to some ground trainings about what this is and how it gets used
it can be integrated anywhere without additional dependencys its like angular or react
Christopher Oliphant
@RALifeCoach
Nov 01 2016 11:26
Yes - we worked with bundles - there is still a blocker bug that I created trying to use bundleDepth = 1
I had LONG conversations with CanJS dev’s about this
Julian
@pYr0x
Nov 01 2016 11:33
@frank-dspeed you need a module loader for canjs 3
you can use webpack, but steal playes nice with canjs
Frank Lemanschik
@frank-dspeed
Nov 01 2016 11:33
Why should i need that ok all good to know
Christopher Oliphant
@RALifeCoach
Nov 01 2016 11:34
@pYr0x then how does the JSBin work?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 11:34
then we can rename steal to canjs loader now?
:D
canjs-autorender and so on?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 12:45
@frank-dspeed the can.all.js includes older versions of the can js code
For example can-util in can.all.js os 3.0.1, but the most recent version of can-util is 3.0.4
Christopher Oliphant
@RALifeCoach
Nov 01 2016 13:17
there are other examples as well
Kevin Phillips
@phillipskevin
Nov 01 2016 13:19
@RALifeCoach the latest can.all.js should have all of the latest dependencies
Christopher Oliphant
@RALifeCoach
Nov 01 2016 13:32
I was looking at the JSBin - it was using an earlier version of can.all.js
Frank Lemanschik
@frank-dspeed
Nov 01 2016 13:54
ya but to make that clear there is now https://rawgit.com/canjs/canjs/v3.0.0-pre.20/dist/global/can.all.js and where and why should it need a module loader?
with module loader i refer to steal requireJS or any
Kevin Phillips
@phillipskevin
Nov 01 2016 13:55
well, can.all.js is a dev build
that includes everything
you might want a module loader if you want a production build
or if you want to only include the pieces of CanJS that you’re using in your app
Frank Lemanschik
@frank-dspeed
Nov 01 2016 13:56
ya but for the issu of @RALifeCoach it will solve all or i am wrong?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 13:56
It starts with its own module loader. That way it works without needing steal.js
Frank Lemanschik
@frank-dspeed
Nov 01 2016 13:57
he can simply implament it at present and use it like any other and so migrate his 2.3 components to 3.0 once
Christopher Oliphant
@RALifeCoach
Nov 01 2016 13:57
Our need is to load canjs once on a page and then have several independent components that all reference the one canjs library
Kevin Phillips
@phillipskevin
Nov 01 2016 13:57
I didn’t read the whole history of this conversation, so I’m not sure what the issue is
Frank Lemanschik
@frank-dspeed
Nov 01 2016 13:58
ya and thats do able i think with this can.all.js
Kevin Phillips
@phillipskevin
Nov 01 2016 13:58
you can do that with can.all.js
or build your own with steal
Frank Lemanschik
@frank-dspeed
Nov 01 2016 13:58
:D
Kevin Phillips
@phillipskevin
Nov 01 2016 13:58
can.all.js is built with steal
steal-tools
Frank Lemanschik
@frank-dspeed
Nov 01 2016 13:59
ok so i understood it right :) all is still use able like befor nothing changed
Kevin Phillips
@phillipskevin
Nov 01 2016 14:01
in 3.0, we changed all of canjs to use commonjs modules instead of steal syntax
so it should be easier to use without steal now
but you can still use canjs in all the same ways you could with 2.3
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:02
exactly :) and thats why his migration path would be simply to include the CanJS3 modules via javascript tags or how he likes and then simply use them
and later replace complet his loading of canjs2.3 and as 3.0 has no real braking changes he can probally simply replace it complet with less effort
simple search replace should be enought
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:04
I wish I had known this a couple of months ago :-)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:04
Christopher i am aviable for hire if you need consalting or some one
who helps you
:D
Kevin Phillips
@phillipskevin
Nov 01 2016 14:05
like I said, can.all.js is a dev build
probably not what you want to use in production
the migration guide also documents all of the breaking changes
there are definitely breaking changes
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:05
ya but for standart cases there are no brakes simply look at bitballs example
you can still use the old syntax and it gives warnings and after that its simply replacing some method names and object names
Kevin Phillips
@phillipskevin
Nov 01 2016 14:06
bitballs is using 2.3
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:06
no
it has a Can3 Branch
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:06
@phillipskevin @frank-dspeed I developed code that used 3.0, so I am not worried about changes
Kevin Phillips
@phillipskevin
Nov 01 2016 14:06
it’s still being worked on
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:06
ya i used it last week as project base
and migrated it fully
it was not hard
Kevin Phillips
@phillipskevin
Nov 01 2016 14:07
great
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:07
all working
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:07
The problem was having a standalone version of CanJS
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:07
ya you can create a standalone version via steal-tools or you use can.all
can.all for dev maybe and a steal-tools or any other canjs build for production
Kevin Phillips
@phillipskevin
Nov 01 2016 14:08
there may be a global production build at some point
there isn’t yet though
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:08
We used steal-tools to build multiple mains - however there is a bug in steal-tools when bundleDepth is set to 1
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:09
what kind of bug
maybe i can fix it fast
did you create a issu on that?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:09
It is on Justin’s todo list, but it has been there from a couple of months now
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:09
ill do it now tell me the issu
so i can watch into it
i need steps to reproduce all this
i am working havy at present on the whole canjs steal tool chain and project generation and managment and that coupled with server side rendering
i know the tool chain realy well
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:11
stealjs/steal-tools#523
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:12
damn i am to silly to read the issu :)
thats why no one works on it probally
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:12
server side rendering?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:13
ya done-ssr
it takes a canjs component and renders it on backend
:D
its called isomorphic code so you can save time and code the whole app and serve it directly
but lets come back to your issu what the exact problem
i would need example commands and that
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:15
the gihub repository is given in the issue
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:15
out of this graphic i can't see any fails or suggest anything i am wondering how justin and math understand this
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:15
build with bundleDepth set to 2 and run the app - I get one set of results
build with bundleDepth set to 1 and run the app - I get different results
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:16
ok
as far as i understand
as soon as you add item3 it brakes
if that wouldn't bracke all are happy right?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:17
no - it is about building using steal-tools
it builds incorrectly when bundleDepth is set to 1
when that is fixed, then I will be happy
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:18
but there are 2 items
in that git hub you talk about item 2
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:18
That will give me the one CanJS file that I can include on my page, plus individual files for each item
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:18
but item 1 says it also fails after adding item 3 right?
ah so item 2 only happens
after adding item 3?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:19
I have no idea why you keep talking about item 2 or item 3
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:19
bound depth 1 works with 2 items but not with 3
because you call them this way in the repo :D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:20
I don’t remember if it works with 2 items or not
I just know that as configured it doesn’t work
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:20
item 1 = says something is working if you add main 1 and 2
but not if you add main 3
ok so building that working with depth 1 is the goal
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:21
yes
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:21
i will check if it does that with my current private steal tools
and if not will fix the offical once
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:21
okay - that would be appreciated
also keep matthew in the loop so that he doesn’t also work on it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:22
no problem will ping him i don't think he currently works on it as matt did assign him self to this
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:24
(Sorry I meant Matt)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:25
ya matt is busy doing other things no problem
i just cloned it will look into it
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:26
thanks
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:32
do i see that right that the build result files are right butt it loads them simply wrong?
because your right i get to much requests but the resulting files look good
ah no
now i see the fail :D
there shouldnt be combined files
simply set bundledepth to 0
and look if that solves the problem
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:35
when I run the app - i get different (incorrect) results
when bundleDepth is set to 1
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:37
ya you need to set it to 0
then you get more correct results that you expect and also need to change the file names inside the /dev1/ * folders to always be main.js
there is a bug when files end with a number
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:38
instead of me renaming the files, I would prefer that the bug get fixed
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:39
the problem for me is that i don't see a real bug on the first view at present :(
i understand its not working for you but i don't know where to hook into that
Kevin Phillips
@phillipskevin
Nov 01 2016 14:39
@matthewp might be able to point you in the right direction if you want to work on it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:39
i could now make this repo working but that wouldn't help you
Kevin Phillips
@phillipskevin
Nov 01 2016 14:40
if you reach out to him
he’s working on stuff for steal 1.0 now
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:43
i am confused thats all
i cloned the repository and node build.js and changed that to depth 1
and all html files are working
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:43
did you run the html files?
did you compare the output to the ticket?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:44
ya it looks all great
prod_2.html only don't works
because you set main wrong
and so on
the only fails in this example are typos
prod_1 shows what it should show i think
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:45
typos I don’t care about
I am running it now
I set bundleDepth to 0 and I get an error
Calculating progressively loaded bundle(s)...
Flattening progressively loaded bundle(s)...
Potentially unhandled rejection [156] TypeError: Cannot read property 'name' of undefined
at /git/canjsbuiltit/node_modules/steal-tools/lib/bundle/make_bundle_name_map.js:6:13
at Array.forEach (native)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:46
what error do you get what nodejs version are you using
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:46
just a sec - I am rebuilding with depth = 1
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:46
i get no errors no where on nodejs 6.7
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:46
I am on node 4.5
let me update
(Trying to keep up with JS versions is a full time job)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:49
no its not
we are now working on 8
7 is current
but you can't use node 7 now with canjs i am working on that via coding a new generator-canjs that will update all dependencys
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:50
I downloaded 6.9.1
Kevin Phillips
@phillipskevin
Nov 01 2016 14:51
with donejs you mean
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:51
Kevin your right :) Deutsche genauigkeit
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:53
I still get the error when I build with bundleDepth = 0
Calculating main bundle(s)... Flattening main bundle(s)... Calculating progressively loaded bundle(s)... Flattening progressively loaded bundle(s)... Potentially unhandled rejection [157] TypeError: Cannot read property 'name' of undefined at /git/canjsbuiltit/node_modules/steal-tools/lib/bundle/make_bundle_name_map.js:6:13 at Array.forEach (native)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:53
do you got docker?
lets use docker to get the same results
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:54
no I don’t have docker
at least not locally
I use a cloud docker
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:54
hmmm let me think about how we solve that
do you got the repo on a machine where you got root
where you wanna build that ?
or would it help you when i create a docker image that builds that for you?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:55
It is on my MAC
I can use sudo when I need root
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:55
ok so a image that builds that repo would help you?
you could install kitmatic on your mac to run the docker container
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:55
I would prefer to have it work without docker
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:56
the problem is that its probally not working because your dependencys
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:56
Is it that fragile?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 14:56
its not fragil but you need to understand nodejs package managment
:D
you need to upgrade steal-tools to the latest version from git
and all its dependencys
maybe something like npm upgrade steal-tools could do it
i simply whant to use docker because so i can simply exclude all that you as user could do wrong :)
it is more fast then debuging your local mac install of nodejs
maybe your bug is even mac related i am using Linux
Christopher Oliphant
@RALifeCoach
Nov 01 2016 14:59
My bug? Shouldn’t it work on all OS’s?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:00
it should but it has many dependencys that can have os related issus and no one can fix them until he knows the issus and can reproduce them
thats why i work on a new tool chain for project upgrades with new dependencys :D
as this is needed to apply bug fixes from dependencys more fast fail save
if your brave you can try to install yarn global
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:01
I am uninstalling steal tools and then I will re-install
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:01
and then do a yarn global upgrade
flat
maybe that solves your issus and will tell you where the fails comed from but its riski
ya uninstall steal-tools reinstall from giturl
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:04
actually - all I needed to do was upgrade the version number of steal-tools and run npm install
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:05
ya that can work too depending on the npm version :)
npm it self is full of issus i am maintainer i know that
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:05
I use npm3
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:05
ya npm3 has many versions :D
no need to go deeper into that if it works it works we are happy
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:06
like I said - keeping up is a full time job
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:07
in future not :)
simply use yarn when it reaches 1.0
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:08
When will this wondrous future arrive?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:08
its a new package manager from facebook
it replaces npm
its already there but has some issus sometimes in complex situations
in general it works great :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:08
oh boy - another new package manager
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:09
yes :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:09
is bower in or out?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:09
out
steal and webpack are in
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:09
lol
things are out before I figure out that they were even in
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:10
ya but they are all not realy diffrent :)
only from outside view but they all do the same things
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:10
okay - upgrading steal-tools worked
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:10
if your a bower user its not hard to switch to npm or is it :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:10
it now builds
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:11
so we can party :)
?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:11
Let’s see if the generated files work
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:11
ya sure lets see that prod_2.html there you need to add main2.js
not main
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:11
I am running prod_1.html
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:12
ya that just works right
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:12
and it is still not correct
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:12
whats wrong with it
it shows 2 boxes
should show 3?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:12
I see no boxes
I see

Production Site 1 & 2

My custom Button
[object Object] 22

Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:13
hmm ok let me think about why your result could be diffrent then my
i see the boxes
plz
zip your dist folder
or publish your dist folder
maybe the error is on a totall other side
maybe do npm ls steal
in your directory of the clone
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:16
I am pushing the dist folder now
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:16
buildit@1.0.0 /home/frank/helpclone/canjsbuildit
├── steal@1.0.0-beta.3
└─┬ steal-tools@1.0.0-beta.3
└── steal@1.0.0-rc.5
this is what i use
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:17
the folder is pushed
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:17
got it already
good
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:17
have a look at my package.json
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:18
i get same result with your
!
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:18
I may have obsolete steal and other canjs components
what browser?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:19
chrome
so your right
your producing wrong dist
but my versions produce right dist
i can demonstrate that
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:20
maybe the wrong version of steal?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:20
ya like i sayed wrong version of all maybe
thats why i suggested using docker
:D
and your right
the changes in package.json
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:21
even in docker - if my package.json is wrong - it won’t matter
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:21
case it all to fail
ya but in docker its more easy to be sure
let me look whats diffrent
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:27
lol as far as i see
the whole repo is now not working any more as befor :D
but if you revert your package.json changes
it works again
so anything is wrong with the new versions you setted in your current package.json
the old once are working fine if you then do build.js
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:28
I only changed the version of steal-tools
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:28
it works like a charm
no you changed more
frank-dspeed/canjsbuildit@a42f13d
review the package.json changes then set all what you deleted back in remove the new added
do npm install then do node build
then check prod_1 is working
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:33
I notice you have bundleDepth = 3
That works
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:34
no
in my current version i have 1 that works
belive me i am realy exact
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:34
okay
oay
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:34
you can watch it via teamviewer if you like
i do node build then i do http-server
and then all works
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:35
I restored the package.json
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:35
did delete /dist many times
ya restore package.json then install that
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:35
then npm install
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:35
npm install and then node build and then http-server
right
i use yarn if that don't helped you npm is the problem :D
and do http-server in it
i now pushed my dist also
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:39
I will do that in a minute - I am trying to ensure that everything is exactly in agreement
run my latest prod_1.html
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:39
ya it works all well
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:40
hmmm
I am restoring the version of steal-tools
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:40
wait i publish it to the web for you
dont waist your time
with this restoring ideas
npm can't restore nothing
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:41
publish what to the web?

when I run I get: ```Production Site 1 & 2

[object Object] 22
[object Object] 22```

Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:41
and when you run my version
copy my dist folder
i just pushed it
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:42
I haven’t copies that yet
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:42
git clone my current master
and simply run prod_1
if that works you simply know you need to delete node_modules
and re install
the problem comes from anything in your node_modules that you require
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:44
I am cloning your repo
I will run from there
My internet is very slow
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:46
simply install yarn then
npm install -g yarn
then you do yarn install
yarn caches packages :D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:46
I ran your code and I am getting a new error
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:47
nice what error do you get
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:47
hang on - I didn’t run npm install
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:47
you don't need to npm install
only steal
as the rest is used from dist
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:48
but I need to run install to get steal
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:48
ok
i am happy if that works :)
then i got a good day
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:49
I will be happy too
then I can take a break and go have a soak in my hot tub
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:49
as its working here i think it can work for you too
i know mac sucks but lets cross fingers
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:50
would you prefer that I be on Windows?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:50
Ubuntu
i run even my windows games under ubuntu
ubuntu snappy + docker
the holy gral
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:51
I used to have an ubuntu server on the cloud - it ran my word press web site
I was hacked so often the cloud server shut me down
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:51
i hate wordpress but i started sitepressjs yesterday
porting wordpress complet to nodejs
:D
as i coded so much of the api stack already in node i can make a own project out of it
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:52
interesting - WordPress is good if you don’t want to spend any time and just get a site up quickly
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:52
ya but donejs is that also soon
as soon as more components exist
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:52
okay - it’s working
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:52
and the version problems are stabilised
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:52
Yeah!
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:53
i have my own fork of donejs to get all that working thats why i am not uptodate with the current process of the rest of the team :)
happy that its working :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:53
thanks
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:53
don't touch it i will keep an eye on your example and add it to the tests
so i make sure it keeps working in 3.0 full also
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:54
I have deleted node_modules and I am doing a new npm install
let’s see if that makes my version work
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:54
ya that helps a lot thx
but i did this also
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:54
thanks for your help
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:54
i can do that in secunds
Christopher Oliphant
@RALifeCoach
Nov 01 2016 15:55
I’m off to the hot tub now
Frank Lemanschik
@frank-dspeed
Nov 01 2016 15:55
frank@frank-MS-7821:~/helpclone/canjsbuildit$ yarn install --ignore-engines
yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.0.14: The platform "linux" is incompatible with this module.
info "fsevents@1.0.14" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 6.03s.
look 6 sec complet npm install
via yarn :)
you can close the issu i think
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:06
@matthewp this is a mark for you so you can scroll up about stealjs/steal-tools#523
Matthew Phillips
@matthewp
Nov 01 2016 16:12
Ah cool
upgrading fixed the issue?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:13
not realy but keeping consisten versions that belong to each others fixes the issu
:D
he used wrong steal-tools and other dependency combinations
Matthew Phillips
@matthewp
Nov 01 2016 16:14
oh, i see
i'll respond to your donejs/cli issue btw
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:15
Deleting Node Modules fresh re install did fix it.
Matthew Phillips
@matthewp
Nov 01 2016 16:15
i like what you're doing there
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:15
oh thx i do it for me thats because its so good :)
i create many apps for my own visions thats why i see a need to fix all that
Matthew Phillips
@matthewp
Nov 01 2016 16:15
:)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:16
you can prepare to strip out of generator-donejs the canjs parts
i am at present in contact with the generator of generator-canjs and got repo access
i update that generator and you can then use that as sub generator in donejs
Matthew Phillips
@matthewp
Nov 01 2016 16:17
We are working on donejs 1.0 soon, so would be good to have this as part of that
i'll talk to the other team members and have them give you some feedback
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:17
ya you can use generator-canjs then
its more logic
i also generate a option into it to install steal as dependency
so donejs is left to documentjs & testee + canjs
you only need to care about the documentjs and testee parts and done-ssr
that i by the way would rename to steal-ssr as that is more what it is
i also started on that steal-serve and steal-ssr
Matthew Phillips
@matthewp
Nov 01 2016 16:19
i know, we renamed it like 5 times
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:19
ya most current would be steal-*
:)
then all is in shape
Matthew Phillips
@matthewp
Nov 01 2016 16:19
it does have canjs deps though
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:19
then you can use canjs with all other loaders
steal is a loader
donejs adds documentation and testee
as also the cli util and framework around that to create projects
Matthew Phillips
@matthewp
Nov 01 2016 16:20
donejs is mainly about canjs+stealjs
those are the integration points at least
like done-component is a a steal plugin for creating can components
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:20
ya then you can in 1 week relay on generator-canjs
wich will support auto managment of steal and canjs dependencys
to be compatible
and even autp upgrade projects
Matthew Phillips
@matthewp
Nov 01 2016 16:21
why not in generator-donejs?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:21
via suggestions
because canjs is canjs
Matthew Phillips
@matthewp
Nov 01 2016 16:21
i see
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:21
rename canjs to donejs
:D
Matthew Phillips
@matthewp
Nov 01 2016 16:21
hah
not sure about that one
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:21
its more logical to the community i think
Matthew Phillips
@matthewp
Nov 01 2016 16:22
i can see that you have a lot of great ideas
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:22
to use canjs and not donejs
donejs feels like its not part of the eco system
Matthew Phillips
@matthewp
Nov 01 2016 16:22
so i think if you make a better generator with generator-canjs, you can experiment there
which ecosystem?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:22
of a donejs app :)
Matthew Phillips
@matthewp
Nov 01 2016 16:22
donejs doesn't feel like it's part of the donejs ecosystem?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:22
donejs adds more probleems to the steal canjs combo then it solves
thats why i so havy investigate
Matthew Phillips
@matthewp
Nov 01 2016 16:23
are you talking about the cli tools?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:23
right
Matthew Phillips
@matthewp
Nov 01 2016 16:23
ok
let's improve them then :)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:23
all whats named donejs
the documentation is good
but should also be renamed to steal and canjs
so it makes more sense for new people
Matthew Phillips
@matthewp
Nov 01 2016 16:24
it sounds like you want to use yo directly, is that right?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:24
use it directly should be possible but also programatic as sub generators
like it is tought from yaoman it self
so we can use all generators with each other
most importent is to add versions into it so that it can interact on version base can2.3+ can3
and it should be possible to run over existing projects and upgrade them to 2.3 and from 2.3 to 3
Matthew Phillips
@matthewp
Nov 01 2016 16:26
how will it upgrade them?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:26
it will parse the files and then suggest code changes and you can hit yes no or leave
Matthew Phillips
@matthewp
Nov 01 2016 16:26
upgrading between donejs versions is a big pain point right now
does yeoman have this sort of thing built in?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:27
yes it has
Matthew Phillips
@matthewp
Nov 01 2016 16:27
that's interesting
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:27
not for all situations but i get it done
no problem :)
i simply collect issus and rules
and apply them and soon all will work automatic
as soon as we know all issus that happen on upgrades
i am only using this round about 1,5 month so i am not knowing it all
but i am working fulltime on it
:D
Matthew Phillips
@matthewp
Nov 01 2016 16:28
we should have you on the donejs hangout soon and you can demonstrate the stuff you've been working on
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:28
i hate this hangout thing i am not familary with it
tought about attending to it :)
but i am not comfortable with that also
Matthew Phillips
@matthewp
Nov 01 2016 16:29
oh well, it's up to you, i was just thinking it might make it easier for us to understand it all
since there's a lot you've been changing
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:29
there should be createt tools that solve the who talks when issu
like on birthday or who lives where
all this takes to much time :)
that can all be done with diffrent applications that say who has birthday when and then sort who talks
:D
i watched all hangouts so i know that when this wouldn't happen i could have learnd much faster
when i should realy attend to one of the hangouts then you need to code a donejs app for that event where all hangout members register and put in location birthday or what ever is used
Matthew Phillips
@matthewp
Nov 01 2016 16:31
that's fine, we can discuss it through issues
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:31
and it tells when who talks
justin takes to long to think about who is located where
a application could solve that easy
Matthew Phillips
@matthewp
Nov 01 2016 16:32
oh, hah
i was confused what you were talking about
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:33
about the choosing :)
Matthew Phillips
@matthewp
Nov 01 2016 16:33
haha
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:33
when a meeting starts
Matthew Phillips
@matthewp
Nov 01 2016 16:33
so an app to figure out what order we go
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:33
ya right
diffrent algos
;)
birthday , location
commit amount
what so ever
but not via human thinking
Matthew Phillips
@matthewp
Nov 01 2016 16:34
hah, the human element makes it more fun though
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:34
it consumes time :)
not all have time some people not like me whant to learn it of side
while they have regular jobs
or projects
it would help them to jump in
Matthew Phillips
@matthewp
Nov 01 2016 16:35
the meeting aren't much for learning
more about giving an update on what we are working on
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:35
ya thats importent to learn what your doing isn't it :)
else no one knows where this ends
i frist watched what your doing befor i reviewed the code
so i knowed if it will stay stable
this is also something that needs to get solved global roadmap
Matthew Phillips
@matthewp
Nov 01 2016 16:36
well, i need to get back to work. i'll ping a couple of people to respond to your cli proposal
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:36
i am working on that
ya i prepare also a fork that is compatible always to donejs
don't worry
i am able to do directly pull requests
Matthew Phillips
@matthewp
Nov 01 2016 16:39
ok, cool
we are working on donejs soon, so we can make sure this new stuff is accounted for
and pulled it
i'll ping them
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:50
@frank-dspeed I am not getting the same results as you so I am having a closer look
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:50
what result do you get now?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:50
the list folder looks like it was built with bundleDepth = 3
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:50
it looks like
but it is with dep 1
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:51
I don’t want main1-main2.js, main1-main2-main3.js, main1-man3.js
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:51
then delete them they shouldn't be needed
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:52
but they were read when I loaded prod_1.html
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:52
steal has a algo that looks if this style exists
it don't supports what you expect it to do
it has no loading parameter for that
it reads your package.json and loads the expected structure
you need to modify the steal load in prod_1.html
to get what you whant to get
i will work on steal probally next year then all will get better :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:54
for my curiousity, what happens if you delete /dist, set bundleDepth to 1, rebuild and rerun
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:54
i did it just now
frank@frank-MS-7821:~/helpclone/canjsbuildit$ ls dist/*
buildit main1-main2.css main1-main2.js main1-main2-main3.js
the same happens
looks like same result as depth 1
ah 3
simply don't worry about that i will address all this soon
at present most importent is to get my prerendering server render donejs projects with the right version then this code is portable
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:57
when I rename those files (main1-main2.js, etc) the code stops working
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:57
to solve all other problems that exist
ya because you use doneauto render
you need to understand !doneautorender does a lot of magic
you need to drop that and pass in the files manual
Christopher Oliphant
@RALifeCoach
Nov 01 2016 16:58
and I don’t want those files
Frank Lemanschik
@frank-dspeed
Nov 01 2016 16:58
you don't need them
you can use the results of /dev1 and so on
the main2-main3.js
are only concatinated
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:00
delete them and see if the program runs
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:03
ah your right sorry
now you got me to investigate directly
you whant the files i think
but you don't whant them to have that name
look what i found :)
when we watch into our main file app.js in dist we will see first line system.bundles
System.bundles = {"bundles/main1-main2-main3":["buildit@1.0.0#module1/module"],"bundles/main1-main2":["$css","can-define@0.7.29#define-helpers/define-helpers","can-define@0.7.29#map/map","@less-engine","$less","can-view-import@3.0.0#can-view-import","buildit@1.0.0#button-comp/button-comp.stache!steal-stache@3.0.0#steal-stache","buildit@1.0.0#button-comp/button-comp"],"bundles/main1-main2.css!":["buildit@1.0.0#button-comp/button-comp.less!$less"],"bundles/buildit/dev1/main1.css!":["css/style.css!$css"],"bundles/buildit/dev1/main1":["buildit@1.0.0#dev1/main1"],"bundles/buildit/dev2/main2":["buildit@1.0.0#dev2/main2"],"bundles/buildit/dev3/main3":["buildit@1.0.0#dev3/main3"]};
there we see what they include
as you see
nothing is doublicated
dubbled so all perfect
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:05
But the whole point of this is to have ONE file for CanJS libraries and ONE file for each of my components
I want ONLY app.js, main1.js, main2.js and main3.js
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:06
but that would double all the modules
you can only get steal to do such crazy things with indipendent build
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:07
But I don’t want steal to do anything at run time
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:07
at present you handle dev1 dev2 as part of one build
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:07
We have a huge page with many modules - it is already slow to load
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:08
oh
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:08
I want as few files as possible at run time
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:08
did you know that combining css and js os out?
js css minifying and combining what your doing is out
anyway
:D
didn't you know that you need to switch to http2
then you site will get fast again
without changes
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:09
but I also need main1 to be completely independent of main2 and main3 as it may get included on a different page all by itself
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:09
then handle them realy as indipendent projects
don't build them in one step
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:10
This is a huge legacy system - switching to http2 would not be trivial
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:10
but its needed
i can help you with that i am dev ops specialist
i can do this with less effort
without down time
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:11
I would first like to see if you can get canjs to work as it’s supposed to
I think you need to get Matthew back involved
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:13
look
delete your dist folder
rm -rf dist/*
then do change your build.js to match this
main: 'buildit/dev1/main1',
bundle: ["buildit/dev1/main1"],
so main and bundle get main1
then do node build
the result will be your expected
copy that section 3 times like you did befor
result is one main1.js file containing all can components and system.bundels
totall indipendent
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:17
yes and when I have 10 different ‘main’ components on a page, I will have had to load canjs 10 different times
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:17
ah wait wait now i get what your problem is
your wondering how to use the scripts standalone
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:18
I have a CMS. In the CMS the user drops components onto the page. The user may drop one or many components onto any given page
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:18

CanJS can pre-compile EJS, Mustache, and Stache views into JavaScript functions contained within a single file in order to avoid additional requests for view files in production. When using CanJS standalone use the can-compile Node module. Install with

npm install can-compile -g
And in your project root folder run:

can-compile --out views.production.js

Kevin Phillips
@phillipskevin
Nov 01 2016 17:19
you shouldn’t need to use can-compile
to just bundle javascript
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:19
a component may have up to 40 js files
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:19
you know a way with steal? Kevin?
is there a export ?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:20
I want them built as steal tools is supposed to build them
Matthew agreed that steal-tools has a bug - let’s ask him to fix it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:20
ya steal isn't supposed to produce tools or components
like you expect it
:D
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:20
Not according to Matthew
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:20
steal is more about pack and load a project
combined out of many components
Kevin Phillips
@phillipskevin
Nov 01 2016 17:21
you can bundleSteal
and load a script file
is that what you’re asking?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:21
he whants 1 file containing all the canjs stuff 1 one js file for eacht component
so that he can load same main js file and then the components
Kevin Phillips
@phillipskevin
Nov 01 2016 17:22
right
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:22
I keep coming back to the basic need. I have a CMS. In the CMS the user drops components onto the page. The user may drop one or many components onto any given page. I want the page to load with as little overhead and loading as few files as possible.
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:22
so each component should only contain its code without its dependencys (CANJS)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:22
that is correct
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:22
so minifying the original from src
would be enought
and load that in the right context
Kevin Phillips
@phillipskevin
Nov 01 2016 17:23
it sounds like what he wants to do would work if the bundleDepth issue was fixed
which Matthew is working on for steal 1.0
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:23
@phillipskevin bingo!
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:23
ya but we can't quick fix that
at present it is this way :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:24
although Frank told Matthew it was fixed - that it was a version mismatch issue
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:24
and we talk about now not next 6 month
it was !!!
that it showed the objects and that was a version issu
the package algo it self is like it should work and gets better with 1.0
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:24
It is generating the wrong number of files
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:24
your right lets say its a missing feature :)
1 part the real part where you get errors is solved now you see simply missing functionality
thats not ready at present and should get better
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:26
@frank-dspeed That feels like playing games - I just want this fixed
Kevin Phillips
@phillipskevin
Nov 01 2016 17:26
it’s an open issue… matthew is working on it
someone just needs to comment on that issue so matthew knows it’s not fixed
it’s still open
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:27
I thought I had a solution in can.all.js, but then I was told can.all.js is not good for production
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:27
can all is not a solution also
Kevin Phillips
@phillipskevin
Nov 01 2016 17:28
it’s not intended to be used in production, but you’re obviously free to do whatever you want with your app
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:28
i understand what you whant we whant the same
nice ready production builds
but we are far away from that
the only good solution i can think of
is switching maybe the modul loader
maybe the amd exports are more good
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:29
@phillipskevin it this point in time my tech lead is talking about using react.js because can.js has too many problems
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:30
he can use react
thats the good news
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:30
When I heard about can.all.js i thought I had found a reason to stay with CanJS
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:30
there is also react support for canjs
:)
you can switch then later
Kevin Phillips
@phillipskevin
Nov 01 2016 17:30
@RALifeCoach, are there other issues keeping you from hitting a deadline?
or just this?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:31
We are about to start on a major re-write of a section of our system
That re-write is starting very soon
I was hoping it would move straight to canJS, but the tech lead is now leaning more toward react
Kevin Phillips
@phillipskevin
Nov 01 2016 17:32
ok
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:32
I wanted to re-write using more than just a rendering tool
but with CanJS not ready, it will end up being written in JS with a react rendering tool
Kevin Phillips
@phillipskevin
Nov 01 2016 17:33
not ready how?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:33
I cannot build the files the way I need them built
Kevin Phillips
@phillipskevin
Nov 01 2016 17:33
ok, so not specifically canjs
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:33
I have waited 2 months for Matthew to fix the bundleDepth issue
canjs/steal/steal-tools - I tend to lump them together
Kevin Phillips
@phillipskevin
Nov 01 2016 17:34
ok
I get that
moving to react doesn’t solve that problem is all I mean
I understand your frustration
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:35
i am as a deployment specialist
tought now about his issu
and i can tell that his only solution is to build a bundle of his used canjs stuff
Kevin Phillips
@phillipskevin
Nov 01 2016 17:36
i don’t understand what that means
if you’re trying to explain to me
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:37
i think about how to explain that i think the issu is much bigger and not realy solve able even via bundle depth
Christopher Oliphant
@RALifeCoach
Nov 01 2016 17:37
I must go - I have to finish the required anti-bribery training before the end of the day
thanks for your time and efforts
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:37
look we say steal bundle a component
Kevin Phillips
@phillipskevin
Nov 01 2016 17:37
ok, hope your issue gets solved soon
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:38
steal looks a the component uses this and that and bundels it all up
now we tell steal to bundle a component lets call it 2
it will bundle it all up
because its needed to run the component as indipendent component
but he don't whants that because he whants to put many components on one page
and steal in general is not designed to do this
if he whants to solve his problem the steal way he would need to use something like live bundling
his whole component set
because he whants a single request for his page that contains all the components for the dependencys
needed by all components
his main problem is that he whants to enable users to drop components on the same page so simply add them to same stache
and loadoptimize that
Kevin Phillips
@phillipskevin
Nov 01 2016 17:43
I don’t think that’s a problem
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:44
the problem is
Kevin Phillips
@phillipskevin
Nov 01 2016 17:44
steal is intended to work like that, so you can do progressive loading
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:44
that every component imports Component and DefineMap
and all that
he could drop that out and load them global
and then reduce his component js to only js files static once
that do set ViewModel
and that
YA
your right in some way
his only fail is that he uses the donejs components :)
he only need to drop the imports
your right
:D
Frank Lemanschik
@frank-dspeed
Nov 01 2016 17:50
at present he uses a donejs component and imports it 3 times
its not steals fails
look here into the src folder
in the main1 he imports css and the comp
steal does no package fail it needs to include all that into the package
!!!!
but we could improve it to detect situations like that
Frank Lemanschik
@frank-dspeed
Nov 01 2016 18:55
@phillipskevin i think it is all ok i now rechecked and tought about the loading process and the file generation all is fine with it
the extra files that he don't whant to have happen because his dev folders simply arn't prepared right
Kevin Phillips
@phillipskevin
Nov 01 2016 18:56
ok, can you add your findings to the issue?
check does that make sense?
i trippel checked the resulted build and added to dev1 and dev2 and that diffrent components with diffrent dependencys
all gets generated right
Kevin Phillips
@phillipskevin
Nov 01 2016 18:59
ok, we’ll see what matthew says. I’m not too familiar with the bundleDepth stuff
Frank Lemanschik
@frank-dspeed
Nov 01 2016 18:59
its not that complex it only tells how much stuff he should put into a bundle
Kevin Phillips
@phillipskevin
Nov 01 2016 18:59
not as familiar as he is
Frank Lemanschik
@frank-dspeed
Nov 01 2016 18:59
if we say 1 we whant 1 file for each thing
mainDepth is extra only for the main app
depth is for the components
so if we say depth 3 we can have stuff of up to 3 things in one file
if we say 1 we realy only have one thing in it
Kevin Phillips
@phillipskevin
Nov 01 2016 19:01
to load main1.js we should only have to load 1 file, right?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 19:01
nope
Kevin Phillips
@phillipskevin
Nov 01 2016 19:01
and in this case you’re saying it’s loading 2
Frank Lemanschik
@frank-dspeed
Nov 01 2016 19:01
we should have to load as less files as possible
not only 1 file
Kevin Phillips
@phillipskevin
Nov 01 2016 19:01
isn’t that what bundleDepth: 1 means?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 19:01
thats his thinking fail also
Kevin Phillips
@phillipskevin
Nov 01 2016 19:01
The maximum number of bundles that need to be loaded for any bundle module.
that’s what the docs say
Frank Lemanschik
@frank-dspeed
Nov 01 2016 19:01
no depth 1 means how much to include in each file
for example i have 6 components
3 use the same stuff with depth 2 i would double some stuff
the depth thing in his structure don't matters
because he dont has components depth his structure is flat
lets say here is /app.js
then /component-1 = depth 1
and /component-2 also
but /component-3/list/edit
there it gets interristing
here would depth 3 generate a single js for component 3
and depth 1 would generate js and css for each under /list/
so depth is the level of directorys (components) nested
and in his structure is not a single nested component
Kevin Phillips
@phillipskevin
Nov 01 2016 19:05
I don’t think it is
Frank Lemanschik
@frank-dspeed
Nov 01 2016 19:05
bitballs has such a nested structure
thats why 3 is default
bitballs has /components/players/edit components/players/list
and that should get both compiled into players.js
if we would at bitballs set depth 1 we would get much more files
in his example depth makes no diffrents
only maindepth in case of 1 js and css file
so he can save 2 more files with mainDepth 1
so lets say depth 1 generates for each sub component of a component indipendent files and depth 3 would till level 3 put it into a single file
Julian
@pYr0x
Nov 01 2016 19:13
@frank-dspeed is the issue solved?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 19:13
i say it is but he has still a other issu
the other issu is a little miss understanding of how steal works
and now he needs standalone builds of his apps and i think thats not possible
Chris
@chrischrischris
Nov 01 2016 20:10
Question about delegates - is there a way to pause it when setting a watched value or do I have to use undelegate and then setup the delegate again?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:11
Good question i don't know it but i never saw a pause function so i think you need to do the secund and undelegate
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:26
@frank-dspeed can you show me working code?
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:27
I don’t like that the issue was closed without my agreement. I still haven’t seen proof that it works.
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:27
i think you don't understand it right you need a example probally
but you don't got a issu thats why it got closed first you realy got a issu that {object object] thing it was realy importent!
but now we reach the area where its general javascript understanding and knowleg so lissen i will help you
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:28
Either I don’t understand or you don’t. Can you get my example code to build into 4 files and work correctly. Then I will consider it closed.
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:28
because i am planing to do the same like you
i also whant a cms like you where i can put in components
so we have the same goal what you now need to understand is
steal will not build what you expect it to build
what you whant is a export !
look into this plz
and there jump to the stand alone part
follow the steps
you will end up in a single js file !
and you can brake that down into the js files you whant
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:31
What do you mean, “Break it down into the js files you want”?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:31
build the single js file and open it in a editor
you will understand fast
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:32
A ‘solution’ that requires manual intervention every time I build is not a solution
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:32
thats true my frind
thats why i am planing to add a option for standalone build to produce seperated files
to addressing that
Kevin Phillips
@phillipskevin
Nov 01 2016 20:33
@RALifeCoach feel free to re-open the issue until it’s solved for you
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:33
i think i open proposal for steal-tools build
with the standalone single files option
will be the best
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:33
@phillipskevin Matthew looked at the issue and believed there was a bug
Kevin Phillips
@phillipskevin
Nov 01 2016 20:33
i know
i agree with you
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:34
It seems best to let him (encourage him) to have a look at it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:34
@RALifeCoach do you agree with me that creating single files for each component and its used dependencys is the right solution?
Kevin Phillips
@phillipskevin
Nov 01 2016 20:34
he assigned it to himself in order to indicate he is looking into it
@frank-dspeed I don’t agree that’s the right solution
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:35
But then @pYr0x closed it after talking with @frank-dspeed
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:35
i mean for his case it is
Kevin Phillips
@phillipskevin
Nov 01 2016 20:35
if you have two components, each with their own bundle, you don’t want 2 versions of canjs
I mean for his use case also
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:35
he will not get 2 versions like with jquery
its up to him to load it right without a loader
he is a free person
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:36
How do I re-open it?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:36
i know it gets problems i understand why steal is usefull he does not and whant to go the nativ way
Kevin Phillips
@phillipskevin
Nov 01 2016 20:36
is there not a button to reopen?
I can if you can't
there’s no need to say who understands what
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:37
I don’t see a re-open button, please can you do it
Kevin Phillips
@phillipskevin
Nov 01 2016 20:37
ok
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:37
thanks
Julian
@pYr0x
Nov 01 2016 20:37
so what exactly is the issue
?
dont see any
What is wrong, and what should be the result
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:38
If I build with bundleDepth = 3 and run the built code - it works. If I build with bundleDepth = 1 and run the code - it doesn’t work
Julian
@pYr0x
Nov 01 2016 20:38
frank told me that that is solved
you talk about the [object Object]
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:38
Christopher do you understand bundle depth?
listen when app js is the root/
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:39
I want the same result with bundleDepth = 1 or 3 and when bundleDepth = 1 I expect to have exactly 4 files created
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:39
and you got /components/players/list/edit
thats depth 3
then even components/players/list/list
Julian
@pYr0x
Nov 01 2016 20:39
@RALifeCoach stop! you told the problem is: If I build with bundleDepth = 1 and run the code - it doesn’t work
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:39
gets combined to players
Julian
@pYr0x
Nov 01 2016 20:39
now you talk about another issue
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:40
@frank-dspeed When you can show me a build that generates 4 files and when I run the build the code works - then - and only then - will I consider this closed
Julian
@pYr0x
Nov 01 2016 20:40
I expect to have exactly 4 files created
one issue for one problem
!
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:40
@pYr0x read the original issue - that is what I said
this?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:41
your original issu has 2 issus 1 is a failing result with a setting that had nothing to do with your situation
and other is that you expect 4 files
the 4 files version you can do your self via steal-export
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:41
Fair enough - the 4 files is a new comment, but it was discussed with Matthew before I created the issue
I didn’t think it needed re-stating when I created the issue
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:42
I think first of all i should explain mainDepth settings and depth settings of build
they belong to nested components
so folder in folder in folder
each is sub component
you whant to use it without steal canjs directly
so you need to export as global standalone
its a diffrent process you call this export build but we call it export because we don't build for donejs
or steal js
so what you whant to have is simply do the so called standalone export and write maybe a little tool that splits thats up for you
round about 10 lines of bash script with sed
or maybe 5 lines in nodejs
you should maybe consider hiring some one for this special usecase that you have
Christopher Oliphant
@RALifeCoach
Nov 01 2016 20:46
@frank-dspeed Matthew looked at this and felt it was a bug. Let’s see what he has to say once he takes a closer look. If it is as you say then I will consider whether or not I wish to persue CanJS as an development option for our situation.
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:47
i know because he only saw what i saw
[object object]
:)
thats a bug and shouldnt happen if you set depth 1 or 5 don't matters
you realy got a bug there
but the bug was not caused by canjs
it was cased by steal and steal-tools
the versions simply wasn't right
your also dealing with pre beta test stuff
Kevin Phillips
@phillipskevin
Nov 01 2016 20:48
nothing more is getting accomplished by talking about this bug here
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:49
@phillipskevin what would you suggest ?
Kevin Phillips
@phillipskevin
Nov 01 2016 20:49
the bug is open now, matthew assigned himself, we’ll see what he says when he gets to it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:49
letting this open 4 more month?
ok and if he says its not a bug what then?
then he needs to understand still how export works
Kevin Phillips
@phillipskevin
Nov 01 2016 20:50
then he closes the bug
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:50
ya but to solve the problem for @RALifeCoach we need to teach him
or his coders
as i think he don't codes on that himself
Julian
@pYr0x
Nov 01 2016 20:51
we should let matthew decide.
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:51
ok
Julian
@pYr0x
Nov 01 2016 20:51
i think @RALifeCoach is misunderstanding something
and one of the bugs ([object Object]) is solved
Frank Lemanschik
@frank-dspeed
Nov 01 2016 20:52
whats left is a feature request
for steal-export that i will assign to my self because i like the feature
Julian
@pYr0x
Nov 01 2016 20:52
ok
Kevin Phillips
@phillipskevin
Nov 01 2016 20:53
great
once you have that issue open I’d love to take a look at it
to better understand what you’re proposing
Nico R.
@nriesco
Nov 01 2016 20:53
wow a lot of activity here… any chance of can v3.0 to be finally released? :-)
Kevin Phillips
@phillipskevin
Nov 01 2016 20:54
is there something specific you’re waiting on @nriesco ?
3.0.0 is out for everything except for the main canjs/canjs
Nico R.
@nriesco
Nov 01 2016 20:54
actually I’m interested in donejs using canjs 3.0
Kevin Phillips
@phillipskevin
Nov 01 2016 20:54
but in 3.0 you might not use the combined package anyway
got ya
Nico R.
@nriesco
Nov 01 2016 20:55
and I guess can 3.0 is the first step towards that goal
Kevin Phillips
@phillipskevin
Nov 01 2016 20:55
me too :smile:
Nico R.
@nriesco
Nov 01 2016 20:55
any donejs pre reselease would be appreciated (and fully tested of course!)
Kevin Phillips
@phillipskevin
Nov 01 2016 20:56
:thumbsup:
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:02
stealjs/steal-tools#538
if can single false all can-components and fixtures and that would get a single file
Kevin Phillips
@phillipskevin
Nov 01 2016 21:03
so canSingle is specific to canjs?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:03
right
bundle canjs dependencys to single file or not
Kevin Phillips
@phillipskevin
Nov 01 2016 21:04
do we need the same thing for other frameworks then?
like react, angular, whatever
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:04
i plan to write a syntax for it
so you can group easy
something like regex
but that will take longer
so the final result will be that you can configure in steal-tools export what he should bundle in json syntax
so that it don't even relays on this true false things you can think of them as placeholders that represent groups
the goal is to have indidepndent load and run able components as @RALifeCoach needs it
Kevin Phillips
@phillipskevin
Nov 01 2016 21:06
why not just use progressive loading?
just so you can use <script> tags?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:06
maybe even add the option canSingle: none
so that he don't even produces vendor
Kevin Phillips
@phillipskevin
Nov 01 2016 21:07
not sure what you mean
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:07
he needs to be able to control the loading via script tags i think
sure all what you suggest is right and i agree
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:07
It would be nice if all of the CanJS libraries were merged into a single file
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:07
but he whants to place some script tags in the right order in his html
Kevin Phillips
@phillipskevin
Nov 01 2016 21:07
<script>
steal.done().then(function() {
    System.import(‘component1’);
});
</script>
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:08
ok good idea also
Christopher
with steal-tools.export
you get that its what the can-all produces
Kevin Phillips
@phillipskevin
Nov 01 2016 21:08
the can.all.js is all of the CanJS code merged into a single file
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:09
ya its what steal-export stand alone produces
the define exports
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:09
Yes - but it would be specific to the libraries used by the code - not the entire CanJS libraries
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:09
ah
if you realy need the whole
use can.all
don't care about the dev comment its only made because normal user don't need all
but in your case as cms why not
Kevin Phillips
@phillipskevin
Nov 01 2016 21:10
you can do the exact same thing if you just want to create a script that exports a global can
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:10
I want to be able to <script the canjs file(s) then <script include the specific files for the components needed on a page
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:11
@RALifeCoach can we use steal?
then the snippet above works
to load single components
<script>
steal.done().then(function() {
    System.import(‘component1’);
});
</script>
Kevin Phillips
@phillipskevin
Nov 01 2016 21:12
:point_up: that is how I would handle your situation
load your main code with steal
and have the components your CMS users drop in progressively load the code for their component
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:12
Does it? How do I build the component so that it can be included as described? That what I was trying to do with the bundleDepth.
I would prefer, however, to not load using steal.
Kevin Phillips
@phillipskevin
Nov 01 2016 21:13
ok, if you don’t want to use steal
then use can.all or create your own version using the same method it does
and load it with a script tag
and use the global can in your component modules
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:14
that means you drop the import require lines
Kevin Phillips
@phillipskevin
Nov 01 2016 21:14
the problem there is just that you can’t use a module loader to load any dependencies
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:14
from the components code
Kevin Phillips
@phillipskevin
Nov 01 2016 21:14
right
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:14
because you loaded it external already
Kevin Phillips
@phillipskevin
Nov 01 2016 21:14
no import or require in your component code
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:14
That’s how my day started - and then someone said that that was not a good method for production
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:14
he was right
Kevin Phillips
@phillipskevin
Nov 01 2016 21:14
the can.all.js that we create is not meant for production
you’re free to use it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:14
but he don't knowed the whole think
Kevin Phillips
@phillipskevin
Nov 01 2016 21:15
but it will log a bunch of extra stuff and be much bigger than you need
you don’t have to put words in my mouth @frank-dspeed
what I said is still the same… we didn’t intend for people to use can.all.js in production
it was mainly created for jsbin
but you can create a production version of it if you want
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:16
sure because its better to only use whats needed
Kevin Phillips
@phillipskevin
Nov 01 2016 21:16
or create an issue for us to do it
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:16
Can I get can global defined with only the libraries I need without the extra logging?
Kevin Phillips
@phillipskevin
Nov 01 2016 21:16
yes
use that same build code
modify it to do what you need
the modules: ["can/all”] should be a module that loads what you need
that is just pointing to https://github.com/canjs/canjs/blob/master/all.js which loads everything
so in your build load a module that loads what you want
and change removeDevelopmentCode: false to true to remove the log code
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:18
@RALifeCoach i have a better idea! let steal tools do it for you
via the export standalone option
Kevin Phillips
@phillipskevin
Nov 01 2016 21:19
the idea you just proposed?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:19
no
the current one
its exactly for that
:D
it produces a single.js with all used components and js
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:20
What is ‘kefir’?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:20
so can dependencys
kefir is a person that don't belives in arabic
:D
Kevin Phillips
@phillipskevin
Nov 01 2016 21:20
you don’t need kefir
it’s a stream library
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:21
thanks
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:21
stealTools.export({
system: {
main: "buildit/app",
bundle: ["buildit/dev1/main1", "buildit/dev2/main2", "buildit/dev3/main3"],
config: dirname + "/package.json!npm"
},
options: {
verbose: true
},
outputs: {
standalone: {
format: "global",
modules: ["buildit/app"],
dest:
dirname+"/ddist/standalone.js",
minify: true
}
}
})
stealTools.export({
  system: {
    main: "buildit/app",
    bundle: ["buildit/dev1/main1", "buildit/dev2/main2", "buildit/dev3/main3"],
    config: __dirname + "/package.json!npm"
  },
  options: {
    verbose: true
  },
  outputs: {
    standalone: {
      format: "global",
      modules: ["buildit/app"],
      dest: __dirname+"/ddist/standalone.js",
      minify: true
    }
  }
})
put that into your build.js plz
and run node build
after that watch into the ddist folder
i called it ddist to don't mix up the things
Kevin Phillips
@phillipskevin
Nov 01 2016 21:22
I think it’s ”+standalone”
and that will include the module code (main1, main2, main3)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:23
define("buildit@1.0.0#app",["can-stache@3.0.2#can-stache","can-component@3.0.2#can-component","can-define@0.7.29#can-define","steal-stache@3.0.0#steal-stache"],function(){});
Kevin Phillips
@phillipskevin
Nov 01 2016 21:23
i don’t think you want that stuff included
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:23
remove that one line
no it will not
oh your maybe right
let me look
but it shouldn't
Kevin Phillips
@phillipskevin
Nov 01 2016 21:23
that’s what it’s for
exporting everything
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:23
ya
but it does that not
:D
it only includes one line about the code
the rest are the pure exports
of all required in the components
so i think striping of the components line
is fair effort and produces a selected single build
we could even add a option there for only exporting canjs maybe
Kevin Phillips
@phillipskevin
Nov 01 2016 21:26
steal shouldn’t know about canjs
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:26
then we need to wait for my proposal
till its done :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:26
The solution has to produce a clean canjs file without the need for manual intervention or for the need of a script to replace manual intervention
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:26
this way we can define "can-"
gets a extra file
or he codes 5 lines to export only the can- stuff from the export
Kevin Phillips
@phillipskevin
Nov 01 2016 21:27
@RALifeCoach are you saying what I’m proposing isn’t going to do that?
it should be the same as if we provided a can.all.production.js
except smaller since it only has what you are using
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:28
@phillipskevin I think your solution will - Frank’s solution still seems to need manual work
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:29
sure my solution needs manual work you need to define what you wanna build
same effort as kevin's solution
as he sayed use the build.js of canjs it self and select the packages manualy or take them all
there you go
Kevin Phillips
@phillipskevin
Nov 01 2016 21:29
we’re probably saying the same thing
it doesn’t matter
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:31
and if your lead engineer complains tell him to google react-dom dependencys :)
then he will agree that the effort with canjs is realy less
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:41
shouldn't we update this http://www.jsdelivr.com/projects/canjs
its nice :)
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:43
ya look
Kevin Phillips
@phillipskevin
Nov 01 2016 21:43
i’m not sure what the process is to update jsdelivr
not against it though
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:43
you can compose a cdn url with needed components
Kevin Phillips
@phillipskevin
Nov 01 2016 21:44
oh, yeah, that is cool
its exactly what we whanted to do
Kevin Phillips
@phillipskevin
Nov 01 2016 21:44
cool
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:44
thats why i think we should update and encurage this
and use that for examples
Kevin Phillips
@phillipskevin
Nov 01 2016 21:45
can you export stuff?
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:45
as it already exists
Kevin Phillips
@phillipskevin
Nov 01 2016 21:45
export the can namespace for instance
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:46
i think you should be able to do so
it only chains the files
so we can produce our define exports
Kevin Phillips
@phillipskevin
Nov 01 2016 21:46
but then one of our files would have to set window.can = …
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:46
and this cdn will chain them together it only concats
Kevin Phillips
@phillipskevin
Nov 01 2016 21:46
which we don’t really want
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:46
the main would do so like query does set $
the people are familary with that concept
Kevin Phillips
@phillipskevin
Nov 01 2016 21:47
feel free to open an issue
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:47
already did :)
Kevin Phillips
@phillipskevin
Nov 01 2016 21:48
nice
found it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:48
but i don't think that one script needs to define that anyway
it simply chains the files
so its the same as we would put custom define lines in a file like we do on global export already
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:48
BTW - I ran the export and it did create the can.js file as requested
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:48
nothing chainges its only good usable
changes i meand sorry
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:49
I still need to test adding components
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:49
@RALifeCoach so the issu can be closed? after your test i hope so :)
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:49
No it can NOT be closed
that is an entirely separate issue
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:50
no its not
the old got repopend
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:50
that I still want to see fixed
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:50
lol
ok
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:50
that I can export a canjs file does not mean that bundleDepth is working
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:51
bundle depth and main depth are still working as expected as i tryed to tell you
Kevin Phillips
@phillipskevin
Nov 01 2016 21:51
let it go
no need to argue about that issue anymore
I don’t want to read about it anymore :smile:
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:51
ya lost a lot of money too
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:51
good because I am tired of typing about it
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:51
i should work again
but learnd much today
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:52
as did I - thanks to all
Kevin Phillips
@phillipskevin
Nov 01 2016 21:54
@RALifeCoach you might also want to minify your build
that option isn’t in our script
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:55
I don’t need to - the CMS takes all JS files, merges them into one file and minifies them
Kevin Phillips
@phillipskevin
Nov 01 2016 21:55
ok
like magic
except when you don’t want to do that :smile:
Christopher Oliphant
@RALifeCoach
Nov 01 2016 21:56
in the QA version of the system the files are not minified and that helps with debugging
it’s what we are used to working with
tomorrow I will build a couple of components using the global can and see how it goes
Frank Lemanschik
@frank-dspeed
Nov 01 2016 21:57
remember to load jquery befor it
remember to use on dom ready events
then your on a good way
Frank Lemanschik
@frank-dspeed
Nov 01 2016 22:29
Question who created this and has access to it?
http://www.jsdelivr.com/projects/canjs
@All