These are chat archives for canjs/canjs

16th
Aug 2016
Sunil George
@georgesunil81
Aug 16 2016 15:39
Has anybody used font-awesome with steal build? I am getting square icons instead of the actual icons when I run my application build. Anyone have any thoughts on how to resolve those?
I installed font-awesome using npm, so the font files are available in the node_modules/font-awesome folder, but I'd like to have the font files in my dist folder so that I don't need to copy over the node_modules folder to my web/app server!
Sunil George
@georgesunil81
Aug 16 2016 16:37
Can I do something in package.json so that the fontawesome files get copied to the dist folder during the build process, or do I need to do that outside of package.json (via Grunt/Gulp). Has anyone run into this kind of issue with icons? Please let me know. Thanks in advance.
Julian
@pYr0x
Aug 16 2016 16:42
Bundleassests
Gregg Roemhildt
@roemhildtg
Aug 16 2016 16:42
@georgesunil81 Are you on windows? I had that issue also. stealjs/steal-tools#504
Julian
@pYr0x
Aug 16 2016 16:42
bundleAssest
Julian
@pYr0x
Aug 16 2016 16:53
@roemhildtg can you provide a simple sample app? Then i will check later
Michael Price
@web-mech
Aug 16 2016 17:04
is there any way to access an object property directly while using the define plugin with get?
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 16 2016 17:05
@web-mech with 2.x.x you should use attr
Michael Price
@web-mech
Aug 16 2016 17:06
@cherifGsou i need to without attr
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 16 2016 17:07
the new can-define is attrless
Gregg Roemhildt
@roemhildtg
Aug 16 2016 17:07
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 16 2016 17:07
Michael Price
@web-mech
Aug 16 2016 17:08
@cherifGsoul works with 2.x?
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 16 2016 17:08
yes it should work but you have to rewrite your view models
Julian
@pYr0x
Aug 16 2016 17:09
@roemhildtg which node and npm version?
Michael Price
@web-mech
Aug 16 2016 17:10
thx for the pointer @cherifGsoul
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 16 2016 17:10
no problem
Gregg Roemhildt
@roemhildtg
Aug 16 2016 17:11
@pYr0x node: 6.3.1; npm: 3.10.3
Julian
@pYr0x
Aug 16 2016 17:11
ok
so the path looks right, but only on windows you got a backslash
Gregg Roemhildt
@roemhildtg
Aug 16 2016 17:12
Correct.
Julian
@pYr0x
Aug 16 2016 17:12
ok let me make a patch for steal-bundle.
so maybe you can try because i am on my mac
Gregg Roemhildt
@roemhildtg
Aug 16 2016 17:12
Sounds good to me, I can test
Julian
@pYr0x
Aug 16 2016 17:26
ok
so how we can test
can you do the following
take your sample
use steal-tools 1.0 rc
and make a npm install
after that remove the steal-bundler at the node_modules and do: npm install stealjs/steal-bundler#windows-path --save
and try the build
Sunil George
@georgesunil81
Aug 16 2016 17:39
@roemhildtg Yes Gregg, I am on windows. Thank for the link. I will take a look.
@pYr0x bundleAsset? Do you have a link to an example of how I could use it? Hopefully, it will help with the icons problem I am having.
and pls see my comments above
Sunil George
@georgesunil81
Aug 16 2016 17:42
Thanks @pYr0x for the link. Will take a look and see how I can utilize it. Will report back. Thanks again.
Sunil George
@georgesunil81
Aug 16 2016 17:44
Thanks @pYr0x
Sunil George
@georgesunil81
Aug 16 2016 17:51
@roemhildtg @pYr0x . I am currently using bundleAssets: true in my build.js script. I am facing the same issue as Gregg is. Please let me know if you find out a solution. If there is any workaround, please let me know of that too. I would like to apply any workarounds if they exist until we figure out the official solution.
Julian
@pYr0x
Aug 16 2016 17:52
you installed the new steal-bundle module?
Gregg Roemhildt
@roemhildtg
Aug 16 2016 17:53
Trying it now...
Julian
@pYr0x
Aug 16 2016 17:54
k
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:00
@pYr0x It does load font awesome now. I'm getting some errors that I can't explain, but that might just be my config...
Capture.PNG
Julian
@pYr0x
Aug 16 2016 18:01
hm
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:01
But it looks like your patch solves the backslash issue.
Julian
@pYr0x
Aug 16 2016 18:03
ok
but where comes the error from?
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:05
Going to try deleting/reinstalling node_modules
Julian
@pYr0x
Aug 16 2016 18:05
yeah but steal-tools does not use the new steal-bundle
module
you have to install that manually
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:07
Right. I deleted node_modules/steal-bundler and installed the #windows_path version.
Still getting the errors though
Julian
@pYr0x
Aug 16 2016 18:08
you installed steal_
?
steal is missing
right?
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:09
One sec, let me check
Julian
@pYr0x
Aug 16 2016 18:10
i think you need steal in your deps
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:14
I had it installed, but it wasn't in my deps. I updated that, but I'm still getting the errors. I'll keep testing..I'm probably missing something else
Julian
@pYr0x
Aug 16 2016 18:15
you did a build after putting steal in deps?
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:16
Yes
Julian
@pYr0x
Aug 16 2016 18:17
hm
can you try me app
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:20
Sure
Julian
@pYr0x
Aug 16 2016 18:22
btw. with steal 1.0 you dont need to add a instantiated css file stealjs/steal-css#17
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:23
Yours works well. Thats great!
Julian
@pYr0x
Aug 16 2016 18:23
hmm
ok
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:23
I was using the steal@beta. Could be the issue?
Julian
@pYr0x
Aug 16 2016 18:24
maybe stealjs/steal#825
you arent getting the beta
for there the new release is called rc
Julian
@pYr0x
Aug 16 2016 18:38
yep
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:39
Ha. I found it. I had left a bundleSteal: true line in the build.js from another project.
Julian
@pYr0x
Aug 16 2016 18:39
ok
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:39
No errors now
Julian
@pYr0x
Aug 16 2016 18:40
perfect
Gregg Roemhildt
@roemhildtg
Aug 16 2016 18:43
@pYr0x Thanks!
Julian
@pYr0x
Aug 16 2016 18:43
np