Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 11 06:42
    sb2nov edited #75
  • Oct 11 00:20
    sb2nov opened #75
  • Sep 04 18:33

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 04 18:33
    dependabot[bot] closed #67
  • Sep 04 18:33
    dependabot[bot] commented #67
  • Sep 04 18:33
    dependabot[bot] labeled #74
  • Sep 04 18:33
    dependabot[bot] opened #74
  • Sep 04 18:33

    dependabot[bot] on npm_and_yarn

    Bump handlebars from 4.1.2 to 4… (compare)

  • Jul 20 19:46
    larixer closed #73
  • Jul 20 19:46
    larixer commented #73
  • Jul 20 19:46
    larixer labeled #73
  • Jul 20 14:02
    gromov-io commented #73
  • Jul 20 13:34
    gromov-io opened #73
  • Jul 16 20:49
    dependabot[bot] labeled #72
  • Jul 16 20:49
    dependabot[bot] opened #72
  • Jul 16 20:49

    dependabot[bot] on npm_and_yarn

    Bump lodash from 4.17.14 to 4.1… (compare)

  • Jun 06 19:30
    dependabot[bot] labeled #71
  • Jun 06 19:30
    dependabot[bot] opened #71
  • Jun 06 19:30

    dependabot[bot] on npm_and_yarn

    Bump apollo-server-express from… (compare)

  • Jun 05 11:46
    TeNNoX synchronize #69
Ryan J. Peterson
@rpeterson
Senior Engineering moment.
Victor Vlasenko
@larixer
yep
Ryan J. Peterson
@rpeterson
Thanks, should have just asked someone sooner and probably would have found this.
:joy:
Victor Vlasenko
@larixer
No problems, you are welcome
Ryan J. Peterson
@rpeterson
You get so used to webpack just working on mature projects, sometimes when you're getting new ones started you forget the basics.
How's everyone's day going at SysGears?
Victor Vlasenko
@larixer
Going pretty good, thanks, new QA automation engineer girl joined our team today :)
Ryan J. Peterson
@rpeterson
How exciting! Welcome aboard new QA girl!
Victor Vlasenko
@larixer
:) Thanks!
Logan
@lgants
Is there any easy way to add css modules support? I've tried adding modules with the cssConfig property, but it breaks the entire page.
^I'm trying to add them to your apollo-universal-starter-kit
Victor Vlasenko
@larixer
@lgants Theoretically cssConfig should be the way to go
Andrei Balmus
@abalmush
Hi guys, could some one help me with adding aliases to webpack plugin, tried to add in options -> webpackConfig, used merge.strategy in a separate file no luck, please help. My .spinrc.js:
const path = require('path');

const config = {
    builders: {
        web: {
            entry: './src/index.tsx',
            stack: ['web'],
            openBrowser: true,
            dllExcludes: ['bootstrap'],
            defines: {
                __CLIENT__: true
            },
            // Wait for backend to start prior to letting webpack load frontend page
            waitOn: ['tcp:localhost:8080'],
            enabled: true
        },
        test: {
            stack: ['server'],
            roles: ['test'],
            defines: {
                __TEST__: true
            }
        }
    },
    options: {
        stack: ['apollo', 'react', 'styled-components', 'css', 'sass', 'less', 'es6', 'ts', 'webpack', 'i18next'],
        cache: '../../.cache',
        ssr: true,
        webpackDll: true,
        reactHotLoader: false,
        defines: {
            __DEV__: process.env.NODE_ENV !== 'production',
            __API_URL__: '"/graphql"',
            'process.env.STRIPE_PUBLIC_KEY': !!process.env.STRIPE_PUBLIC_KEY ? `"${process.env.STRIPE_PUBLIC_KEY}"` : undefined
        },
        webpackConfig: {
            devServer: {
                disableHostCheck: true
            },
            resolve: {
                alias: {
                    'product': './src/modules/product'
                }
            }
        }
    }
};

config.options.devProxy = config.options.ssr;

if (process.env.NODE_ENV === 'production') {
    // Generating source maps for production will slowdown compilation for roughly 25%
    config.options.sourceMap = false;
}

const extraDefines = {
    __SSR__: config.options.ssr
};

config.options.defines = Object.assign(config.options.defines, extraDefines);

module.exports = config;
Victor Vlasenko
@larixer
@abalmush You should declare aliases in two .spinrc.js files in packages/client/.spinrc.js and in packages/server/.spinrc.js, because client code is compiled for the server too for Server Side Rendering purposes
Andrei Balmus
@abalmush
ahh )) now I get it, thank you very much I was done only in client
thank you @vlasenko ! great tool BTW I really love it
Victor Vlasenko
@larixer
To check which one server or client is failing to build you can run yarn watch in packages/server and then in packages/client
@abalmush Do you use stable or master branch?
Andrei Balmus
@abalmush
haha great trick thank you! let me check about branch
"spinjs": "^0.4.166”
Victor Vlasenko
@larixer
ok, this means stable branch
Andrei Balmus
@abalmush
yes thank you for you help!
Victor Vlasenko
@larixer
ok, good. We added the Scala backend next to TypeScript backend in master and moved out all modules into top level folder modules, so I wonder what is people feelings about this :)
np
Andrei Balmus
@abalmush
I think Scala is great addition within the ScalaJS for the client, should be a great stack :)
I’m currenltly using TS for backend and Apollo, graphql
as I’m JS developer it’s easy for me, but I definetelly will check Scala
Victor Vlasenko
@larixer
Yeah, we just saw that people are using different stacks. TS everywhere plus ES6 is what we initially had. But we would like to experiment with say backend in Python and frontend in Angular kind of stacks. To open way to use different stacks and at the same time allowing to easily strip stacks that you don't need. Thats why modular arch that we have in stable and master and thats why even more module-centric approach in master
Andrei Balmus
@abalmush
Thank you for you effort! The 'apollo-universal-starter-kit’ amazed me.
Victor Vlasenko
@larixer
Thank you, great to hear! :)
Andrei Balmus
@abalmush

@vlasenko sory to bother you again, everything works now except eslint. Looks like I have to add some additional configuration to eslint file. I tried the folowing:
insteda of:

{
  "extends": "../../.eslintrc.base.json",
  "settings": {
    "import/resolver": {
      "webpack": {
        "config": "webpack.config.lint.js"
      }
    }
  }
}

I used the file with resolvers:

{
  "extends": "../../.eslintrc.base.json",
  "settings": {
    "import/resolver": {
      "webpack": {
        "config": "./config/webpackConfig.resolve.js"
      }
    }
  }
}

And this is not working, I still see eslint error “Unable to resolve path to module"

Victor Vlasenko
@larixer
We are generally went away from using webpack config for eslint
We are just letting know eslint about extensions that we use, instead and keep eslint config simpler
Andrei Balmus
@abalmush
Ok got it, will it be ok if I add paths to .eslint.base.json?
Victor Vlasenko
@larixer
Yes,
Andrei Balmus
@abalmush
ok thank you very much
Victor Vlasenko
@larixer
Np
Andrei Balmus
@abalmush

Hi guys, I’m trying to add Authorization header to all GraphQL queries using contextLink as per apollo documentation.

const authLink = setContext((_, { headers }) => {
  const token = ‘123-123-123’;
  return {
    headers: {
      ...headers,
      authorization: token ? `Bearer ${token}` : "",
    }
  }
});

but that not working at all. Inside createApolloClient I tried absolutely everything allLinks.unshift(authLink) and authLink.concat(ApolloLink.from(allLinks))

on server side the Authorization header is undefined
Victor Vlasenko
@larixer
Andrei Balmus
@abalmush
oh sorry thank you
Andrei Balmus
@abalmush
yes I saw it, let me try to use it again, I was just trying to test it as per documentation
I will try to use jwt and let you know if that works
Andrei Balmus
@abalmush
Hey guys, does any one have done Intelige IDEA configuration for debugging server? I was able to setup client debugging but server debugging doesn’t work for me. :(
Victor Vlasenko
@larixer
@abalmush Andrei, please write to AUSK chat
Andrei Balmus
@abalmush
ok sorry I was thinking this is related to spinjs will write to ausk thank you