Skip to content

Commit

Permalink
chore: upgrade webpack and dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and Vandish Gandhi committed Jun 14, 2019
1 parent 319daee commit 28745e3
Show file tree
Hide file tree
Showing 50 changed files with 6,712 additions and 146,897 deletions.
4 changes: 1 addition & 3 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const plugins = [
].filter(Boolean);

const presets = [
[
'@babel/preset-env', { useBuiltIns: 'entry' }
],
['@babel/preset-env', { useBuiltIns: 'usage', corejs: { version: 3 } }],
[
'@babel/preset-react',
{
Expand Down
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"import/resolver": {
"webpack": {
"config": "config/dev.js"
"config": "config/webpack.config.dev.js"
}
}
},
"rules": {
"id-length": [
2,
{ "min": 3, "max": 30, "properties": "never", "exceptions": ["_", "cb"] }
{ "min": 2, "max": 30, "properties": "never", "exceptions": ["_", "cb"] }
],
"max-params": [2, 3],
"no-cond-assign": [2, "except-parens"],
Expand Down
86 changes: 0 additions & 86 deletions config/common.js

This file was deleted.

42 changes: 0 additions & 42 deletions config/dev-cold.js

This file was deleted.

63 changes: 0 additions & 63 deletions config/dev.js

This file was deleted.

100 changes: 0 additions & 100 deletions config/dist.js

This file was deleted.

20 changes: 20 additions & 0 deletions config/paths.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const path = require('path');
const fs = require('fs');

// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/create-react-app/issues/637
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);

module.exports = {
appBuild: resolveApp('dist'),
appDist: resolveApp('dist'),
appPublic: resolveApp('docs'),
appHtml: resolveApp('docs/index.html'),
appIndexJs: resolveApp('docs'),
appDistJs: resolveApp('src/index.js'),
appPackageJson: resolveApp('package.json'),
appDemo: resolveApp('docs'),
appSrc: resolveApp('src'),
appNodeModules: resolveApp('node_modules'),
};
14 changes: 14 additions & 0 deletions config/postCssConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const autoprefixer = require('autoprefixer');
const flexBugFixes = require('postcss-flexbugs-fixes');

module.exports = {
// Necessary for external CSS imports to work
// https://github.com/facebookincubator/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
flexBugFixes,
autoprefixer({
flexbox: 'no-2009',
}),
],
};
5 changes: 0 additions & 5 deletions config/postcss.config.js

This file was deleted.

Loading

0 comments on commit 28745e3

Please sign in to comment.