Skip to content

Commit 8164c88

Browse files
authored
Merge branch 'canary' into prettier-ignore-test-htmls
2 parents f28b062 + 8e34902 commit 8164c88

File tree

855 files changed

+15319
-8718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

855 files changed

+15319
-8718
lines changed

.alexignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CODE_OF_CONDUCT.md
2+
examples/

.alexrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"allow": [
3+
"attacks",
4+
"color",
5+
"dead",
6+
"execute",
7+
"executed",
8+
"executes",
9+
"execution",
10+
"executions",
11+
"failed",
12+
"failure",
13+
"failures",
14+
"fire",
15+
"fires",
16+
"hook",
17+
"hooks",
18+
"host-hostess",
19+
"invalid"
20+
]
21+
}

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ e2e-tests/**
66
examples/with-eslint/**
77
examples/with-typescript-eslint-jest/**
88
examples/with-kea/**
9+
examples/with-custom-babel-config/**
10+
examples/with-flow/**
11+
examples/with-mobx-state-tree/**
12+
examples/with-mobx/**
913
packages/next/bundles/webpack/packages/*.runtime.js
1014
packages/next/compiled/**/*
1115
packages/react-refresh-utils/**/*.js
@@ -18,6 +22,5 @@ packages/next-codemod/**/*.js
1822
packages/next-codemod/**/*.d.ts
1923
packages/next-env/**/*.d.ts
2024
packages/create-next-app/templates/**
21-
test/integration/async-modules/**
2225
test/integration/eslint/**
2326
test-timings.json

.eslintrc.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": true,
3-
"parser": "babel-eslint",
3+
"parser": "@babel/eslint-parser",
44
"plugins": ["react", "react-hooks", "jest", "import"],
55
"env": {
66
"browser": true,
@@ -9,10 +9,17 @@
99
"node": true
1010
},
1111
"parserOptions": {
12-
"ecmaVersion": 2018,
12+
"requireConfigFile": false,
1313
"sourceType": "module",
1414
"ecmaFeatures": {
1515
"jsx": true
16+
},
17+
"babelOptions": {
18+
"presets": ["@babel/preset-env", "@babel/preset-react"],
19+
"caller": {
20+
// Eslint supports top level await when a parser for it is included. We enable the parser by default for Babel.
21+
"supportsTopLevelAwait": true
22+
}
1623
}
1724
},
1825
"settings": {

.github/CODEOWNERS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Learn how to add code owners here:
22
# https://help.github.com/en/articles/about-code-owners
33

4-
* @timneutkens @ijjk @lfades @divmain @shuding
5-
/docs/ @timneutkens @ijjk @lfades @divmain @shuding @leerob
6-
/examples/ @timneutkens @ijjk @lfades @divmain @shuding @leerob
4+
* @timneutkens @ijjk @shuding @styfle @huozhi @padmaia
5+
/docs/ @timneutkens @ijjk @shuding @styfle @huozhi @padmaia @leerob @lfades
6+
/examples/ @timneutkens @ijjk @shuding @styfle @huozhi @padmaia @leerob @lfades

.github/actions/next-stats-action/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
102102
logger(`Running initial build for ${dir}`)
103103
if (!actionInfo.skipClone) {
104104
let buildCommand = `cd ${dir}${
105-
!statsConfig.skipInitialInstall ? ' && yarn install' : ''
105+
!statsConfig.skipInitialInstall
106+
? ' && yarn install --network-timeout 1000000'
107+
: ''
106108
}`
107109

108110
if (statsConfig.initialBuildCommand) {

.github/labeler.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,23 @@
99
"packages/react-refresh-utils/**",
1010
"packages/next-codemod/**"
1111
],
12-
"type: chrome": [
12+
"created-by: Chrome Aurora": [
1313
{ "type": "user", "pattern": "spanicker" },
1414
{ "type": "user", "pattern": "housseindjirdeh" },
1515
{ "type": "user", "pattern": "devknoll" },
1616
{ "type": "user", "pattern": "janicklas-ralph" },
1717
{ "type": "user", "pattern": "atcastle" },
1818
{ "type": "user", "pattern": "Joonpark13" }
19+
],
20+
"created-by: Next.js team": [
21+
{ "type": "user", "pattern": "ijjk" },
22+
{ "type": "user", "pattern": "padmaia" },
23+
{ "type": "user", "pattern": "huozhi" },
24+
{ "type": "user", "pattern": "shuding" },
25+
{ "type": "user", "pattern": "sokra" },
26+
{ "type": "user", "pattern": "styfle" },
27+
{ "type": "user", "pattern": "leerob" },
28+
{ "type": "user", "pattern": "timneutkens" }
1929
]
2030
}
2131
}

.github/pull_request_template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Choose the right checklist for the change that you're making:
88

99
- [ ] Related issues linked using `fixes #number`
1010
- [ ] Integration tests added
11+
- [ ] Errors have helpful link attached, see `contributing.md`
1112

1213
## Feature
1314

@@ -16,6 +17,7 @@ Choose the right checklist for the change that you're making:
1617
- [ ] Integration tests added
1718
- [ ] Documentation added
1819
- [ ] Telemetry added. In case of a feature if it's used or not.
20+
- [ ] Errors have helpful link attached, see `contributing.md`
1921

2022
## Documentation / Examples
2123

.github/workflows/build_test_deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
path: ./*
5757
key: ${{ github.sha }}
58-
- run: ./check-pre-compiled.sh
58+
- run: ./scripts/check-pre-compiled.sh
5959
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
6060

6161
testUnit:
@@ -146,7 +146,7 @@ jobs:
146146
path: ./*
147147
key: ${{ github.sha }}
148148

149-
- run: bash ./test-pnp.sh
149+
- run: bash ./scripts/test-pnp.sh
150150
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
151151

152152
testsPass:
@@ -251,7 +251,7 @@ jobs:
251251
path: ./*
252252
key: ${{ github.sha }}
253253

254-
- run: ./publish-release.sh
254+
- run: ./scripts/publish-release.sh
255255

256256
prStats:
257257
name: Release Stats
@@ -263,7 +263,7 @@ jobs:
263263
with:
264264
path: ./*
265265
key: ${{ github.sha }}
266-
- run: ./release-stats.sh
266+
- run: ./scripts/release-stats.sh
267267
- uses: ./.github/actions/next-stats-action
268268
env:
269269
PR_STATS_COMMENT_TOKEN: ${{ secrets.PR_STATS_COMMENT_TOKEN }}

azure-pipelines.yml

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -111,36 +111,37 @@ stages:
111111
- script: |
112112
node run-tests.js -g 1/1 --timings --azure --type unit
113113
displayName: 'Run tests'
114-
115-
- job: test_chrome_integration
116-
pool:
117-
vmImage: 'windows-2019'
118-
strategy:
119-
matrix:
120-
nodejs-1:
121-
group: 1/4
122-
nodejs-2:
123-
group: 2/4
124-
nodejs-3:
125-
group: 3/4
126-
nodejs-4:
127-
group: 4/4
128-
steps:
129-
- checkout: none
130-
- script: |
131-
wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value
132-
displayName: 'List Chrome version'
133-
- task: NodeTool@0
134-
inputs:
135-
versionSpec: $(node_version)
136-
displayName: 'Install Node.js'
137-
- task: Cache@2
138-
inputs:
139-
# use deterministic cache key that is specific
140-
# to this test run
141-
key: $(Build.SourceVersion)
142-
path: $(System.DefaultWorkingDirectory)
143-
displayName: Cache Build
144-
- script: |
145-
node run-tests.js -g $(group) --timings --azure
146-
displayName: 'Run tests'
114+
# TODO: investigate re-enabling when stability matches running in
115+
# tests in ubuntu environment
116+
# - job: test_chrome_integration
117+
# pool:
118+
# vmImage: 'windows-2019'
119+
# strategy:
120+
# matrix:
121+
# nodejs-1:
122+
# group: 1/4
123+
# nodejs-2:
124+
# group: 2/4
125+
# nodejs-3:
126+
# group: 3/4
127+
# nodejs-4:
128+
# group: 4/4
129+
# steps:
130+
# - checkout: none
131+
# - script: |
132+
# wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value
133+
# displayName: 'List Chrome version'
134+
# - task: NodeTool@0
135+
# inputs:
136+
# versionSpec: $(node_version)
137+
# displayName: 'Install Node.js'
138+
# - task: Cache@2
139+
# inputs:
140+
# # use deterministic cache key that is specific
141+
# # to this test run
142+
# key: $(Build.SourceVersion)
143+
# path: $(System.DefaultWorkingDirectory)
144+
# displayName: Cache Build
145+
# - script: |
146+
# node run-tests.js -g $(group) --timings --azure
147+
# displayName: 'Run tests'

0 commit comments

Comments
 (0)