Skip to content

Commit

Permalink
Merge pull request #270 from babel/master
Browse files Browse the repository at this point in the history
[pull] master from babel:master
  • Loading branch information
Berkmann18 committed Apr 7, 2020
2 parents d75652e + 70cc111 commit 0f14e9a
Show file tree
Hide file tree
Showing 5,566 changed files with 61,985 additions and 471,562 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
23 changes: 13 additions & 10 deletions .circleci/config.yml
Expand Up @@ -25,12 +25,6 @@ aliases:
- &artifact_babel_min
path: ~/babel/packages/babel-standalone/babel.min.js

- &artifact_env
path: ~/babel/packages/babel-preset-env-standalone/babel-preset-env.js

- &artifact_env_min
path: ~/babel/packages/babel-preset-env-standalone/babel-preset-env.min.js

- &test262_workdir
working_directory: ~/babel/babel-test262-runner

Expand Down Expand Up @@ -69,8 +63,6 @@ jobs:
- run: yarn jest "\-standalone/test"
- store_artifacts: *artifact_babel
- store_artifacts: *artifact_babel_min
- store_artifacts: *artifact_env
- store_artifacts: *artifact_env_min
- save_cache: *save-node-modules-cache
- save_cache: *save-yarn-cache

Expand All @@ -96,8 +88,8 @@ jobs:
command: |
git clone --recurse-submodules https://github.com/babel/babel-test262-runner
cd babel-test262-runner
yarn
yarn add tap-mocha-reporter --dev
npm ci
npm i tap-mocha-reporter --save-dev
node lib/download-node
- run:
name: Download master branch Test262 artifact
Expand Down Expand Up @@ -150,6 +142,14 @@ jobs:
at: /tmp/verdaccio-workspace
- run: ./scripts/integration-tests/e2e-babel.sh

e2e-babel-old-version:
executor: node-executor
steps:
- checkout
- attach_workspace:
at: /tmp/verdaccio-workspace
- run: ./scripts/integration-tests/e2e-babel-old-version.sh

e2e-create-react-app:
executor: node-executor
steps:
Expand Down Expand Up @@ -199,6 +199,9 @@ workflows:
- e2e-babel:
requires:
- publish-verdaccio
- e2e-babel-old-version:
requires:
- publish-verdaccio
- e2e-create-react-app:
requires:
- publish-verdaccio
Expand Down
6 changes: 2 additions & 4 deletions .eslintignore
Expand Up @@ -17,15 +17,13 @@ codemods/*/lib
codemods/*/dist
codemods/*/test/fixtures
codemods/*/test/tmp
packages/babel-compat-data/build
packages/babel-preset-env/data/[^(plugin-features|shipped-proposals).js]
packages/babel-preset-env/test/debug-fixtures
packages/babel-preset-env-standalone/babel-preset-env.js
packages/babel-preset-env-standalone/babel-preset-env.min.js
packages/babel-standalone/babel.js
packages/babel-standalone/babel.min.js
packages/babel-parser/test/expressions

eslint/*/lib
eslint/*/node_modules
eslint/*/test
eslint/*/tests
eslint/*/test/fixtures
15 changes: 13 additions & 2 deletions .eslintrc.js
@@ -1,7 +1,10 @@
const path = require("path");

module.exports = {
root: true,
plugins: ["prettier", "@babel/development", "import"],
extends: "babel",
plugins: ["prettier", "@babel/development", "import", "jest"],
// replace it by `@babel/internal` when `@babel/eslint-config-internal` is published
extends: path.resolve(__dirname, "eslint/babel-eslint-config-internal"),
rules: {
"prettier/prettier": "error",
// TODO: remove after babel-eslint-config-internal is fully integrated into this repository.
Expand Down Expand Up @@ -35,6 +38,14 @@ module.exports = {
env: {
jest: true,
},
extends: "plugin:jest/recommended",
rules: {
"jest/expect-expect": "off",
"jest/no-identical-title": "off",
"jest/no-standalone-expect": "off",
"jest/no-test-callback": "off",
"jest/valid-describe": "off"
}
},
{
files: ["packages/babel-plugin-*/src/index.js"],
Expand Down
1 change: 1 addition & 0 deletions .flowconfig
Expand Up @@ -14,6 +14,7 @@ codemods/*/src
lib/file.js
lib/parser.js
lib/third-party-libs.js.flow
lib/preset-modules.js.flow
packages/babel-types/lib/index.js.flow

[options]
Expand Down
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/Npm_error.md
@@ -0,0 +1,18 @@
---
name: "\U0001F4E6 npm error"
about: "When you get a `No matching version found for ...` error from npm"
title: ''
labels: 'i: npm cache'
assignees: ''

---

<!------------^ Click "Preview" for a nicer view! -->

First of all, check if the package for which `npm` throws an error is actually published by searching [on the npm website](https://www.npmjs.com/).

If it is, then there is nothing that we can do about it: it was correctly published, but for some reason your package manager client doesn't find it.

If you are using a proxy for the npm registry (maybe it's used by your company, or you are using it because your country blocks the main npm registry), then it's likely that it has cached the old version of the package and it isn't loading the new one. If you can, try clearing the proxy's cache. Otherwise, you will have to wait until the cache is automatically updated (it might take a few hours, or even days).

If you are not using a proxy, or if it isn't a caching problem, please report the issue to npm (https://github.com/npm/cli/issues/new/choose) instead of in this repo!
12 changes: 0 additions & 12 deletions .github/lock.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/lock.yml
@@ -0,0 +1,17 @@
name: Lock Threads

on:
schedule:
- cron: '0 4 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '91'
issue-lock-labels: 'outdated'
pr-lock-inactive-days: '91'
pr-lock-labels: 'outdated'
9 changes: 6 additions & 3 deletions .gitignore
@@ -1,5 +1,11 @@
.npmrc

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.js

.DS_Store
/node_modules
/.github/actions/*/node_modules
Expand Down Expand Up @@ -56,9 +62,6 @@ package-lock.json
packages/babel-standalone/babel.js
packages/babel-standalone/babel.js.map
packages/babel-standalone/babel.min.js
packages/babel-preset-env-standalone/babel-preset-env.js
packages/babel-preset-env-standalone/babel-preset-env.js.map
packages/babel-preset-env-standalone/babel-preset-env.min.js
/codemods/*/lib
/codemods/*/node_modules
/packages/babel-parser/build
Expand Down

0 comments on commit 0f14e9a

Please sign in to comment.