Skip to content

Commit 496f101

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents 2632008 + 4a899b3 commit 496f101

File tree

112 files changed

+3182
-1855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+3182
-1855
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/
2+
generated/
23
antwar.config.js

.eslintrc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,19 @@
2525
"no-unused-vars": 0,
2626
"no-console": 0,
2727
"semi": ["error", "always"]
28-
}
28+
},
29+
30+
"overrides": [
31+
{
32+
"files": ["src/content/**/*.md"],
33+
"rules": {
34+
"indent": ["error", 2],
35+
"quotes": ["error", "single"],
36+
"no-undef": 0,
37+
"no-constant-condition": 0,
38+
"no-useless-escape": 0,
39+
"no-dupe-keys": 0
40+
}
41+
}
42+
]
2943
}

.github/CONTRIBUTING.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Start by ensuring you have Node installed and forking the repository:
1616

1717
Once you are in the project directory, run the following commands:
1818

19-
- `npm install` to pull all dependencies.
19+
- `npm install` to pull all dependencies. Make sure to check notes below if you prefer Yarn.
2020
- `npm run build` to create a production version of the site.
2121
- `npm start` to develop on a local webpack-dev-server: [localhost:3000][3].
2222
- `npm run fetch` to retrieve external documentation/data.
@@ -30,6 +30,8 @@ See the `package.json` for the full list of `scripts`.
3030
3131
> Note that a __Python version between v2.5.0 and 3.0.0__ is required for the [proselint][12] dependency.
3232
33+
> Although __Yarn__ is not required to work with webpack docs, the core team is using it more extensively. If you prefer to use Yarn make sure you [got it installed][13] and run `yarn` to pull all dependencies, `yarn build` to build the project, or `yarn start` to start development server.
34+
3335
> On Debian and Ubuntu operating systems you may have to use `node >= 7.0.0` to avoid build errors with `node-sass`. Please note that we don't officially support building on these systems.
3436
3537

@@ -59,7 +61,7 @@ Making a branch in your fork for your contribution is helpful in the following w
5961

6062
## Committing Your Changes
6163

62-
Please follow the [conventionalcommits][10] specification. For example, for documentation
64+
Please follow the [conventional commits][10] specification. For example, for documentation
6365
changes, a short commit message may resemble the following:
6466

6567
``` md
@@ -125,3 +127,4 @@ any time spent fixing typos or clarifying sections in the documentation.
125127
[10]: http://conventionalcommits.org/
126128
[11]: https://github.com/conventional-changelog/standard-version
127129
[12]: https://github.com/amperser/proselint
130+
[13]: https://yarnpkg.com/lang/en/docs/install
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Documentation request
3+
about: Create a documentation request for a new feature or functionality change.
4+
---
5+
6+
**Feature to document**
7+
8+
<!-- Name of the feature(s) and a link to related pull request of the feature implementation. -->
9+
10+
**Author(s)**
11+
12+
<!-- Mention feature author(s) in order to know who is assignable for review outside of the documentation team. -->
13+
14+
**Additional information**
15+
16+
<!-- Please provide any additional information that is required in order to document the feature in the best possible way or say N/A if linked PR has more than enough details. -->

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ starter-kits-data.json
88
.vscode
99
.idea
1010
.DS_Store
11+
yarn-error.log
12+
package-lock.json

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ branches:
55
language: node_js
66
node_js:
77
- "8"
8-
script:
9-
- bash ./src/scripts/deploy.sh
108
sudo: required
119
install:
12-
- npm install --global yarn
1310
- yarn
1411
- sudo pip install proselint
12+
before_script:
13+
- source ./src/scripts/env.sh
14+
script:
15+
- bash ./src/scripts/deploy.sh

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,26 @@
2424
"node": ">=6.9"
2525
},
2626
"scripts": {
27-
"start": "npm run init:generated && npm run fetch && node ./antwar.bootstrap.js develop",
27+
"start": "run-s -n init:generated fetch start-only",
2828
"start-only": "node ./antwar.bootstrap.js develop",
2929
"build": "npm run init:generated && npm run fetch && rm -rf build/ && node ./antwar.bootstrap.js build && npm run sitemap && echo webpack.js.org > build/CNAME",
3030
"build-test": "npm run build && http-server build/",
3131
"deploy": "gh-pages -d build",
3232
"fetch": "sh src/scripts/fetch.sh",
3333
"init:generated": "mkdirp ./generated/loaders && mkdirp ./generated/plugins ",
3434
"lint": "run-s lint:*",
35-
"lint:js": "eslint . --ext .js --ext .jsx",
35+
"lint:js": "eslint . --ext .js,.jsx,.md",
3636
"lint:markdown": "markdownlint --config ./.markdownlint.json *.md ./src/content/**/*.md",
3737
"lint:social": "alex . -q",
3838
"lint:prose": "cp .proselintrc ~/ && proselint src/content",
3939
"test": "npm run lint",
4040
"sitemap": "cd build && sitemap-static --prefix=https://webpack.js.org/ > sitemap.xml"
4141
},
42+
"husky": {
43+
"hooks": {
44+
"pre-commit": "npm test"
45+
}
46+
},
4247
"devDependencies": {
4348
"alex": "^4.1.0",
4449
"antwar": "^0.28.3",
@@ -56,16 +61,17 @@
5661
"copy-webpack-plugin": "^4.4.2",
5762
"css-loader": "^0.28.10",
5863
"duplexer": "^0.1.1",
59-
"eslint": "4.5.0",
64+
"eslint": "4.19.1",
6065
"eslint-loader": "^2.0.0",
61-
"eslint-plugin-markdown": "^1.0.0-beta.7",
66+
"eslint-plugin-markdown": "git://github.com/byzyk/eslint-plugin-markdown.git#5927ccb78aff8a5464663730800503c6de3704e1",
6267
"file-loader": "^1.1.11",
6368
"fontgen-loader": "git://github.com/EugeneHlushko/fontgen-loader.git#a26a73843900ca4b518853952b1fc3c816103512",
6469
"front-matter": "^2.2.0",
6570
"gh-pages": "^1.0.0",
6671
"github": "^10.0.0",
6772
"html-webpack-plugin": "^3.1.0",
6873
"http-server": "^0.10.0",
74+
"husky": "^1.0.0-rc.8",
6975
"hyperlink": "^3.0.1",
7076
"loader-utils": "^1.1.0",
7177
"lodash": "^4.17.4",

src/components/Contributors/Contributors.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default ({contributors}) => {
1414
<a key={ contributor }
1515
className="contributor"
1616
href={ `https://github.com/${contributor}` }>
17-
<img src={ `https://github.com/${contributor}.png?size=90` } />
17+
<img alt={ contributor } src={ `https://github.com/${contributor}.png?size=90` } />
1818
<span className="contributor__name"> {contributor}</span>
1919
</a>
2020
))

src/components/Dropdown/Dropdown.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class Dropdown extends React.Component {
2222
src={ LanguageIcon } />
2323
{/* Commented out until media breakpoints are in place
2424
<span>{ items[0].title }</span> */}
25-
<i className="dropdown__arrow" />
25+
<i aria-hidden="true" className="dropdown__arrow" />
2626

2727
<div className={ `dropdown__list ${activeMod}` }>
2828
<ul>

0 commit comments

Comments
 (0)