These are chat archives for reactioncommerce/reaction

5th
Feb 2016
Sebastian Sastre
@sebastianconcept
Feb 05 2016 00:35
guys, if I'm working in creating a package under packages/reaction-my-package that will have a symlink to where the code of that package really is sitting. When I change the code in there, meteor is not rebuilding/hot reloading. Doesn't sound completely unreasonable but how you usually manage such situation?
Sebastian Sastre
@sebastianconcept
Feb 05 2016 00:44
for now I'll not use the symlink, but have the whole package code for good on packages/
Brent Hoover
@zenweasel
Feb 05 2016 00:44
That’s what I typically do. Although I am puzzled why the symlink doesn’t work
Sebastian Sastre
@sebastianconcept
Feb 05 2016 00:45
cool. It's good enough like this
M Bybee
@MBybee
Feb 05 2016 03:30
How long should I wait before trying to pull v12? Is it about ready for a newb to test?
Brent Hoover
@zenweasel
Feb 05 2016 03:34
Not ready yet. I think another day or so at the most.
newsiberian
@newsiberian
Feb 05 2016 03:38
@sebastianconcept, symlink works fine for me. Have you added your package into .meteor/packages?
Sebastian Sastre
@sebastianconcept
Feb 05 2016 03:39
I did
I'm done for today but I can try again tomorrow and follow up
Sebastian Sastre
@sebastianconcept
Feb 05 2016 12:16
I've tried again and when added client/startup.js file it didn't reload. When removed symlink and used a copy it did
Guys I'd like to see an example of a package that creates products that have different behavior
I've seen https://waffle.io/getoutfitted/reaction-rental-products but I'd like to see others too. Any pointer? Thanks
Aaron Judd
@aaronjudd
Feb 05 2016 15:04
@sebastianconcept I believe that thePACKAGES_DIRS can be multiple directories, split with :. No need for symlinks.
Sebastian Sastre
@sebastianconcept
Feb 05 2016 15:05
ah, that would work. But I'm not stuck on that, I'm using it without symlink and just all the package code in packages/blah-package
Sebastian Sastre
@sebastianconcept
Feb 05 2016 15:06
nice reference, so yeah it supports several
Aaron Judd
@aaronjudd
Feb 05 2016 15:06
just good to know, you have can have packages in multiple. might get crazy confusing but at least you can
Sebastian Sastre
@sebastianconcept
Feb 05 2016 15:08
regarding to an example of a product that's different from reaction's default products?
I mean products that behave differently (when selecting them and setting them up)
After installing reaction-rental-products I'm seeing Uncaught ReferenceError: Products is not defined(…) should be subscribed to it?
Aaron Judd
@aaronjudd
Feb 05 2016 15:13
I’ll answer for v0.12, because will be much less of a pain. its sort of a complicated answer because there are lots of ways to do this, but it will be more obvious in v0.12 because the product template + functionality is moved into it’s own package. so you could replace / or add an entire product package, for new types, or you can use layouts (also new).
Sebastian Sastre
@sebastianconcept
Feb 05 2016 15:14
aha, interesting
Aaron Judd
@aaronjudd
Feb 05 2016 15:15
re: reaction-rental , not sure looks like “Products” probably needs to be updated to ReactionCore.Collections.Products @spencern
Sebastian Sastre
@sebastianconcept
Feb 05 2016 15:16
mm indeed, that works
updating to that..
Spencer Norman
@spencern
Feb 05 2016 17:49
@aaronjudd @sebastianconcept - we are currently in the middle of updating all of our getoutfitted packages to 0.11/0.12 - There should be a branch on all of them that works with 0.11, but we may wait until 0.12 to update the master branch for these.
Sebastian Sastre
@sebastianconcept
Feb 05 2016 22:00
--allow-incompatible-update o.O