From 6df52aadbb4c09693cf9189191a4403820a5e4fa Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 8 Aug 2018 11:13:23 -0300 Subject: [PATCH 01/81] Adding auth to the watcher --- config/watcher.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/watcher.ts b/config/watcher.ts index 277ec34ec..55b11c4ce 100644 --- a/config/watcher.ts +++ b/config/watcher.ts @@ -19,6 +19,9 @@ const config: Config = { "core/client/stream/**/*.ts", "core/client/stream/**/*.tsx", "core/client/stream/**/*.graphql", + "core/client/auth/**/*.ts", + "core/client/auth/**/*.tsx", + "core/client/auth/**/*.graphql", "core/server/**/*.graphql", ], ignore: [ From 577629c65b4d9c73697543bcdeafce4ed3524c85 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 8 Aug 2018 11:13:44 -0300 Subject: [PATCH 02/81] Adding auth target --- src/core/build/createWebpackConfig.ts | 29 ++++++++++----- src/core/build/paths.ts | 5 +++ src/core/client/auth/.babelrc.js | 10 ++++++ src/core/client/auth/components/App.tsx | 10 ++++++ .../client/auth/containers/AppContainer.tsx | 10 ++++++ src/core/client/auth/index.html | 15 ++++++++ src/core/client/auth/index.tsx | 36 +++++++++++++++++++ src/core/client/auth/locales.ts | 9 +++++ 8 files changed, 116 insertions(+), 8 deletions(-) create mode 100644 src/core/client/auth/.babelrc.js create mode 100644 src/core/client/auth/components/App.tsx create mode 100644 src/core/client/auth/containers/AppContainer.tsx create mode 100644 src/core/client/auth/index.html create mode 100644 src/core/client/auth/index.tsx create mode 100644 src/core/client/auth/locales.ts diff --git a/src/core/build/createWebpackConfig.ts b/src/core/build/createWebpackConfig.ts index e14cb250a..7e1561234 100644 --- a/src/core/build/createWebpackConfig.ts +++ b/src/core/build/createWebpackConfig.ts @@ -407,29 +407,42 @@ export default function createWebpackConfig({ /* Webpack config for our embed */ { ...baseConfig, - entry: [ - // No polyfills for the embed. - (isProduction && "") || - require.resolve("react-dev-utils/webpackHotDevClient"), - paths.appEmbedIndex, - // Remove deactivated entries. - ].filter(s => s), + entry: { + embed: [ + paths.appEmbedIndex, + (isProduction && "") || + require.resolve("react-dev-utils/webpackHotDevClient"), + ], + auth: [ + paths.appAuthIndex, + (isProduction && "") || + require.resolve("react-dev-utils/webpackHotDevClient"), + ], + }, output: { ...baseConfig.output, library: "Talk", // don't hash the embed, cache-busting must be completed by the requester // as this lives in a static template on the embed site. - filename: "assets/js/embed.js", + filename: "assets/js/[name].js", }, plugins: [ ...baseConfig.plugins!, // Generates an `stream.html` file with the