Skip to content

Commit

Permalink
Archive syntax plugins enabled by default (#10820)
Browse files Browse the repository at this point in the history
* Remove syntax plugins enabled by default

Moved to babel-archive: babel/babel-archive@8f23ddc

- `@babel/plugin-syntax-async-generators`
- `@babel/plugin-syntax-bigint`
- `@babel/plugin-syntax-dynamic-import`
- `@babel/plugin-syntax-json-strings`
- `@babel/plugin-syntax-nullish-coalescing-operator`
- `@babel/plugin-syntax-object-rest-spread`
- `@babel/plugin-syntax-optional-catch-binding`
- `@babel/plugin-syntax-optional-chaining`

* Fix build script

* Fix jest config

* Remove archived plugins from tests
  • Loading branch information
nicolo-ribaudo committed Jan 12, 2020
1 parent c7f7f9b commit a677d59
Show file tree
Hide file tree
Showing 51 changed files with 48 additions and 507 deletions.
18 changes: 17 additions & 1 deletion jest.config.js
@@ -1,3 +1,19 @@
// These packages undet the @babel namespace aren't in this monorepo.
const externalBabelPackages = [
"plugin-syntax-async-generators",
"plugin-syntax-bigint",
"plugin-syntax-dynamic-import",
"plugin-syntax-json-strings",
"plugin-syntax-nullish-coalescing-operator",
"plugin-syntax-object-rest-spread",
"plugin-syntax-optional-catch-binding",
"plugin-syntax-optional-chaining",
];

// prettier-ignore
const monorepoPackagePattern =
`^@babel/(?!eslint-)(?!${externalBabelPackages.join("|")})([a-zA-Z0-9_-]+)$`;

module.exports = {
collectCoverageFrom: [
"packages/*/src/**/*.mjs",
Expand Down Expand Up @@ -46,7 +62,7 @@ module.exports = {
"<rootDir>/build/",
],
moduleNameMapper: {
"^@babel/(?!eslint-)([a-zA-Z0-9_-]+)$": "<rootDir>/packages/babel-$1/",
[monorepoPackagePattern]: "<rootDir>/packages/babel-$1/",
"^@babel/eslint-([a-zA-Z0-9_-]+)$": "<rootDir>/eslint/babel-eslint-$1/",
},
};
Expand Up @@ -2,7 +2,6 @@
"plugins": [
["proposal-decorators", { "decoratorsBeforeExport": false }],
"proposal-class-properties",
"syntax-async-generators",
["external-helpers", { "helperVersion": "7.1.5" }]
]
}
Expand Up @@ -7,7 +7,6 @@
{
"helperVersion": "7.1.5"
}
],
"syntax-async-generators"
]
]
}
@@ -1,6 +1,5 @@
{
"plugins": [
"syntax-dynamic-import",
"transform-modules-amd",
"external-helpers"
]
Expand Down
@@ -1,6 +1,5 @@
{
"plugins": [
"syntax-dynamic-import",
"transform-modules-commonjs",
"external-helpers"
]
Expand Down
@@ -1,7 +1,6 @@
{
"validateLogs": true,
"plugins": [
"syntax-dynamic-import",
"transform-modules-systemjs",
"external-helpers"
]
Expand Down
@@ -1,6 +1,5 @@
{
"plugins": [
"proposal-logical-assignment-operators",
"syntax-nullish-coalescing-operator"
"proposal-logical-assignment-operators"
]
}
@@ -1,6 +1,5 @@
{
"plugins": [
"syntax-async-generators",
"proposal-object-rest-spread",
["external-helpers", { "helperVersion": "7.1.5" }]
]
Expand Down
3 changes: 0 additions & 3 deletions packages/babel-plugin-syntax-async-generators/.npmignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/babel-plugin-syntax-async-generators/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions packages/babel-plugin-syntax-async-generators/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/babel-plugin-syntax-async-generators/src/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/babel-plugin-syntax-bigint/.npmignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/babel-plugin-syntax-bigint/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions packages/babel-plugin-syntax-bigint/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/babel-plugin-syntax-bigint/src/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/babel-plugin-syntax-dynamic-import/.npmignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/babel-plugin-syntax-dynamic-import/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions packages/babel-plugin-syntax-dynamic-import/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/babel-plugin-syntax-dynamic-import/src/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/babel-plugin-syntax-json-strings/.npmignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/babel-plugin-syntax-json-strings/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions packages/babel-plugin-syntax-json-strings/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/babel-plugin-syntax-json-strings/src/index.js

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions packages/babel-plugin-syntax-nullish-coalescing-operator/README.md

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a677d59

Please sign in to comment.