Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ebucollin571 committed Feb 25, 2025
0 parents commit 48fc425
Show file tree
Hide file tree
Showing 1,988 changed files with 250,228 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Declare files that will always have LF line endings on checkout.
*.txt eol=lf
127 changes: 127 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Bug report
description: File a bug report for puppeteer or puppeteer-core
title: '[Bug]: '
labels: [bug]
body:
- type: markdown
attributes:
value: >
### Thanks for taking the time to fill out this bug report!
**Before filling out this report**, please check our
[Troubleshooting](https://pptr.dev/troubleshooting) guide for solutions
to common issues.
If your issue is not about `puppeteer` or `puppeteer-core` packages, check out
other issue templates at https://github.com/puppeteer/puppeteer/issues/new/choose.
- id: mvce
type: textarea
attributes:
label: Minimal, reproducible example
description: >
Provide a [minimal, reproducible
example](https://stackoverflow.com/help/minimal-reproducible-example) of
the bug you are facing. If possible, embedd the test page content into the
Puppeteer script using `page.setContent()`.
render: TypeScript
placeholder: |
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch();
const page = await browser.newPage();
// Set test content.
await page.setContent(`<div>test</div>`);
// Actions to trigger the bug.
await browser.close();
validations:
required: true
- id: background
type: textarea
attributes:
label: Background
description: >
Optional. Briefly describe your use-case that led to this issue. This can help us
understand the general situation to provide better, higher quality
feedback and help others in similar situations.
placeholder: |
I've been trying to ...
- id: expectation
type: textarea
attributes:
label: Expectation
description: What are you expecting the code to do?
placeholder: |
I expected ...
validations:
required: true
- id: reality
type: textarea
attributes:
label: Reality
description: What actually happens?
placeholder: |
In reality, ...
validations:
required: true
- id: puppeteer-configuration
type: textarea
attributes:
label: Puppeteer configuration file (if used)
description: >
Copy and paste your [configuration
file](https://pptr.dev/guides/configuration/) (if used).
*No need for backticks — this automatically gets formatted into code.*
render: TypeScript
- id: puppeteer-version
type: input
attributes:
label: Puppeteer version
description: >
What version of Puppeteer are you running? *This must be a valid semver
tag, for example, `20.8.1`.*
validations:
required: true
- id: node-version
type: input
attributes:
label: Node version
description: >
What supported version of Node.js are you running? *This must be a valid
semver tag, for example, `20.3.1`.*
validations:
required: true
- id: pkg-mgr
type: dropdown
attributes:
label: Package manager
description: What package manager are you running?
options:
- npm
- yarn
- pnpm
validations:
required: true
- id: pkg-mgr-version
type: input
attributes:
label: Package manager version
description: >
What version of the package manager are you running? *This must be a
valid semver tag, for example, `9.6.7`.*
validations:
required: true
- id: operating-system
type: dropdown
attributes:
label: Operating system
description: What supported operating system are you running?
options:
- Windows
- macOS
- Linux
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: General Puppeteer questions
url: https://stackoverflow.com/questions/tagged/puppeteer
about: For general technical questions or “how to” guidance, please search StackOverflow for questions tagged “puppeteer” or create a new post.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feature
description: File a feature request
title: '[Feature]: '
labels: [feature]
body:
- type: markdown
attributes:
value: |
### Thanks for taking the time to fill out a feature request!
**Before filling out this report**, please check [existing feature requests](https://github.com/puppeteer/puppeteer/issues?q=is%3Aissue++label%3Afeature+) and see if your feature has already been proposed.
- type: textarea
id: summary
attributes:
label: Feature description
description: Please describe your feature request with as many details as possible.
validations:
required: true
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-browsers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Bug for @puppeteer/browsers
description: File a bug report specifically about the `@puppeteer/browsers` package.
title: '[Bug]: '
labels: [bug, '@puppeteer/browsers']
body:
- type: textarea
id: summary
attributes:
label: Steps to reproduce
description: Please describe steps to reproduce the issue.
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected results
description: What is the behaviour you expect.
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual results
description: What is the observed behaviour.
validations:
required: true
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-ng-schematics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Bug for @puppeteer/ng-schematics
description: File a bug report specifically about the `@puppeteer/ng-schematics` package.
title: '[Bug]: '
labels: [bug, '@puppeteer/ng-schematics']
body:
- type: textarea
id: summary
attributes:
label: Steps to reproduce
description: Please describe steps to reproduce the issue.
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected results
description: What is the behaviour you expect.
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual results
description: What is the observed behaviour.
validations:
required: true
- id: ng-schematics-version
type: input
attributes:
label: '@puppeteer/ng-schematics version'
description: >
For example, `0.5.5`
validations:
required: true
- id: ng-version
type: textarea
attributes:
label: Angular CLI version
description: >
Paste the output of `ng version` here.
validations:
required: true
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. -->

**What kind of change does this PR introduce?**

<!-- E.g. a bugfix, feature, refactoring, build related change, etc… -->

**Did you add tests for your changes?**

**If relevant, did you update the documentation?**

**Summary**

<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Try to link to an open issue for more information. -->

**Does this PR introduce a breaking change?**

<!-- If this PR introduces a breaking change, please describe the impact and a migration path for existing applications. -->

**Other information**
61 changes: 61 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: 'sunday'
time: '02:00'
timezone: Europe/Berlin
ignore:
- dependency-name: devtools-protocol
- dependency-name: '@types/node'
- dependency-name: '@angular-devkit/*'
groups:
dependencies:
dependency-type: production
patterns:
- '*'
dev-dependencies:
dependency-type: development
patterns:
- '*'
- package-ecosystem: npm
directory: /website
schedule:
interval: weekly
day: 'sunday'
time: '03:00'
timezone: Europe/Berlin
groups:
all:
patterns:
- '*'
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: 'sunday'
time: '04:00'
timezone: Europe/Berlin
groups:
all:
patterns:
- '*'
- package-ecosystem: docker
directory: /docker
schedule:
interval: weekly
day: 'sunday'
time: '05:00'
timezone: Europe/Berlin
ignore:
- dependency-name: node
versions:
# Remove once NodeJS v24 is LTS
- '24'
- '23'
groups:
all:
patterns:
- '*'
4 changes: 4 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
releaseType: node
primaryBranch: main
handleGHRelease: true
manifest: true
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Dependencies
node_modules

# Production
build/
lib/
bin/

# Generated files
**/*.tsbuildinfo
*.api.json
*.tgz
yarn.lock
.docusaurus/
.cache-loader
test/output-*/
.dev_profile*
coverage/
generated/
.eslintcache
.cache/

# IDE Artifacts
.vscode/*
!.vscode/extensions.json
!.vscode/*.template.json
.devcontainer

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Wireit
.wireit
24 changes: 24 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @license
* Copyright 2020 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/

let timeout = process.platform === 'win32' ? 20_000 : 10_000;
if (!!process.env.DEBUGGER_ATTACHED) {
timeout = 0;
}
module.exports = {
logLevel: 'debug',
require: ['./test/build/mocha-utils.js', 'source-map-support/register'],
exit: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
parallel: !!process.env.PARALLEL,
timeout: timeout,
reporter: process.env.CI ? 'spec' : 'dot',
// This should make mocha crash on uncaught errors.
// See https://github.com/mochajs/mocha/blob/master/docs/index.md#--allow-uncaught.
allowUncaught: true,
// See https://github.com/mochajs/mocha/blob/master/docs/index.md#--async-only--a.
asyncOnly: true,
};
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
access=public
install-strategy=nested
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22
Loading

0 comments on commit 48fc425

Please sign in to comment.