Speech as a package #416
8 changed files with 51 additions and 8927 deletions
27
client/components/index.js
Normal file
27
client/components/index.js
Normal 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
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
13
speech.js
Normal 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;
|
|
@ -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');
|
const clientBaseConfig = require('./webpack.client.common.js');
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
serverBaseConfig,
|
packageBaseConfig,
|
||||||
clientBaseConfig,
|
clientBaseConfig,
|
||||||
];
|
];
|
||||||
|
|
|
@ -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 clientBaseConfig = require('./webpack.client.common.js');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
|
|
||||||
|
@ -8,6 +8,6 @@ const devBuildConfig = {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
merge(serverBaseConfig, devBuildConfig),
|
merge(packageBaseConfig, devBuildConfig),
|
||||||
merge(clientBaseConfig, devBuildConfig),
|
merge(clientBaseConfig, devBuildConfig),
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
const Path = require('path');
|
const Path = require('path');
|
||||||
const nodeExternals = require('webpack-node-externals');
|
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 = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
|
@ -8,7 +9,7 @@ module.exports = {
|
||||||
__dirname: false,
|
__dirname: false,
|
||||||
},
|
},
|
||||||
externals: [nodeExternals()],
|
externals: [nodeExternals()],
|
||||||
entry : ['babel-polyfill', 'whatwg-fetch', './server/server.js'],
|
entry : ['babel-polyfill', 'whatwg-fetch', './speech.js'],
|
||||||
output : {
|
output : {
|
||||||
path : Path.join(__dirname, '/'),
|
path : Path.join(__dirname, '/'),
|
||||||
publicPath : '/',
|
publicPath : '/',
|
||||||
|
@ -34,7 +35,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: [
|
modules: [
|
||||||
REACT_ROOT,
|
CLIENT_ROOT,
|
||||||
|
SERVER_ROOT,
|
||||||
'node_modules',
|
'node_modules',
|
||||||
__dirname,
|
__dirname,
|
||||||
],
|
],
|
|
@ -1,7 +1,7 @@
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
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 clientBaseConfig = require('./webpack.client.common.js');
|
||||||
|
|
||||||
const productionBuildConfig = {
|
const productionBuildConfig = {
|
||||||
|
@ -17,6 +17,6 @@ const productionBuildConfig = {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
merge(serverBaseConfig, productionBuildConfig),
|
merge(packageBaseConfig, productionBuildConfig),
|
||||||
merge(clientBaseConfig, productionBuildConfig),
|
merge(clientBaseConfig, productionBuildConfig),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue