-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(infra) Rebuild hyperlink (#2382)
* Update link checking to use latest hyperlink. Replaces #1582 * Stop appending empty fragment to urls pointing ad no fragment identifier * Resolve relative hrefs from README's to their github.com url instead of linking locally inside docs * Prefer https where available and also use https in examples * Make non-fragment links inside headings visible * Update webpack docs china link * Fixed invalid edit links to index pages * skip fragment check for vimdoc that is known to fail * Fix broken link to migration guide from configuration/resolve * Also resolve github README relative links when they don't start with a dot * Add missing pages: Vote, Organization, Starter kits * Remove unused code * Fix link that was redirected * Open all target='_blank' links with rel='noopener' for security * Skip link checking img.shields.io * Change order of markdown url rewriting to avoid errors * Use lowercase variable name for node url module. See #2382 (comment) * Update link to file-loader github repo * Rewrite links from https://npmjs.com to https://www.npmjs.com to avoid the inevitable redirect * Skip checking links to npmjs.com/package that causes hyperlink to get http 500 responses. This should probably be reverted and fixed later * Updated organization projects urls to their redirect target * Update tool-list to get correct links for projects * Updated links to their redirect target * Remove jscs-loader. The project is deprecated, merged with eslint and the domain we link to is for sale * Update link to karma-webpack project * Remove link to named-modules-plugin, which is now in webpack core * Added missing mini-css-extract-plugin to fetch script * Skip checking links to known deleted github users * Update broken fragments to work with new markdown generator * Fixed more broken links * infra(site) Copy assets when building * Update github location for css-loader * Remove dead github accounts from contributors listings * infra(site) Fix fetchPackages script when running locally * Fix internal fragmtn links in optimization.md * Skip link checking or opencollective.com/webpack. Massive html response made the checker go into CPU overdrive * Remove link to non-existing named-modules-plugin * Use new release of hyperlink * feat(infra) Travis optimization (#2404) * Fix internal fragmtn links in optimization.md * Skip link checking or opencollective.com/webpack. Massive html response made the checker go into CPU overdrive * Try out travis staged build * Add proselint * Upgrade pip before using it * Move before-hooks around to try and make proselint install * Try adding python as a language as well to geet an updated version * More messing with config * Manually handle node versioning * Add node minor version to nvm install. Defaulted to slightly too low version * Manually install node 8.11 * Try a matrix build to separate node and python stuff * Add linkcheck task and try a different cahce setup * Minor name change to test if cache works correctly across builds * Attempt to combine matrix and staged build * Attempt going back to staged build * Bump travis * Ping Travis. You alive? * Fix broken travis.yml * Fix wrong stage order * Explicitly run specific lintings, exclude proselint * Allow failures for link checker * Change proselint cache directory. Maybe this works * Add new script to fetch repository names that the docs should contain. Try to centralize github API usage to avoid rate limitations * Add caching to eslint * Remove parts of deploy.sh that are now run by travis * Added new ./repositories to store github api results * Replace fetch.sh with npm scripts and fetch-package-readmes.js * Attempt to make caches more specific to the containers and stages they refer to * Remove deprecaed fetch_packages script. Now replaced by two-step fetch-package-repos and fetch-package-readmes * Attempt a more windows friendly build by using npm and webpack instead of shell commands * Disable link checking for now to speed up builds * Revert "Disable link checking for now to speed up builds" This reverts commit 7d4bb06. * Add dist to proselint cache so generated content also gets checked * Remove unnessessary GITHUB_TOKEN env variable check in repo fetching script * Revert "Add dist to proselint cache so generated content also gets checked" This reverts commit fc7676d. * Rework pipeline for better speed and make proselint a deployment blocker * Rename build stage to reflect its actions * Run content-tree only after generating all external content * Remove link to non-existing named-modules-plugin * Fix double slashes in edit links * Rename stages * Add new internal link check as a blocking check * Fix wrong name in allowed_failures config
- Loading branch information
Showing
54 changed files
with
1,441 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ src/**/_*.md | |
npm-debug.log | ||
yarn-error.log | ||
package-lock.json | ||
.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,52 @@ | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "8" | ||
sudo: required | ||
install: | ||
- yarn | ||
- sudo pip install proselint | ||
before_script: | ||
- source ./src/scripts/env.sh | ||
script: | ||
- bash ./src/scripts/deploy.sh | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- dist | ||
- .cache | ||
|
||
stages: | ||
- Build | ||
- Post-build | ||
|
||
jobs: | ||
fast_finish: true | ||
allow_failures: | ||
- name: External Link Check | ||
|
||
include: | ||
- stage: Build | ||
name: Lint and Build | ||
before_install: npm install --global yarn | ||
install: yarn | ||
script: | ||
- yarn lint:js | ||
- yarn lint:markdown | ||
- yarn lint:social | ||
- yarn build | ||
- yarn lint:links | ||
|
||
- stage: Build | ||
name: Proselint | ||
language: python | ||
python: 3.6 | ||
cache: | ||
pip: true | ||
directories: | ||
- $HOME/.cache | ||
install: pip install -r requirements.txt | ||
script: cp .proselintrc ~/ && proselint src/content | ||
|
||
- stage: Post-build | ||
name: Deploy | ||
if: branch = master | ||
script: bash ./src/scripts/deploy.sh | ||
|
||
- stage: Post-build | ||
name: External Link Check | ||
script: yarn linkcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Webpack documentation repositories | ||
|
||
The files in this directory are auto generated from `src/utils/fetch-package-repos.js` and should not be edited by hand. Any manual changes will be overwritten by the automation next time it runs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
"webpack-contrib/json-loader", | ||
"webpack-contrib/raw-loader", | ||
"webpack-contrib/coffee-loader", | ||
"webpack-contrib/css-loader", | ||
"webpack-contrib/style-loader", | ||
"webpack-contrib/script-loader", | ||
"webpack-contrib/less-loader", | ||
"webpack-contrib/bundle-loader", | ||
"webpack-contrib/val-loader", | ||
"webpack-contrib/file-loader", | ||
"webpack-contrib/url-loader", | ||
"webpack-contrib/i18n-loader", | ||
"webpack-contrib/json5-loader", | ||
"webpack-contrib/worker-loader", | ||
"webpack-contrib/jshint-loader", | ||
"webpack-contrib/imports-loader", | ||
"webpack-contrib/exports-loader", | ||
"webpack-contrib/mocha-loader", | ||
"webpack-contrib/coverjs-loader", | ||
"webpack-contrib/expose-loader", | ||
"webpack-contrib/node-loader", | ||
"webpack-contrib/coffee-redux-loader", | ||
"webpack-contrib/transform-loader", | ||
"webpack-contrib/html-loader", | ||
"webpack-contrib/sass-loader", | ||
"webpack-contrib/source-map-loader", | ||
"webpack-contrib/react-proxy-loader", | ||
"webpack-contrib/null-loader", | ||
"webpack-contrib/multi-loader", | ||
"webpack-contrib/istanbul-instrumenter-loader", | ||
"webpack-contrib/eslint-loader", | ||
"webpack-contrib/yaml-frontmatter-loader", | ||
"webpack-contrib/svg-inline-loader", | ||
"webpack-contrib/restyle-loader", | ||
"webpack-contrib/gzip-loader", | ||
"webpack-contrib/cache-loader", | ||
"webpack-contrib/thread-loader", | ||
"webpack-contrib/polymer-webpack-loader", | ||
"webpack-contrib/workerize-loader", | ||
"webpack-contrib/config-loader", | ||
"babel/babel-loader", | ||
"postcss/postcss-loader", | ||
"peerigon/extract-loader" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
"webpack-contrib/i18n-webpack-plugin", | ||
"webpack-contrib/component-webpack-plugin", | ||
"webpack-contrib/compression-webpack-plugin", | ||
"webpack-contrib/extract-text-webpack-plugin", | ||
"webpack-contrib/copy-webpack-plugin", | ||
"webpack-contrib/npm-install-webpack-plugin", | ||
"webpack-contrib/stylelint-webpack-plugin", | ||
"webpack-contrib/babel-minify-webpack-plugin", | ||
"webpack-contrib/uglifyjs-webpack-plugin", | ||
"webpack-contrib/zopfli-webpack-plugin", | ||
"webpack-contrib/closure-webpack-plugin", | ||
"webpack-contrib/css-webpack-plugin", | ||
"webpack-contrib/mini-css-extract-plugin" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proselint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
webpack.js.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.