The list below provides a brief overview of all commonly used projects in the webpack ecosystem.
+
+ The list below provides a brief overview of all commonly used projects
+ in the webpack ecosystem.
+
-
- {
- Items.map(org => (
-
-
- { org.repo }
-
-
-
{ org.description }
-
-
Downloads and Stars
-
-
-
-
-
Activity
-
-
-
-
-
-
-
-
-
Issues and PRs
-
-
-
-
-
Maintainers
- {
- (() => {
- if (org.maintainer) {
- return
;
-
- } else return
Maintainer needed...;
- })()
- }
-
-
- ))
- }
+
+ {Items.map((org) => (
+
+
+ {org.repo}
+
+
{org.description}
+
Downloads and Stars
+
+
+
+
Activity
+
+
+
+
+
+
+
+
Issues and PRs
+
+
+
+
Maintainers
+ {(() => {
+ if (org.maintainer) {
+ return
;
+ } else
+ return (
+
+ Maintainer needed...
+
+ );
+ })()}
+
+ ))}
);
diff --git a/src/components/Organization/projects.json b/src/components/Organization/projects.json
index 865e4be27090..b783ce20c710 100644
--- a/src/components/Organization/projects.json
+++ b/src/components/Organization/projects.json
@@ -1,248 +1,248 @@
[
- {
- "repo": "webpack/memory-fs",
- "npm": "memory-fs",
- "description": "A simple in-memory filesystem that holds data in a javascript object.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/webpack",
- "npm": "webpack",
- "description": "A bundler for javascript and friends.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/loader-utils",
- "npm": "loader-utils",
- "description": "webpack loader utilities.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/source-list-map",
- "npm": "source-list-map",
- "description": "Fast line to line SourceMap generator.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/enhanced-resolve",
- "npm": "enhanced-resolve",
- "description": "A highly configurable asynchronous require.resolve function.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/tapable",
- "npm": "tapable",
- "description": "Just a little module for plugins.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/watchpack",
- "npm": "watchpack",
- "description": "Wrapper library for directory and file watching.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/node-libs-browser",
- "npm": "node-libs-browser",
- "description": "The node core libs for in browser usage.",
- "maintainer": ""
- },
- {
- "repo": "webpack/webpack-dev-server",
- "npm": "webpack-dev-server",
- "description": "A development server that updates the browser on file changes.",
- "maintainer": "Spacek33z"
- },
- {
- "repo": "webpack-contrib/file-loader",
- "npm": "file-loader",
- "description": "A simple loader for copying and renaming files.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack-contrib/style-loader",
- "npm": "style-loader",
- "description": "Load and inject stylesheets into the DOM.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack-contrib/css-loader",
- "npm": "css-loader",
- "description": "Load CSS modules and resolve any dependencies.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack/webpack-dev-middleware",
- "npm": "webpack-dev-middleware",
- "description": "Middleware which arguments a live bundle to a directory.",
- "maintainer": "Spacek33z"
- },
- {
- "repo": "webpack/fastparse",
- "npm": "fastparse",
- "description": "A simple parser based on a statemachine and regular expressions.",
- "maintainer": "sokra"
- },
- {
- "repo": "webpack-contrib/json-loader",
- "npm": "json-loader",
- "description": "Load JSON into a pre-parsed variable.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/url-loader",
- "npm": "url-loader",
- "description": "Load files into data urls based on byte limit.",
- "maintainer": ""
- },
- {
- "repo": "webpack/webpack-sources",
- "npm": "webpack-sources",
- "description": "Source code handling classes for webpack.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/sass-loader",
- "npm": "sass-loader",
- "description": "Load and parse SASS modules into CSS.",
- "maintainer": "jhnns"
- },
- {
- "repo": "webpack-contrib/karma-webpack",
- "npm": "karma-webpack",
- "description": "Use webpack to pre-process files in karma.",
- "maintainer": "MikaAK"
- },
- {
- "repo": "webpack-contrib/imports-loader",
- "npm": "imports-loader",
- "description": "Detect and import libraries based on the use of certain variables.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/raw-loader",
- "npm": "raw-loader",
- "description": "Load a module's contents as a string.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/exports-loader",
- "npm": "exports-loader",
- "description": "Load a module's contents directly into export statements.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/less-loader",
- "npm": "less-loader",
- "description": "Load and parse LESS modules into CSS.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/expose-loader",
- "npm": "expose-loader",
- "description": "Expose modules as global variables.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/html-loader",
- "npm": "html-loader",
- "description": "Load HTML modules/templates as strings.",
- "maintainer": "hemanth"
- },
- {
- "repo": "webpack/loader-runner",
- "npm": "loader-runner",
- "description": "Run webpack loaders.",
- "maintainer": ""
- },
- {
- "repo": "shama/webpack-stream",
- "npm": "webpack-stream",
- "description": "Run webpack through a stream interface.",
- "maintainer": "shama"
- },
- {
- "repo": "webpack-contrib/source-map-loader",
- "npm": "source-map-loader",
- "description": "Extract source-map comments from modules to pass to webpack.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/null-loader",
- "npm": "null-loader",
- "description": "Load an empty module.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/compression-webpack-plugin",
- "npm": "compression-webpack-plugin",
- "description": "Compress assets to serve with Content-Encoding.",
- "maintainer": "palmerj3"
- },
- {
- "repo": "webpack-contrib/grunt-webpack",
- "npm": "grunt-webpack",
- "description": "Integrate webpack into a grunt build process.",
- "maintainer": "danez"
- },
- {
- "repo": "webpack-contrib/jshint-loader",
- "npm": "jshint-loader",
- "description": "Load and lint modules with JSHint.",
- "maintainer": "kostasmanionis"
- },
- {
- "repo": "webpack-contrib/coffee-loader",
- "npm": "coffee-loader",
- "description": "Load and parse coffee script modules into JS.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/worker-loader",
- "npm": "worker-loader",
- "description": "Load modules as workers.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/mocha-loader",
- "npm": "mocha-loader",
- "description": "Load mocha modules for testing.",
- "maintainer": "tricoder42"
- },
- {
- "repo": "webpack-contrib/val-loader",
- "npm": "val-loader",
- "description": "Load and execute a module while compiling, returning the result.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/json5-loader",
- "npm": "json5-loader",
- "description": "Load JSON5 into a pre-parsed variable.",
- "maintainer": "gdi2290"
- },
- {
- "repo": "webpack-contrib/node-loader",
- "npm": "node-loader",
- "description": "Load native node modules.",
- "maintainer": ""
- },
- {
- "repo": "webpack-contrib/coverjs-loader",
- "npm": "coverjs-loader",
- "description": "Test modules' code coverage using CoverJS.",
- "maintainer": ""
- },
- {
- "repo": "thelarkinn/angular2-template-loader",
- "npm": "angular2-template-loader",
- "description": "Load angular2 components, inlining all html and styling.",
- "maintainer": "thelarkinn"
- },
- {
- "repo": "webpack-contrib/css-minimizer-webpack-plugin",
- "npm": "css-minimizer-webpack-plugin",
- "description": "Optimize and minify your CSS using cssnano.",
- "maintainer": "cap-Bernardito"
- }
+ {
+ "repo": "webpack/memory-fs",
+ "npm": "memory-fs",
+ "description": "A simple in-memory filesystem that holds data in a javascript object.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/webpack",
+ "npm": "webpack",
+ "description": "A bundler for javascript and friends.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/loader-utils",
+ "npm": "loader-utils",
+ "description": "webpack loader utilities.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/source-list-map",
+ "npm": "source-list-map",
+ "description": "Fast line to line SourceMap generator.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/enhanced-resolve",
+ "npm": "enhanced-resolve",
+ "description": "A highly configurable asynchronous require.resolve function.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/tapable",
+ "npm": "tapable",
+ "description": "Just a little module for plugins.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/watchpack",
+ "npm": "watchpack",
+ "description": "Wrapper library for directory and file watching.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/node-libs-browser",
+ "npm": "node-libs-browser",
+ "description": "The node core libs for in browser usage.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack/webpack-dev-server",
+ "npm": "webpack-dev-server",
+ "description": "A development server that updates the browser on file changes.",
+ "maintainer": "Spacek33z"
+ },
+ {
+ "repo": "webpack-contrib/file-loader",
+ "npm": "file-loader",
+ "description": "A simple loader for copying and renaming files.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack-contrib/style-loader",
+ "npm": "style-loader",
+ "description": "Load and inject stylesheets into the DOM.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack-contrib/css-loader",
+ "npm": "css-loader",
+ "description": "Load CSS modules and resolve any dependencies.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack/webpack-dev-middleware",
+ "npm": "webpack-dev-middleware",
+ "description": "Middleware which arguments a live bundle to a directory.",
+ "maintainer": "Spacek33z"
+ },
+ {
+ "repo": "webpack/fastparse",
+ "npm": "fastparse",
+ "description": "A simple parser based on a statemachine and regular expressions.",
+ "maintainer": "sokra"
+ },
+ {
+ "repo": "webpack-contrib/json-loader",
+ "npm": "json-loader",
+ "description": "Load JSON into a pre-parsed variable.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/url-loader",
+ "npm": "url-loader",
+ "description": "Load files into data urls based on byte limit.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack/webpack-sources",
+ "npm": "webpack-sources",
+ "description": "Source code handling classes for webpack.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/sass-loader",
+ "npm": "sass-loader",
+ "description": "Load and parse SASS modules into CSS.",
+ "maintainer": "jhnns"
+ },
+ {
+ "repo": "webpack-contrib/karma-webpack",
+ "npm": "karma-webpack",
+ "description": "Use webpack to pre-process files in karma.",
+ "maintainer": "MikaAK"
+ },
+ {
+ "repo": "webpack-contrib/imports-loader",
+ "npm": "imports-loader",
+ "description": "Detect and import libraries based on the use of certain variables.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/raw-loader",
+ "npm": "raw-loader",
+ "description": "Load a module's contents as a string.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/exports-loader",
+ "npm": "exports-loader",
+ "description": "Load a module's contents directly into export statements.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/less-loader",
+ "npm": "less-loader",
+ "description": "Load and parse LESS modules into CSS.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/expose-loader",
+ "npm": "expose-loader",
+ "description": "Expose modules as global variables.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/html-loader",
+ "npm": "html-loader",
+ "description": "Load HTML modules/templates as strings.",
+ "maintainer": "hemanth"
+ },
+ {
+ "repo": "webpack/loader-runner",
+ "npm": "loader-runner",
+ "description": "Run webpack loaders.",
+ "maintainer": ""
+ },
+ {
+ "repo": "shama/webpack-stream",
+ "npm": "webpack-stream",
+ "description": "Run webpack through a stream interface.",
+ "maintainer": "shama"
+ },
+ {
+ "repo": "webpack-contrib/source-map-loader",
+ "npm": "source-map-loader",
+ "description": "Extract source-map comments from modules to pass to webpack.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/null-loader",
+ "npm": "null-loader",
+ "description": "Load an empty module.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/compression-webpack-plugin",
+ "npm": "compression-webpack-plugin",
+ "description": "Compress assets to serve with Content-Encoding.",
+ "maintainer": "palmerj3"
+ },
+ {
+ "repo": "webpack-contrib/grunt-webpack",
+ "npm": "grunt-webpack",
+ "description": "Integrate webpack into a grunt build process.",
+ "maintainer": "danez"
+ },
+ {
+ "repo": "webpack-contrib/jshint-loader",
+ "npm": "jshint-loader",
+ "description": "Load and lint modules with JSHint.",
+ "maintainer": "kostasmanionis"
+ },
+ {
+ "repo": "webpack-contrib/coffee-loader",
+ "npm": "coffee-loader",
+ "description": "Load and parse coffee script modules into JS.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/worker-loader",
+ "npm": "worker-loader",
+ "description": "Load modules as workers.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/mocha-loader",
+ "npm": "mocha-loader",
+ "description": "Load mocha modules for testing.",
+ "maintainer": "tricoder42"
+ },
+ {
+ "repo": "webpack-contrib/val-loader",
+ "npm": "val-loader",
+ "description": "Load and execute a module while compiling, returning the result.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/json5-loader",
+ "npm": "json5-loader",
+ "description": "Load JSON5 into a pre-parsed variable.",
+ "maintainer": "gdi2290"
+ },
+ {
+ "repo": "webpack-contrib/node-loader",
+ "npm": "node-loader",
+ "description": "Load native node modules.",
+ "maintainer": ""
+ },
+ {
+ "repo": "webpack-contrib/coverjs-loader",
+ "npm": "coverjs-loader",
+ "description": "Test modules' code coverage using CoverJS.",
+ "maintainer": ""
+ },
+ {
+ "repo": "thelarkinn/angular2-template-loader",
+ "npm": "angular2-template-loader",
+ "description": "Load angular2 components, inlining all html and styling.",
+ "maintainer": "thelarkinn"
+ },
+ {
+ "repo": "webpack-contrib/css-minimizer-webpack-plugin",
+ "npm": "css-minimizer-webpack-plugin",
+ "description": "Optimize and minify your CSS using cssnano.",
+ "maintainer": "cap-Bernardito"
+ }
]
diff --git a/src/components/Page/AdjacentPages.scss b/src/components/Page/AdjacentPages.scss
index 6d184fe1e7ce..2dc522ae196f 100644
--- a/src/components/Page/AdjacentPages.scss
+++ b/src/components/Page/AdjacentPages.scss
@@ -14,4 +14,4 @@
&__label--next {
text-align: right;
}
-}
\ No newline at end of file
+}
diff --git a/src/components/Page/Page.jsx b/src/components/Page/Page.jsx
index bf3971ac3a84..cbab7a5f5a7f 100644
--- a/src/components/Page/Page.jsx
+++ b/src/components/Page/Page.jsx
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
import PageLinks from '../PageLinks/PageLinks';
import Markdown from '../Markdown/Markdown';
import Contributors from '../Contributors/Contributors';
-import {PlaceholderString} from '../Placeholder/Placeholder';
+import { PlaceholderString } from '../Placeholder/Placeholder';
import { Pre } from '../Configuration/Configuration';
import AdjacentPages from './AdjacentPages';
@@ -23,10 +23,10 @@ class Page extends Component {
content: PropTypes.oneOfType([
PropTypes.shape({
then: PropTypes.func.isRequired,
- default: PropTypes.string
- })
- ])
- }
+ default: PropTypes.string,
+ }),
+ ]),
+ };
constructor(props) {
super(props);
@@ -34,8 +34,10 @@ class Page extends Component {
const isDynamicContent = content instanceof Promise;
this.state = {
- content: isDynamicContent ? PlaceholderString() : content.default || content,
- contentLoaded: isDynamicContent ? false : true
+ content: isDynamicContent
+ ? PlaceholderString()
+ : content.default || content,
+ contentLoaded: isDynamicContent ? false : true,
};
}
@@ -44,33 +46,42 @@ class Page extends Component {
if (content instanceof Promise) {
content
- .then(module =>
- this.setState({
- content: module.default || module,
- contentLoaded: true
- }, () => {
- const hash = window.location.hash;
- if (hash) {
- const element = document.querySelector(hash);
- if (element) {
- element.scrollIntoView();
+ .then((module) =>
+ this.setState(
+ {
+ content: module.default || module,
+ contentLoaded: true,
+ },
+ () => {
+ const hash = window.location.hash;
+ if (hash) {
+ const element = document.querySelector(hash);
+ if (element) {
+ element.scrollIntoView();
+ }
+ } else {
+ window.scrollTo(0, 0);
}
- } else {
- window.scrollTo(0, 0);
}
-
- })
+ )
)
.catch(() =>
this.setState({
- content: 'Error loading content.'
+ content: 'Error loading content.',
})
);
}
}
render() {
- const { title, contributors = [], related = [], previous, next, ...rest } = this.props;
+ const {
+ title,
+ contributors = [],
+ related = [],
+ previous,
+ next,
+ ...rest
+ } = this.props;
const { contentLoaded } = this.state;
const loadRelated = contentLoaded && related && related.length !== 0;
@@ -83,7 +94,7 @@ class Page extends Component {
if (typeof content === 'function') {
contentRender = content({}).props.children.slice(4); // Cut frontmatter information
- contentRender = Children.map(contentRender, child => {
+ contentRender = Children.map(contentRender, (child) => {
if (isValidElement(child)) {
if (child.props.mdxType === 'pre') {
// eslint-disable-next-line
@@ -97,7 +108,7 @@ class Page extends Component {
contentRender = (
);
@@ -112,9 +123,9 @@ class Page extends Component {
{contentRender}
- {
- (previous || next) &&
- }
+ {(previous || next) && (
+
+ )}
{loadRelated && (
diff --git a/src/components/PageLinks/PageLinks.jsx b/src/components/PageLinks/PageLinks.jsx
index a8c449851861..c91c681bb3d4 100644
--- a/src/components/PageLinks/PageLinks.jsx
+++ b/src/components/PageLinks/PageLinks.jsx
@@ -8,33 +8,35 @@ const baseURL = 'https://github.com/webpack/webpack.js.org/edit/master/';
PageLinks.propTypes = {
page: PropTypes.shape({
- repo: PropTypes.string
- })
+ repo: PropTypes.string,
+ }),
};
-export default function PageLinks({
- page = {},
-}) {
+export default function PageLinks({ page = {} }) {
const editLink = page.edit || Url.resolve(baseURL, page.path);
// TODO: Make sure we add `repo` / `edit` and address `type` (above)
return (
- { page.repo ? (
+ {page.repo ? (
-
+
Jump to Repository
|
- ) : null }
+ ) : null}
-
+
Edit Document
|
-