Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/polymath-investor/config/env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const fs = require('fs');
const path = require('path');
const paths = require('./paths');
Expand Down
3 changes: 0 additions & 3 deletions packages/polymath-investor/config/jest/babelTransform.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
'use strict';

const babelJest = require('babel-jest');

module.exports = babelJest.createTransformer({
presets: [require.resolve('babel-preset-react-app')],

});
2 changes: 0 additions & 2 deletions packages/polymath-investor/config/jest/cssTransform.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/en/webpack.html

Expand Down
2 changes: 0 additions & 2 deletions packages/polymath-investor/config/jest/fileTransform.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const path = require('path');

// This is a custom Jest transformer turning file imports into filenames.
Expand Down
2 changes: 0 additions & 2 deletions packages/polymath-investor/config/jest/graphqlTransform.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const loader = require('graphql-tag/loader');

module.exports = {
Expand Down
4 changes: 0 additions & 4 deletions packages/polymath-investor/config/paths.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const path = require('path');
const fs = require('fs');
const url = require('url');
Expand Down Expand Up @@ -57,8 +55,6 @@ module.exports = {

let checkForMonorepo = true;



module.exports.srcPaths = [module.exports.appSrc];

module.exports.useYarn = fs.existsSync(
Expand Down
2 changes: 0 additions & 2 deletions packages/polymath-investor/config/polyfills.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

if (typeof Promise === 'undefined') {
// Rejection tracking prevents a common issue where React gets into an
// inconsistent state due to an error, but it gets swallowed by a Promise,
Expand Down
64 changes: 24 additions & 40 deletions packages/polymath-investor/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
Expand Down Expand Up @@ -137,7 +135,6 @@ module.exports = {
// for React Native Web.
extensions: ['.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'],
alias: {

// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
Expand All @@ -157,27 +154,27 @@ module.exports = {
// Disable require.ensure as it's not a standard language feature.
{ parser: { requireEnsure: false } },

// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|jsx|mjs)$/,
enforce: 'pre',
use: [
{
options: {
formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
baseConfig: {
extends: [require.resolve('eslint-config-react-app')],
},
},
loader: require.resolve('eslint-loader'),
},
],
include: paths.srcPaths,
exclude: [/[/\\\\]node_modules[/\\\\]/],
},
// // First, run the linter.
// // It's important to do this before Babel processes the JS.
// {
// test: /\.(js|jsx|mjs)$/,
// enforce: 'pre',
// use: [
// {
// options: {
// formatter: eslintFormatter,
// eslintPath: require.resolve('eslint'),
// baseConfig: {
// extends: [require.resolve('eslint-config-react-app')],
// },

// },
// loader: require.resolve('eslint-loader'),
// },
// ],
// include: paths.srcPaths,
// exclude: [/[/\\\\]node_modules[/\\\\]/],
// },
{
// "oneOf" will traverse all following loaders until one will
// match the requirements. When no loader matches it will fall
Expand Down Expand Up @@ -206,31 +203,18 @@ module.exports = {
{
loader: require.resolve('thread-loader'),
options: {
poolTimeout: Infinity // keep workers alive for more effective watch mode
poolTimeout: Infinity, // keep workers alive for more effective watch mode
},
},
{
loader: require.resolve('babel-loader'),
options: {

presets: [require.resolve('babel-preset-react-app')],
plugins: [
[
require.resolve('babel-plugin-named-asset-import'),
{
loaderMap: {
svg: {
ReactComponent: 'svgr/webpack![path]',
},
},
},
],
],
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds.
cacheDirectory: true,
highlightCode: true,
plugins: ['react-hot-loader/babel'],
},
},
],
Expand All @@ -245,7 +229,7 @@ module.exports = {
{
loader: require.resolve('thread-loader'),
options: {
poolTimeout: Infinity // keep workers alive for more effective watch mode
poolTimeout: Infinity, // keep workers alive for more effective watch mode
},
},
{
Expand Down
53 changes: 2 additions & 51 deletions packages/polymath-investor/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
Expand All @@ -10,7 +8,6 @@ const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
const paths = require('./paths');
Expand All @@ -28,11 +25,8 @@ const publicUrl = publicPath.slice(0, -1);
// Get environment variables to inject into our app.
const env = getClientEnvironment(publicUrl);

// Assert this just to be safe.
// Development builds of React are slow and not intended for production.
if (env.stringified['process.env'].NODE_ENV !== '"production"') {
throw new Error('Production builds must have NODE_ENV=production.');
}
env.NODE_ENV = 'development';
process.env.NODE_ENV = 'development';

// style files regexes
const cssRegex = /\.css$/;
Expand Down Expand Up @@ -175,7 +169,6 @@ module.exports = {
// for React Native Web.
extensions: ['.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'],
alias: {

// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
Expand All @@ -194,30 +187,6 @@ module.exports = {
rules: [
// Disable require.ensure as it's not a standard language feature.
{ parser: { requireEnsure: false } },

// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|jsx|mjs)$/,
enforce: 'pre',
use: [
{
options: {
formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
// TODO: consider separate config for production,
// e.g. to enable no-console and no-debugger only in production.
baseConfig: {
extends: [require.resolve('eslint-config-react-app')],
},

},
loader: require.resolve('eslint-loader'),
},
],
include: paths.srcPaths,
exclude: [/[/\\\\]node_modules[/\\\\]/],
},
{
// "oneOf" will traverse all following loaders until one will
// match the requirements. When no loader matches it will fall
Expand Down Expand Up @@ -245,24 +214,6 @@ module.exports = {
require.resolve('thread-loader'),
{
loader: require.resolve('babel-loader'),
options: {

presets: [require.resolve('babel-preset-react-app')],
plugins: [
[
require.resolve('babel-plugin-named-asset-import'),
{
loaderMap: {
svg: {
ReactComponent: 'svgr/webpack![path]',
},
},
},
],
],
compact: true,
highlightCode: true,
},
},
],
},
Expand Down
2 changes: 0 additions & 2 deletions packages/polymath-investor/config/webpackDevServer.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');
const ignoredFiles = require('react-dev-utils/ignoredFiles');
Expand Down
15 changes: 7 additions & 8 deletions packages/polymath-investor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"webpack-cli": "^3.1.0",
"webpack-dev-server": "3.1.5",
"webpack-manifest-plugin": "2.0.3",
"webpack-merge": "^4.1.4"
"webpack-merge": "^4.1.4",
"react-test-renderer": "^15.5.0-rc.2"
},
"dependencies": {
"@polymathnetwork/js": "0.0.0",
Expand All @@ -63,20 +64,18 @@
"carbon-icons": "^7.0.7",
"moment": "2.20.1",
"normalize.css": "7.0.0",
"react": "16.4.0",
"react": "^16.5.2",
"react-addons-css-transition-group": "15.0.1",
"react-copy-to-clipboard": "5.0.1",
"react-document-title": "2.0.3",
"react-dom": "16.4.0",
"react-dom": "^16.5.2",
"react-dropzone": "^4.2.9",
"react-redux": "5.0.6",
"react-router": "4.2.0",
"react-router-config": "1.0.0-beta.4",
"react-router-dom": "4.1.1",
"react-router-dom": "^4.3.1",
"react-select": "1.0.0-rc.10",
"react-test-renderer": "^15.5.0-rc.2",
"redux": "3.7.2",
"redux-form": "7.0.4",
"redux": "^4.0.0",
"redux-form": "^7.4.2",
"redux-mock-store": "^1.2.3",
"redux-thunk": "^2.3.0",
"web3": "1.0.0-beta.30"
Expand Down
48 changes: 2 additions & 46 deletions packages/polymath-issuer/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
const paths = require('./paths');
Expand All @@ -26,11 +25,8 @@ const publicUrl = publicPath.slice(0, -1);
// Get environment variables to inject into our app.
const env = getClientEnvironment(publicUrl);

// Assert this just to be safe.
// Development builds of React are slow and not intended for production.
if (env.stringified['process.env'].NODE_ENV !== '"production"') {
throw new Error('Production builds must have NODE_ENV=production.');
}
env.NODE_ENV = 'development';
process.env.NODE_ENV = 'development';

// style files regexes
const cssRegex = /\.css$/;
Expand Down Expand Up @@ -191,29 +187,6 @@ module.exports = {
rules: [
// Disable require.ensure as it's not a standard language feature.
{ parser: { requireEnsure: false } },

// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|jsx|mjs)$/,
enforce: 'pre',
use: [
{
options: {
formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
// TODO: consider separate config for production,
// e.g. to enable no-console and no-debugger only in production.
baseConfig: {
extends: [require.resolve('eslint-config-react-app')],
},
},
loader: require.resolve('eslint-loader'),
},
],
include: paths.srcPaths,
exclude: [/[/\\\\]node_modules[/\\\\]/],
},
{
// "oneOf" will traverse all following loaders until one will
// match the requirements. When no loader matches it will fall
Expand Down Expand Up @@ -241,23 +214,6 @@ module.exports = {
require.resolve('thread-loader'),
{
loader: require.resolve('babel-loader'),
options: {
presets: [require.resolve('babel-preset-react-app')],
plugins: [
[
require.resolve('babel-plugin-named-asset-import'),
{
loaderMap: {
svg: {
ReactComponent: 'svgr/webpack![path]',
},
},
},
],
],
compact: true,
highlightCode: true,
},
},
],
},
Expand Down
Loading