Merge pull request #8144 from BeniCheni/add-labels-to-readmes

Add Labels to READMEs Generator & Update README's w. Links To Open Issues (for some pkg's)
This commit is contained in:
Sven Sauleau 2018-06-11 07:32:34 +02:00 committed by GitHub
commit 5bd79c70a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@
> Turns an AST into code.
See our website [@babel/generator](https://new.babeljs.io/docs/en/next/babel-generator.html) for more information.
See our website [@babel/generator](https://new.babeljs.io/docs/en/next/babel-generator.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen) associated with this package.
## Install

View File

@ -2,7 +2,7 @@
> Babel command line
See our website [@babel/node](https://new.babeljs.io/docs/en/next/babel-node.html) for more information.
See our website [@babel/node](https://new.babeljs.io/docs/en/next/babel-node.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20node%22+is%3Aopen) associated with this package.
## Install

View File

@ -2,7 +2,7 @@
> Standalone build of Babel for use in non-Node.js environments.
See our website [@babel/standalone](https://new.babeljs.io/docs/en/next/babel-standalone.html) for more information.
See our website [@babel/standalone](https://new.babeljs.io/docs/en/next/babel-standalone.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20standalone%22+is%3Aopen) associated with this package.
## Install

View File

@ -2,7 +2,7 @@
> Generate an AST from a string template.
See our website [@babel/template](https://new.babeljs.io/docs/en/next/babel-template.html) for more information.
See our website [@babel/template](https://new.babeljs.io/docs/en/next/babel-template.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen) associated with this package.
## Install

View File

@ -21,17 +21,21 @@ const getIssueLabelLink = l =>
)}%22+is%3Aopen`;
const labels = {
"babel-preset-typescript": getIssueLabelLink("area: typescript"),
"babel-preset-flow": getIssueLabelLink("area: flow"),
"babel-preset-node": getIssueLabelLink("area: node"),
"babel-preset-react": getIssueLabelLink("area: react"),
"babel-preset-typescript": getIssueLabelLink("area: typescript"),
"babel-parser": getIssueLabelLink("pkg: babylon"),
"babel-cli": getIssueLabelLink("pkg: cli"),
"babel-core": getIssueLabelLink("pkg: core"),
"babel-generator": getIssueLabelLink("pkg: generator"),
"babel-polyfill": getIssueLabelLink("pkg: polyfill"),
"babel-preset-env": getIssueLabelLink("pkg: preset-env"),
"babel-register": getIssueLabelLink("pkg: register"),
"babel-template": getIssueLabelLink("pkg: template"),
"babel-traverse": getIssueLabelLink("pkg: traverse"),
"babel-types": getIssueLabelLink("pkg: types"),
"babel-standalone": getIssueLabelLink("pkg: standalone"),
};
const generateReadme = ({ websiteLink, issuesLink, name, description }) =>