Skip to content

Commit 458141f

Browse files
bebrawskipjack
authored andcommitted
chore: upgrade webpack/antwar/deps (#980)
The main purpose of this PR is just to bring our dependencies, especially webpack and antwar up to date. In the process of doing this, we also resolved a variety of bugs and other issues. There is still much work to be done but this is definitely a step in the right direction and should make further changes easier. Here are some other notable changes: * refactor(components): clean up formatting and usage * fix(components): fix `PropTypes` warnings * refactor(config): remove unused vote routes * refactor(config): utilize `disable` option in the extract plugin to simplify config * fix(build-process): fix missing `<title>` tags * fix(components): simplify index page management in sidebar (#1085) * docs: minor improvements to index pages * fix(tests): ignore npm-install-weback-plugin Ignore the "sucks" mention in the npm-install-webpack-plugin file for now. It isn't used in a derogatory way so I'm not sure we should change it but I'm also not sure we should `allow` "sucks" globally.
1 parent 2b45bbf commit 458141f

35 files changed

+2954
-2297
lines changed

.alexignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
generated/plugins/npm-install-webpack-plugin.md

.alexrc

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
{
22
"allow": [
3+
"attacks",
34
"bigger",
45
"color",
56
"colors",
67
"crash",
78
"dead",
9+
"dirty",
10+
"disabled",
811
"dive",
912
"execute",
1013
"executed",
14+
"executes",
1115
"execution",
12-
"dirty",
13-
"disabled",
1416
"failed",
1517
"failure",
18+
"failures",
1619
"fire",
1720
"hook",
21+
"hooks",
1822
"host-hostess",
1923
"hosts",
2024
"jade",
@@ -23,6 +27,7 @@
2327
"period",
2428
"pros",
2529
"reject",
30+
"remain",
2631
"remains",
2732
"white"
2833
]

.editorconfig

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
# Top-most EditorConfig file
22
root = true
33

4-
# Set default charset
5-
[*.{js}]
6-
charset = utf-8
7-
4+
# AutoFormat All Files
85
[*]
96
trim_trailing_whitespace = true
107
insert_final_newline = true
118

12-
# 4 space indentation
13-
[*.{md,js,jsx,scss,hbs}]
9+
# Format All Source Files
10+
[*.{md,js,jsx,json,scss,hbs,*rc}]
11+
charset = utf-8
1412
indent_style = space
1513
indent_size = 2
1614

17-
# Format Config
18-
[{package.json,.alexrc,babelrc,.eslintignore,.eslintrc,.markdownlint.json,.proselintrc}]
15+
# Format Any Missing Config Files
16+
[.eslintignore]
1917
indent_style = space
2018
indent_size = 2

.postcssrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: [
3+
require('autoprefixer')
4+
]
5+
}

bootstrap.js renamed to antwar.bootstrap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const antwar = require('antwar');
22

3-
const environment = process.env.npm_lifecycle_event || 'build';
3+
const environment = process.argv[2];
44

55
// Patch Babel env to make HMR switch work
66
process.env.BABEL_ENV = environment;
@@ -9,7 +9,7 @@ antwar[environment]({
99
environment,
1010
antwar: require('./antwar.config'),
1111
webpack: require('./webpack.config')
12-
}).catch(function (err) {
12+
}).catch((err) => {
1313
console.error(err);
1414

1515
process.exit(1);

0 commit comments

Comments
 (0)