Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack ecosystem status page #1857

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions antwar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module.exports = {
vote: () => require('./src/components/Vote/Vote.jsx').default,
organization: () => require('./src/components/Organization/Organization.jsx').default,
'starter-kits': () => require('./src/components/StarterKits/StarterKits.jsx').default,
compatibility: () => require('./src/components/Compatibility/Compatibility.jsx').default,

/*************************
Redirects for Old Content
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"ncp": "^2.0.0",
"node-sass": "^4.5.3",
"npm-run-all": "^4.1.1",
"package-json": "^4.0.1",
"postcss-loader": "^2.0.6",
"prism-languages": "^0.3.3",
"prismjs": "^1.9.0",
Expand Down
35 changes: 35 additions & 0 deletions src/components/Compatibility/Compatibility.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
import Container from '../Container/Container';
import packages from './packages.json';

export default () => {
return (
<Container className="page__content">
<h1>Ecosystem compatibility</h1>
<div className="table">
<div className="table-wrap">
<div className="table-header">
<div className="table-tr">
<div className="table-th">Package</div>
<div className="table-th">Compatibility</div>
</div>
</div>
<div className="table-body">
{packages.map(({ name, peerDependencies: { webpack } = { webpack: '' } }) => (
<div className="table-tr">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key is missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was a quick build as PoC

<div className="table-td">
<div className="table-td-title">Package</div>
<div className="table-td-content">{name}</div>
</div>
<div className="table-td">
<div className="table-td-title">Compatibility</div>
<div className="table-td-content">{webpack}</div>
</div>
</div>
))}
</div>
</div>
</div>
</Container>
);
};