These are chat archives for reactioncommerce/reaction

14th
Sep 2016
Vigy
@vigyano
Sep 14 2016 03:31
how to replace the header and brand html. I replaced in plugin and included in index.js but the custom brand name in plugin is not used
klipsh
@klipsh
Sep 14 2016 15:33
Hello, maybe somebody knows why there're a lot of errors while doing reaction init on Windows?? Metheor, MS Build Tools, OPEN SSL and other stuff are installed. Thanks!
in particular:
npm ERR! error: cannot spawn ssh: No such file or directory
Jeremy Shimko
@jshimko
Sep 14 2016 15:36
is that the only line in the error?
and what does reaction -v output?
soyJsus
@soyJSus
Sep 14 2016 16:04
i page the sample theme in imports/plugins/custom/ but not works
soyJsus
@soyJSus
Sep 14 2016 16:19
thanks resolv
Owen Hoskins
@owenhoskins
Sep 14 2016 16:38
@jshimko: Migrated to an EC2 t2.medium instance today and all latency issues have totally resolved. Seems like internal datacenter communication is a straight up requirement!
Jeremy Shimko
@jshimko
Sep 14 2016 16:53
@owenhoskins great!
Mike Murray
@mikemurray
Sep 14 2016 17:02
@soyJSus are you still having issues with the reaction-example-theme?
Owen Hoskins
@owenhoskins
Sep 14 2016 17:05
@jshimko: Yesss. Also, very curious what your thoughts are regarding Oplog and Reaction. Useful or not?
soyJsus
@soyJSus
Sep 14 2016 17:05
@mikemurray hi ! I'm seeing now, now take stylesheets, but I would like to remove the other default styles
klipsh
@klipsh
Sep 14 2016 17:07
@jshimko Hi! reaction -v gives:
Node: 6.5.0
NPM: 3.10.3
Reaction CLI: 0.4.18
Mike Murray
@mikemurray
Sep 14 2016 17:07
@soyJSus you can just remove @import "{}/imports/plugins/included/default-theme/client/styles/main.less"; in the main.less and only include what you want, or copy-paste into your own theme.
klipsh
@klipsh
Sep 14 2016 17:07
and there're bunch of lines in a log with errors. Just a minute
@jshimko npm ERR! git clone C:\Users\aderevyanko\AppData\Roaming\npm-cache_git-remotes\g
it-github-com-ongoworks-node-authorize-net-git-90f8e8d5 C:\Users\ADEREV~1\AppDat
a\Local\Temp\npm-6852-1ed43b94\git-cache-629897d6\9c5a29ff037c28af07479eaa27591f
1b4a0e5b66: Cloning into 'C:\Users\ADEREV~1\AppData\Local\Temp\npm-6852-1ed43b94
\git-cache-629897d6\9c5a29ff037c28af07479eaa27591f1b4a0e5b66'...
npm ERR! git clone C:\Users\aderevyanko\AppData\Roaming\npm-cache_git-remotes\g
it-github-com-ongoworks-node-authorize-net-git-90f8e8d5 C:\Users\ADEREV~1\AppDat
a\Local\Temp\npm-6852-1ed43b94\git-cache-629897d6\9c5a29ff037c28af07479eaa27591f
1b4a0e5b66: error: cannot spawn sh: No such file or directory
and so on
Jeremy Shimko
@jshimko
Sep 14 2016 17:08
do you have git installed?
klipsh
@klipsh
Sep 14 2016 17:09
Yes, I've installed git, and it's in a classpath
Mike Murray
@mikemurray
Sep 14 2016 17:09
@soyJSus then you'd have to disable the default style package.
klipsh
@klipsh
Sep 14 2016 17:09
but maybe there're some problems with it
soyJsus
@soyJSus
Sep 14 2016 17:09
@mikemurray i delete , i cant import css ?
Jeremy Shimko
@jshimko
Sep 14 2016 17:09
@klipsh and you can run git clone some-repo with no issues?
klipsh
@klipsh
Sep 14 2016 17:10
sec, I'll check it once again
klipsh
@klipsh
Sep 14 2016 17:11
@jshimko but in general reaction somehow cloned it's repo while running reaction init, but with those errors
Mike Murray
@mikemurray
Sep 14 2016 17:11
@soyJSus that will disable all the default CSS imports, but still allow you to import the CSS you want to use
@soyJSus It's the best solution for now, we will be coming up with a better way to disable packages in the future
soyJsus
@soyJSus
Sep 14 2016 17:13
who disable default style packet ?
Mike Murray
@mikemurray
Sep 14 2016 17:14
@soyJSus not sure I understand
klipsh
@klipsh
Sep 14 2016 17:14
@jshimko Yes, i've cloned reaction repo manually right now
D:\Programming\Projects\test>git clone https://github.com/reactioncommerce/react
ion
Cloning into 'reaction'...
remote: Counting objects: 54060, done.
remote: Compressing objects: 100% (374/374), done.
remote: Total 54060 (delta 175), reused 1 (delta 1), pack-reused 53654
Receiving objects: 100% (54060/54060), 30.57 MiB | 3.04 MiB/s, done.
Resolving deltas: 100% (29174/29174), done.
soyJsus
@soyJSus
Sep 14 2016 17:15
as disable the default package theme ?
Mike Murray
@mikemurray
Sep 14 2016 17:19

@soyJSus What I mentioned above will disable the default theme CSS from loading, but you can still import LESS / CSS from it. You would do this if you want to make your own custom theme with no default CSS loaded.

You don't have to disable the default theme package. You can always overwrite the CSS in your own theme. It will work the same either way.

I hope that helps

@soyJSus to disable you can do


// Favicons
import "./favicons";

// Styles
import "./styles/main.less";

// Scripts
import "bootstrap/dist/js/npm.js";

to:

/*

// Favicons
import "./favicons";

// Styles
import "./styles/main.less";

// Scripts
import "bootstrap/dist/js/npm.js";
*/

in reaction/imports/plugins/included/default-theme/client/index.js
( https://github.com/reactioncommerce/reaction/blob/master/imports/plugins/included/default-theme/client/index.js )

soyJsus
@soyJSus
Sep 14 2016 17:21
if you, as I see it more clearly, thank you very much
Mike Murray
@mikemurray
Sep 14 2016 17:22
Great!
soyJsus
@soyJSus
Sep 14 2016 22:21
@mikemurray hi, one wuestion, as
I do for Export products with their images
?