These are chat archives for canjs/canjs

24th
Jan 2017
seasoup
@seasoup
Jan 24 2017 01:36
You used to be able to get access to a components scope by doing $('component-tag').scope() is there something similar in can 3?
Kevin Phillips
@phillipskevin
Jan 24 2017 01:37
or if you’re using can-jquery, $('component-tag’).viewModel() will work the same as in 2.3
Mike Lawrence
@MikeTLawrence_twitter
Jan 24 2017 01:45
Hey everyone, I'm running bit-docs-html-canjs locally and in the index.html there is a comment that says:
THIS IS A GENERATED FILE -- ANY CHANGES MADE WILL BE OVERWRITTEN INSTEAD CHANGE: source: [object Object] @page canjs
I'm not entirely sure where I'd be looking to make that change, anyone done this before?
seasoup
@seasoup
Jan 24 2017 01:47
Thanks Kevin, works like a charm.
Kevin Phillips
@phillipskevin
Jan 24 2017 01:47
:thumbsup:
@MikeTLawrence_twitter I feel like there’s an issue open about that
I’ll take a look
Mike Lawrence
@MikeTLawrence_twitter
Jan 24 2017 01:49
Cool thanks @phillipskevin I took a look but may have missed it
Kevin Phillips
@phillipskevin
Jan 24 2017 01:54
I can’t find an issue on it right now
feel free to submit an issue
Mike Lawrence
@miketlawrence
Jan 24 2017 01:57
@phillipskevin ok right on. So if I were to make changes to that index.html file would it overwrite without me changing anything?
Kevin Phillips
@phillipskevin
Jan 24 2017 01:58
it wil lbe overwritten the next time you run bit-docs again
Mike Lawrence
@miketlawrence
Jan 24 2017 01:59
Rats
Kevin Phillips
@phillipskevin
Jan 24 2017 01:59
is there documentation your’e trying to fix?
or update
I can probably point you to the right file
Mike Lawrence
@miketlawrence
Jan 24 2017 02:00
Yeah I'm looking to update some docs
@phillipskevin I was planning to review the HTML for assistive technology markup
Kevin Phillips
@phillipskevin
Jan 24 2017 02:04
that’s great
the html is generated from the .md files
so it’s spread out in a lot of different places
but if there’s a specific page you want to start with, I can point you to the right markdown file
I didn't see any .md files there
yeah I was gonna start with index.html
Kevin Phillips
@phillipskevin
Jan 24 2017 02:07
Mike Lawrence
@miketlawrence
Jan 24 2017 02:07
yes
Kevin Phillips
@phillipskevin
Jan 24 2017 02:09
Mike Lawrence
@miketlawrence
Jan 24 2017 02:09
Kevin Phillips
@phillipskevin
Jan 24 2017 02:09
but it’s generated from bit-docs-html-canjs
so you might need to make changes there
Mike Lawrence
@miketlawrence
Jan 24 2017 02:12
giphy (1).gif
bit-docs-html-canjs is where I was seeing that
INSTEAD CHANGE: source: [object Object] @page canjs
So I guess I'm back to the "Can I edit bit-docs-html-canjs's index.html file without it being overwritten" question
Kevin Phillips
@phillipskevin
Jan 24 2017 02:15
what did you run to generate that index.html?
Mike Lawrence
@miketlawrence
Jan 24 2017 02:15
$ npm start
then $ http-server
Kevin Phillips
@phillipskevin
Jan 24 2017 02:15
ok
sorry, I get what you’re saying now
you still can’t edit that html file
Mike Lawrence
@miketlawrence
Jan 24 2017 02:16
Would I just edit the moustache files then?
Kevin Phillips
@phillipskevin
Jan 24 2017 02:18
yes, and then rerun npm start
although those are just examples
Mike Lawrence
@miketlawrence
Jan 24 2017 02:20
ok sweet
Kevin Phillips
@phillipskevin
Jan 24 2017 02:21
there is some documentation on how to contribute to the documentation: http://canjs.com/doc/guides/contributing/documentation.html
if you haven’t checked that out
Mike Lawrence
@miketlawrence
Jan 24 2017 02:21
Right, that's where I started
So, would I run $ npm start instead of $ http-server?
the docs called for $ http-server but I had to install it
Kevin Phillips
@phillipskevin
Jan 24 2017 02:23
http-server is just so you can load the html file in your browser
npm start re-generates the index.html file
Mike Lawrence
@miketlawrence
Jan 24 2017 02:23
Oh ok
I didn't see that step in the readme
no wait, yes I did
nevermind
is there a reason http-server isn't in the package.json?
I had to install it before I could run the docs locally
Kevin Phillips
@phillipskevin
Jan 24 2017 02:25
some people use other http servers
Mike Lawrence
@miketlawrence
Jan 24 2017 02:25
I see gotcha
Kevin Phillips
@phillipskevin
Jan 24 2017 02:25
that’s just an example because it’s easy to install with nodejs
Mike Lawrence
@miketlawrence
Jan 24 2017 02:25
right
makes sense
Used to running mongod I guess
Mike Lawrence
@miketlawrence
Jan 24 2017 02:30
Any plans to build a watch task?
Kevin Phillips
@phillipskevin
Jan 24 2017 02:32
I’m not sure if anyone’s requested it
definitely not a bad idea
Mike Lawrence
@miketlawrence
Jan 24 2017 02:33
Do you guys use gulp?
Kevin Phillips
@phillipskevin
Jan 24 2017 02:34
no, not usually
Mike Lawrence
@miketlawrence
Jan 24 2017 02:34
What would you use to run a watch task then?
Typically
Kevin Phillips
@phillipskevin
Jan 24 2017 02:39
well, that will need to be build into bit-docs
so that it will rerun when one of the templates changes
assuming it’s using steal for that html page… I actually don’t know
I’m not a bit-docs expert
Mike Lawrence
@miketlawrence
Jan 24 2017 02:41
Me neither :smile:
Kevin Phillips
@phillipskevin
Jan 24 2017 02:41
if you submit an issue requesting a watch task someone will respond
and can probably help out with how to add that feature
Mike Lawrence
@miketlawrence
Jan 24 2017 02:42
Yeah I think I will
I don't see steal in package.json, so I'm assuming it's not using it
Kevin Phillips
@phillipskevin
Jan 24 2017 02:46
yeah… it’s not
should have thought about that more
could use browsersync I guess
I’m not sure
Mike Lawrence
@miketlawrence
Jan 24 2017 02:47
I'm not super familiar with steal but it looks like you'd use steal instead of gulp in your app correct?
Kevin Phillips
@phillipskevin
Jan 24 2017 02:48
steal is a module loader… so we’d use it instead of webpack or browserify
most of what gulp would do we just use npm scripts for
Mike Lawrence
@miketlawrence
Jan 24 2017 02:49
I gotcha
Kevin Phillips
@phillipskevin
Jan 24 2017 02:49
so like npm start, npm run styles, etc
Mike Lawrence
@miketlawrence
Jan 24 2017 02:49
right right
feels simpler that way
Kevin Phillips
@phillipskevin
Jan 24 2017 02:52
less stuff to install at least
Mike Lawrence
@miketlawrence
Jan 24 2017 02:52
yeah -- which is nice
Mike Lawrence
@miketlawrence
Jan 24 2017 03:07
Well hey thanks for your help @phillipskevin I'm gonna putz around in CanJS for a while
Kevin Phillips
@phillipskevin
Jan 24 2017 03:07
awesome
Mike Lawrence
@miketlawrence
Jan 24 2017 03:07
See if I can get through that Chat Guide
Gregg Roemhildt
@roemhildtg
Jan 24 2017 03:38
@miketlawrence I use npm-watch to build/watch stuff. Works pretty well
Gira Minus
@gKreator
Jan 24 2017 09:02
@pYr0x It definitely does not use shadow dom by default
Julian
@pYr0x
Jan 24 2017 09:27
if it would, styling components could be encapsulated
Gira Minus
@gKreator
Jan 24 2017 09:44
yes
Pedro Mendes
@pmgmendes
Jan 24 2017 10:17
@phillipskevin, It worked fine. Thanks.
Jeroen Cornelissen
@jeroencornelissen
Jan 24 2017 14:00
I just updated to can-stache 3.0.18 and it looks like there is a bug where it strips a character after }}
For example:
<div class="loading {{#unless isUploading}}hidden{{/unless}}"></div>
Results in:
<div class="loading idden"></div>
Expected behaviour:
<div class="loading hidden"></div>
Is this a known issue and is it due to can-stache 3.0.18 or steal-stache 3.0.5
Kevin Phillips
@phillipskevin
Jan 24 2017 14:04
I don’t think there is an issue open for that
Jeroen Cornelissen
@jeroencornelissen
Jan 24 2017 14:04
Other example:
<li class="{{tabsClass}}__item">
Results in:
<li class=“mytabs_item”>
Kevin Phillips
@phillipskevin
Jan 24 2017 14:05
is it just in attributes?
I’m not seeing that issue with a simple example: http://jsbin.com/cosomehepo/1/edit?html,js,output
Jeroen Cornelissen
@jeroencornelissen
Jan 24 2017 14:07
only in attributes
<a href="javascript://" title="{{label}}aaa">{{label}}aaa</a>
the tooltip only shows 2 a's
Kevin Phillips
@phillipskevin
Jan 24 2017 14:08
Can you reproduce it in jsbin? That works ok for me too.
Jeroen Cornelissen
@jeroencornelissen
Jan 24 2017 14:10
No, I cannot reproduce in the jsbin :worried:
http://jsbin.com/tazezimeya/1/edit?html,js,output
So it’s a steal-stache issue ?
Kevin Phillips
@phillipskevin
Jan 24 2017 14:12
yeah, could be
I would be a little surprised though
steal-stache should just handle loading your templates
Jeroen Cornelissen
@jeroencornelissen
Jan 24 2017 14:50
Hmm, even if I downgrade all the dependencies, I still have the same bug.
Solution for now is to add a space after the last }
Mike Lawrence
@miketlawrence
Jan 24 2017 18:51
@roemhildtg Cool thanks I'll give that a shot
Gira Minus
@gKreator
Jan 24 2017 21:17
Yeah I'm actually running into the same bug now
I did npm update and now im having the same issue as @jeroencornelissen
Kevin Phillips
@phillipskevin
Jan 24 2017 21:22
ok
can one of you submit an issue with your package.json?
and whatever other details you can give about your project
Gira Minus
@gKreator
Jan 24 2017 21:24
ok I will
I'm going to find an old package.json to compare
Kevin Phillips
@phillipskevin
Jan 24 2017 21:24
thanks
Gira Minus
@gKreator
Jan 24 2017 21:34
yeah im just trying a bunch of package.json files until i dont have the issue
Gira Minus
@gKreator
Jan 24 2017 21:41
ok no matter what i do now.. it has the issue
i rolled back the package.json by a month since, I upgraded to steal 1.0 last thursday
panic monster is coming... i need to present this project in the next few hours lol
Kevin Phillips
@phillipskevin
Jan 24 2017 21:47
have you tried other browsers?
Gira Minus
@gKreator
Jan 24 2017 21:47
same issue on chrome and firefox
Kevin Phillips
@phillipskevin
Jan 24 2017 21:50
if you can give a list of your dependencies/devDependencies I can try it
Kevin Phillips
@phillipskevin
Jan 24 2017 21:53
does it only happen in production?
or development also?
Gira Minus
@gKreator
Jan 24 2017 21:53
both
could be that
Gira Minus
@gKreator
Jan 24 2017 21:53
that is in the timeframe
i probably only noticed this today, and its been like that for a week
Kevin Phillips
@phillipskevin
Jan 24 2017 21:54
try rolling back to can-view-parser 3.0.3
Matthew Phillips
@matthewp
Jan 24 2017 21:54
which you should be able to do by installing can-view-parser 3.0.3
Gira Minus
@gKreator
Jan 24 2017 21:56
yeah re-instlling node_modules, will let you guys know
Gira Minus
@gKreator
Jan 24 2017 22:03
yup that fixed it :D :D :D
should I write the issue report on can-view-parser? or is someone on that already>?
Matthew Phillips
@matthewp
Jan 24 2017 22:05
it would be great if you could
Gira Minus
@gKreator
Jan 24 2017 22:05
yup ill do it now
@jeroencornelissen downgrade can-view-parser to 3.0.3
Gira Minus
@gKreator
Jan 24 2017 22:10
canjs/can-view-parser#34
Matthew Phillips
@matthewp
Jan 24 2017 22:32
@gKreator thanks for the catch, it's being worked on and will have a fix by tomorrow most likely
Gira Minus
@gKreator
Jan 24 2017 22:40
@matthewp thanks but jero is the one that did most of the research on it i just saw his post and had to double check my project
Matthew Phillips
@matthewp
Jan 24 2017 22:40
ah
well
thanks canjsers :)
Gira Minus
@gKreator
Jan 24 2017 22:40
:D
Matthew Phillips
@matthewp
Jan 24 2017 22:41
thanks @jeroencornelissen
Matthew Phillips
@matthewp
Jan 24 2017 22:56
looks like @phillipskevin might have already fixed it
3.0.6
Kevin Phillips
@phillipskevin
Jan 24 2017 22:56
@jeroencornelissen @gKreator can-view-parser 3.0.6 is out
if you want to give it a try
Gira Minus
@gKreator
Jan 24 2017 22:57
i will let you know in like 10 minutes
thanks!
sweet seems to work
Kevin Phillips
@phillipskevin
Jan 24 2017 23:01
great
Gira Minus
@gKreator
Jan 24 2017 23:03
do some of you guys work on canjs full time or are ur bosses pretty cool? lol
Kevin Phillips
@phillipskevin
Jan 24 2017 23:08
there are a few of us that work on canjs full time
Matthew Phillips
@matthewp
Jan 24 2017 23:08
we do
the phillips brothers
(not actually brothers)
Gira Minus
@gKreator
Jan 24 2017 23:09
lol i was about to say
how do you make money if you dont mind me asking
Matthew Phillips
@matthewp
Jan 24 2017 23:09
money laundering mostly
j/k
Gira Minus
@gKreator
Jan 24 2017 23:10
xD
Matthew Phillips
@matthewp
Jan 24 2017 23:10
people pay us to make amazing canjs apps
and then we get to make canjs better in the promise
a nice happy loop
Gira Minus
@gKreator
Jan 24 2017 23:10
ohh so you guys do contract work?
Matthew Phillips
@matthewp
Jan 24 2017 23:10
for sure
in need of anything?
Gira Minus
@gKreator
Jan 24 2017 23:11
nope, not now atleast maybe one... but good to know
Matthew Phillips
@matthewp
Jan 24 2017 23:11
:smile:
Gira Minus
@gKreator
Jan 24 2017 23:11
i've just been wondering how you guys can work on canjs all the time and still have food
I knew a guy that worked for pluto.tv and he said justin flew out their and trained them for like 2 weeks
on how to use canjs
thats how i heard of canjs
Chasen Le Hara
@chasenlehara
Jan 24 2017 23:14
The DoneJS projects are sponsored by Bitovi, a (mostly) front-end consultancy: https://www.bitovi.com
We’re fortunate enough to be able to support a few people on open source full-time, including Justin, Kevin, Matthew, and myself.
We have all our co-workers on client projects & training to thank. :smile:
Chasen Le Hara
@chasenlehara
Jan 24 2017 23:20
@matthewp lol @ “money laundering mostly”
Matthew Phillips
@matthewp
Jan 24 2017 23:22
it's funny because i don't really know what that is
Kevin Phillips
@phillipskevin
Jan 24 2017 23:22
haven’t seen Office Space?
or Breaking Bad?
Gira Minus
@gKreator
Jan 24 2017 23:28
lol
thats really cool tho @chasenlehara