Speech as a package #416

Merged
bones7242 merged 89 commits from speech-as-a-package into master 2018-04-18 21:47:34 +02:00
8 changed files with 51 additions and 8927 deletions
Showing only changes of commit 2736054e70 - Show all commits

View file

@ -0,0 +1,27 @@
import ActiveStatusBar from 'components/ActiveStatusBar';
import AssetPreview from 'components/AssetPreview';
import ExpandingTextArea from 'components/ExpandingTextArea';
import GAListener from 'components/GAListener';
import InactiveStatusBar from 'components/InactiveStatusBar';
import Logo from 'components/Logo';
import NavBarChannelOptionsDropdown from 'components/NavBarChannelOptionsDropdown';
import ProgressBar from 'components/ProgressBar';
import PublishPreview from 'components/PublishPreview';
import PublishUrlMiddleDisplay from 'components/PublishUrlMiddleDisplay';
import SEO from 'components/SEO';
const components = {
ActiveStatusBar,
AssetPreview,
ExpandingTextArea,
GAListener,
InactiveStatusBar,
Logo,
NavBarChannelOptionsDropdown,
ProgressBar,
PublishPreview,
PublishUrlMiddleDisplay,
SEO,
}
export default components;

8917
index.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

13
speech.js Normal file
View file

@ -0,0 +1,13 @@
const server = require('server/server.js');
const components = require('client/components');
// const containers = require('client/containers');
// const pages = require('client/pages');
const exports = {
server,
components,
// containers,
// pages,
};
module.exports = exports;

View file

@ -1,7 +1,7 @@
const serverBaseConfig = require('./webpack.server.common.js');
const packageBaseConfig = require('./webpack.package.common.js');
const clientBaseConfig = require('./webpack.client.common.js');
module.exports = [
serverBaseConfig,
packageBaseConfig,
clientBaseConfig,
];

View file

@ -1,4 +1,4 @@
const serverBaseConfig = require('./webpack.server.common.js');
const packageBaseConfig = require('./webpack.package.common.js');
const clientBaseConfig = require('./webpack.client.common.js');
const merge = require('webpack-merge');
@ -8,6 +8,6 @@ const devBuildConfig = {
};
module.exports = [
merge(serverBaseConfig, devBuildConfig),
merge(packageBaseConfig, devBuildConfig),
merge(clientBaseConfig, devBuildConfig),
];

View file

@ -1,6 +1,7 @@
const Path = require('path');
const nodeExternals = require('webpack-node-externals');
const REACT_ROOT = Path.resolve(__dirname, 'client/');
const CLIENT_ROOT = Path.resolve(__dirname, 'client/');
const SERVER_ROOT = Path.resolve(__dirname, 'server/');
module.exports = {
target: 'node',
@ -8,7 +9,7 @@ module.exports = {
__dirname: false,
},
externals: [nodeExternals()],
entry : ['babel-polyfill', 'whatwg-fetch', './server/server.js'],
entry : ['babel-polyfill', 'whatwg-fetch', './speech.js'],
output : {
path : Path.join(__dirname, '/'),
publicPath : '/',
@ -34,7 +35,8 @@ module.exports = {
},
resolve: {
modules: [
REACT_ROOT,
CLIENT_ROOT,
SERVER_ROOT,
'node_modules',
__dirname,
],

View file

@ -1,7 +1,7 @@
const webpack = require('webpack');
const merge = require('webpack-merge');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const serverBaseConfig = require('./webpack.server.common.js');
const packageBaseConfig = require('./webpack.package.common.js');
const clientBaseConfig = require('./webpack.client.common.js');
const productionBuildConfig = {
@ -17,6 +17,6 @@ const productionBuildConfig = {
};
module.exports = [
merge(serverBaseConfig, productionBuildConfig),
merge(packageBaseConfig, productionBuildConfig),
merge(clientBaseConfig, productionBuildConfig),
];