Skip to content

Commit

Permalink
Merge branch 'canary' of github.com:vercel/next.js into Robogeek95-pa…
Browse files Browse the repository at this point in the history
…tch-2
  • Loading branch information
timneutkens committed Jan 26, 2021
2 parents fe739b1 + 235b4cd commit faafaa6
Show file tree
Hide file tree
Showing 1,230 changed files with 269,686 additions and 12,615 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -4,6 +4,7 @@ node_modules
**/dist/**
examples/with-typescript-eslint-jest/**
examples/with-kea/**
packages/next/bundles/webpack/packages/*.runtime.js
packages/next/compiled/**/*
packages/react-refresh-utils/**/*.js
packages/react-dev-overlay/lib/**
Expand Down
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/1.Bug_report.md

This file was deleted.

67 changes: 67 additions & 0 deletions .github/ISSUE_TEMPLATE/1.bug_report.yml
@@ -0,0 +1,67 @@
name: Bug Report
about: Create a bug report for the Next.js core
title: ''
labels: 'template: bug'
issue_body: true
inputs:
- type: description
attributes:
value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
- type: description
attributes:
value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Help" section.
- type: description
attributes:
value: 'Please first verify if your issue exists in the Next.js canary release line: `npm install next@canary`.'
- type: description
attributes:
value: 'next@canary is the beta version of Next.js. It includes all features and fixes that are pending to land on the stable release line.'
- type: input
attributes:
label: What version of Next.js are you using?
description: 'For example: 10.0.1'
required: true
- type: input
attributes:
label: What version of Node.js are you using?
description: 'For example: 12.0.0'
required: true
- type: input
attributes:
label: What browser are you using?
description: 'For example: Chrome, Safari'
required: true
- type: input
attributes:
label: What operating system are you using?
description: 'For example: macOS, Windows'
required: true
- type: input
attributes:
label: How are you deploying your application?
description: 'For example: next start, next export, Vercel, Other platform'
required: true
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below.
required: true
- type: description
attributes:
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
- type: description
attributes:
value: Contributors should be able to follow the steps provided in order to reproduce the bug.
- type: description
attributes:
value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance!
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/2.Feature_request.md

This file was deleted.

66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/2.example_bug_report.yml
@@ -0,0 +1,66 @@
name: Example Bug Report
about: Create a bug report for the examples
title: ''
labels: 'type: example,template: bug'
issue_body: true
inputs:
- type: description
attributes:
value: Thanks for taking the time to file a examples bug report! Please fill out this form as completely as possible.
- type: description
attributes:
value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Help" section.
- type: input
attributes:
label: What example does this report relate to?
description: 'For example: with-styled-components'
required: true
- type: input
attributes:
label: What version of Next.js are you using?
description: 'For example: 10.0.1'
required: true
- type: input
attributes:
label: What version of Node.js are you using?
description: 'For example: 12.0.0'
required: true
- type: input
attributes:
label: What browser are you using?
description: 'For example: Chrome, Safari'
required: true
- type: input
attributes:
label: What operating system are you using?
description: 'For example: macOS, Windows'
required: true
- type: input
attributes:
label: How are you deploying your application?
description: 'For example: next start, next export, Vercel, Other platform'
required: true
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below.
required: true
- type: description
attributes:
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
- type: description
attributes:
value: Contributors should be able to follow the steps provided in order to reproduce the bug.
- type: description
attributes:
value: Thanks in advance!
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/3.feature_request.yml
@@ -0,0 +1,27 @@
name: Feature Request
about: Create a feature request for the Next.js core
title: ''
labels: 'template: story'
issue_body: true
inputs:
- type: description
attributes:
value: Thanks for taking the time to file a feature request! Please fill out this form as completely as possible.
- type: description
attributes:
value: 'Feature requests will be converted to the GitHub Discussions "Ideas" section.'
- type: textarea
attributes:
label: Describe the feature you'd like to request
description: A clear and concise description of what you want and what your use case is.
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
required: true
17 changes: 14 additions & 3 deletions .github/actions/next-stats-action/src/prepare/repo-setup.js
Expand Up @@ -69,13 +69,17 @@ module.exports = (actionInfo) => {
for (const pkg of pkgs) {
const pkgPath = path.join(repoDir, 'packages', pkg)
const packedPkgPath = path.join(pkgPath, `${pkg}-packed.tgz`)
// pack the package with yarn
await exec(`cd ${pkgPath} && yarn pack -f ${pkg}-packed.tgz`)

const pkgDataPath = path.join(pkgPath, 'package.json')
const pkgData = require(pkgDataPath)
const { name } = pkgData
pkgDatas.set(name, { pkgDataPath, pkgData, packedPkgPath })
pkgDatas.set(name, {
pkgDataPath,
pkg,
pkgPath,
pkgData,
packedPkgPath,
})
pkgPaths.set(name, packedPkgPath)
}

Expand All @@ -93,6 +97,13 @@ module.exports = (actionInfo) => {
'utf8'
)
}

// wait to pack packages until after dependency paths have been updated
// to the correct versions
for (const pkgName of pkgDatas.keys()) {
const { pkg, pkgPath } = pkgDatas.get(pkgName)
await exec(`cd ${pkgPath} && yarn pack -f ${pkg}-packed.tgz`)
}
return pkgPaths
},
}
Expand Down

0 comments on commit faafaa6

Please sign in to comment.