Migrate from "master" branch to "main" (#11715)
* Remove dead link * Use consistent "homepage" url in package.json * Update md links * Update comment link in parser d.ts * Add comment in gitpod config * Update circleci config * Update PULL_REQUEST_TEMPLATE * Update badges * Trigger CI * Update 404 link
This commit is contained in:
committed by
Huáng Jùnliàng
parent
e498bee10f
commit
eea156b2cb
@@ -9,11 +9,11 @@
|
||||
> - :house: [Internal]
|
||||
> - :nail_care: [Polish]
|
||||
|
||||
> Semver Policy: https://github.com/babel/babel/tree/master/packages/babel-parser#semver
|
||||
> Semver Policy: https://github.com/babel/babel/tree/main/packages/babel-parser#semver
|
||||
|
||||
_Note: Gaps between patch versions are faulty, broken or test releases._
|
||||
|
||||
See the [Babel Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) for the pre-6.8.0 version Changelog.
|
||||
See the [Babel Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) for the pre-6.8.0 version Changelog.
|
||||
|
||||
## 6.17.1 (2017-05-10)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Type definitions for @babel/parser
|
||||
// Project: https://github.com/babel/babel/tree/master/packages/babel-parser
|
||||
// Project: https://github.com/babel/babel/tree/main/packages/babel-parser
|
||||
// Definitions by: Troy Gerwien <https://github.com/yortus>
|
||||
// Marvin Hagemeister <https://github.com/marvinhagemeister>
|
||||
// Avi Vahl <https://github.com/AviVahl>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"author": "Ben Newman <bn@cs.stanford.edu>",
|
||||
"description": "Explode async and generator functions into a state machine.",
|
||||
"version": "7.10.1",
|
||||
"homepage": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Adding a new plugin or polyfill to support (when approved in the next ECMAScript version)
|
||||
|
||||
### Update [`plugin-features.js`](https://github.com/babel/babel/blob/master/packages/babel-compat-data/scripts/data/plugin-features.js)
|
||||
### Update [`plugin-features.js`](https://github.com/babel/babel/blob/main/packages/babel-compat-data/scripts/data/plugin-features.js)
|
||||
|
||||
*Example:*
|
||||
|
||||
@@ -42,7 +42,7 @@ Find the corresponding module on [`core-js@2`](https://github.com/zloirock/core-
|
||||
|
||||
`es7.object.values.js`
|
||||
|
||||
Find required ES version in [`corejs2-built-in-features.js`](https://github.com/babel/babel/blob/master/packages/babel-preset-env/data/corejs2-built-in-features.js) and add the new feature:
|
||||
Find required ES version in [`corejs2-built-in-features.js`](https://github.com/babel/babel/blob/main/packages/babel-preset-env/data/corejs2-built-in-features.js) and add the new feature:
|
||||
|
||||
```js
|
||||
const es = {
|
||||
@@ -51,17 +51,17 @@ const es = {
|
||||
}
|
||||
```
|
||||
|
||||
If you wan to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related `core-js` modules to [this file](https://github.com/babel/babel/blob/master/packages/babel-preset-env/polyfills/corejs2/built-in-definitions.js).
|
||||
If you wan to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related `core-js` modules to [this file](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs2/built-in-definitions.js).
|
||||
|
||||
### Update data for `core-js@3` polyfilling
|
||||
|
||||
Just update the version of [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) in dependencies.
|
||||
Just update the version of [`core-js-compat`](https://github.com/zloirock/core-js/tree/main/packages/core-js-compat) in dependencies.
|
||||
|
||||
If you wan to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related [`core-js`](https://github.com/zloirock/core-js/tree/master/packages/core-js/modules) modules to [this file](https://github.com/babel/babel/blob/master/packages/babel-preset-env/polyfills/corejs3/built-in-definitions.js).
|
||||
If you wan to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related [`core-js`](https://github.com/zloirock/core-js/tree/main/packages/core-js/modules) modules to [this file](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/built-in-definitions.js).
|
||||
|
||||
If you want to mark a new proposal as shipped, add it to [this list](https://github.com/babel/babel/blob/master/packages/babel-preset-env/polyfills/corejs3/shipped-proposals.js).
|
||||
If you want to mark a new proposal as shipped, add it to [this list](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/shipped-proposals.js).
|
||||
|
||||
### Update [`plugins.json`](https://github.com/babel/babel/blob/master/packages/babel-preset-env/data/plugins.json)
|
||||
### Update [`plugins.json`](https://github.com/babel/babel/blob/main/packages/babel-preset-env/data/plugins.json)
|
||||
|
||||
Until `compat-table` is a standalone npm module for data we are using the git commit in `packages/babel-compat-data/scripts/download-compat-table.sh`
|
||||
|
||||
@@ -72,7 +72,7 @@ So we update and then run `npm run build-data`. If there are no changes, then `p
|
||||
## Tests
|
||||
|
||||
### Running tests
|
||||
See general [CONTRIBUTING.md](https://github.com/babel/babel/blob/master/CONTRIBUTING.md#running-lintingtests).
|
||||
See general [CONTRIBUTING.md](https://github.com/babel/babel/blob/main/CONTRIBUTING.md#running-lintingtests).
|
||||
|
||||
### Writing tests
|
||||
|
||||
@@ -80,7 +80,7 @@ See general [CONTRIBUTING.md](https://github.com/babel/babel/blob/master/CONTRIB
|
||||
|
||||
All the tests for `@babel/preset-env` exist in the `test/fixtures` folder. The
|
||||
test setup and conventions are exactly the same as testing a Babel plugin, so
|
||||
please read our [documentation on writing tests](https://github.com/babel/babel/blob/master/CONTRIBUTING.md#babel-plugin-x).
|
||||
please read our [documentation on writing tests](https://github.com/babel/babel/blob/main/CONTRIBUTING.md#babel-plugin-x).
|
||||
|
||||
#### Testing the `debug` option
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-runtime"
|
||||
},
|
||||
"homepage": "https://babeljs.io/docs/en/next/babel-runtime",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.13.4"
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"homepage": "https://github.com/babel/babel/tree/master/packages/babel-standalone",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
|
||||
@@ -209,7 +209,7 @@ export function getOuterBindingIdentifiers(duplicates?: boolean): Object {
|
||||
return t.getOuterBindingIdentifiers(this.node, duplicates);
|
||||
}
|
||||
|
||||
// original source - https://github.com/babel/babel/blob/master/packages/babel-types/src/retrievers.js
|
||||
// original source - https://github.com/babel/babel/blob/main/packages/babel-types/src/retrievers/getBindingIdentifiers.js
|
||||
// path.getBindingIdentifiers returns nodes where the following re-implementation
|
||||
// returns paths
|
||||
export function getBindingIdentifierPaths(
|
||||
|
||||
Reference in New Issue
Block a user