Skip to content

Commit aad82ca

Browse files
fix conflicts
2 parents 1baf0eb + f072634 commit aad82ca

1,807 files changed

Lines changed: 269467 additions & 99258 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ aliases:
77
- &environment
88
docker:
99
# specify the version you desire here
10-
- image: circleci/node:12.16.1-browsers
10+
- image: cimg/node:16.20-browsers
1111
resource_class: xlarge
1212
# Specify service dependencies here if necessary
1313
# CircleCI maintains a library of pre-built images
@@ -38,24 +38,12 @@ aliases:
3838
name: BrowserStack End to end testing
3939
command: gulp e2e-test
4040

41-
# Download and run BrowserStack local
42-
- &setup_browserstack
43-
name : Download BrowserStack Local binary and start it.
44-
command : |
45-
# Download the browserstack binary file
46-
wget "https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip"
47-
# Unzip it
48-
unzip BrowserStackLocal-linux-x64.zip
49-
# Run the file with user's access key
50-
./BrowserStackLocal ${BROWSERSTACK_ACCESS_KEY} &
51-
5241
- &unit_test_steps
5342
- checkout
5443
- restore_cache: *restore_dep_cache
5544
- run: npm ci
5645
- save_cache: *save_dep_cache
5746
- run: *install
58-
- run: *setup_browserstack
5947
- run: *run_unit_test
6048

6149
- &endtoend_test_steps
@@ -64,7 +52,6 @@ aliases:
6452
- run: npm install
6553
- save_cache: *save_dep_cache
6654
- run: *install
67-
- run: *setup_browserstack
6855
- run: *run_endtoend_test
6956

7057
version: 2
@@ -82,6 +69,9 @@ workflows:
8269
commit:
8370
jobs:
8471
- build
72+
- e2etest:
73+
requires:
74+
- build
8575

8676
experimental:
8777
pipelines: true

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ARG VARIANT="12"
22
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
33

4+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpg
5+
46
# [Optional] Uncomment this section to install additional OS packages.
57
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
68
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
},
1010

1111
"postCreateCommand": "bash .devcontainer/postCreate.sh",
12-
12+
// Make is-docker work again
13+
"postStartCommand": "test -f /.dockerenv || sudo touch /.dockerenv",
14+
1315
// Set *default* container specific settings.json values on container create.
1416
"settings": {},
1517

1618

1719
// Add the IDs of extensions you want installed when the container is created.
1820
"extensions": [
19-
"nickdodd79.gulptasks"
21+
"nickdodd79.gulptasks",
22+
"dbaeumer.vscode-eslint"
2023
],
2124

2225
// 9999 is web server, 9876 is karma

.eslintrc.js

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,38 @@ module.exports = {
1111
node: {
1212
moduleDirectory: ['node_modules', './']
1313
}
14+
},
15+
'jsdoc': {
16+
mode: 'typescript',
17+
tagNamePreference: {
18+
'tag constructor': 'constructor',
19+
extends: 'extends',
20+
method: 'method',
21+
return: 'return',
22+
}
1423
}
1524
},
16-
extends: 'standard',
25+
extends: [
26+
'standard',
27+
'plugin:jsdoc/recommended'
28+
],
1729
plugins: [
1830
'prebid',
19-
'import'
31+
'import',
32+
'jsdoc'
2033
],
2134
globals: {
22-
'$$PREBID_GLOBAL$$': false,
2335
'BROWSERSTACK_USERNAME': false,
24-
'BROWSERSTACK_KEY': false
36+
'BROWSERSTACK_KEY': false,
37+
'FEATURES': 'readonly',
2538
},
2639
// use babel as parser for fancy syntax
2740
parser: '@babel/eslint-parser',
2841
parserOptions: {
2942
sourceType: 'module',
3043
ecmaVersion: 2018,
3144
},
45+
ignorePatterns: ['libraries/creative-renderer*'],
3246

3347
rules: {
3448
'comma-dangle': 'off',
@@ -45,12 +59,37 @@ module.exports = {
4559
'no-throw-literal': 'off',
4660
'no-undef': 2,
4761
'no-useless-escape': 'off',
48-
'no-console': 'error'
62+
'no-console': 'error',
63+
'jsdoc/check-types': 'off',
64+
'jsdoc/newline-after-description': 'off',
65+
'jsdoc/require-jsdoc': 'off',
66+
'jsdoc/require-param': 'off',
67+
'jsdoc/require-param-description': 'off',
68+
'jsdoc/require-param-name': 'off',
69+
'jsdoc/require-param-type': 'off',
70+
'jsdoc/require-property': 'off',
71+
'jsdoc/require-property-description': 'off',
72+
'jsdoc/require-property-name': 'off',
73+
'jsdoc/require-property-type': 'off',
74+
'jsdoc/require-returns': 'off',
75+
'jsdoc/require-returns-check': 'off',
76+
'jsdoc/require-returns-description': 'off',
77+
'jsdoc/require-returns-type': 'off',
78+
'jsdoc/require-yields': 'off',
79+
'jsdoc/require-yields-check': 'off',
80+
'jsdoc/tag-lines': 'off'
4981
},
5082
overrides: Object.keys(allowedModules).map((key) => ({
5183
files: key + '/**/*.js',
5284
rules: {
53-
'prebid/validate-imports': ['error', allowedModules[key]]
85+
'prebid/validate-imports': ['error', allowedModules[key]],
86+
'no-restricted-globals': [
87+
'error',
88+
{
89+
name: 'require',
90+
message: 'use import instead'
91+
}
92+
]
5493
}
5594
})).concat([{
5695
// code in other packages (such as plugins/eslint) is not "seen" by babel and its parser will complain.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<!--
2-
Thank you for your pull request. Please make sure this PR is scoped to one change, and that any added or changed code includes tests with greater than 80% code coverage. See https://github.com/prebid/Prebid.js/blob/master/CONTRIBUTING.md#testing-prebidjs for documentation on testing Prebid.js.
2+
Thank you for your pull request!
3+
4+
Please title your pull request like this: 'Module: Change', eg 'Fraggles Bid Adapter: support fragglerock'
5+
6+
Please make sure this PR is scoped to one change or you may be asked to resubmit.
7+
8+
Please make sure any added or changed code includes tests with greater than 80% code coverage.
9+
10+
See https://github.com/prebid/Prebid.js/blob/master/CONTRIBUTING.md#testing-prebidjs for documentation on testing Prebid.js.
11+
12+
For any user facing change, submit a link to a PR on the docs repo at https://github.com/prebid/prebid.github.io/
313
-->
414

515
## Type of change
@@ -11,14 +21,16 @@ Thank you for your pull request. Please make sure this PR is scoped to one chang
1121
- [ ] Refactoring (no functional changes, no api changes)
1222
- [ ] Build related changes
1323
- [ ] CI related changes
24+
1425
- [ ] Does this change affect user-facing APIs or examples documented on http://prebid.org?
1526
- [ ] Other
1627

1728
## Description of change
1829
<!-- Describe the change proposed in this pull request -->
1930

20-
<!-- For new bidder adapters, please provide the following -->
21-
- test parameters for validating bids
31+
<!-- For new bidder adapters, please provide the following
32+
- contact email of the adapter’s maintainer
33+
- test parameters for validating bids:
2234
```
2335
{
2436
bidder: '<bidder name>',
@@ -28,14 +40,8 @@ Thank you for your pull request. Please make sure this PR is scoped to one chang
2840
}
2941
```
3042
31-
Be sure to test the integration with your adserver using the [Hello World](/integrationExamples/gpt/hello_world.html) sample page.
32-
33-
- contact email of the adapter’s maintainer
34-
- [ ] official adapter submission
35-
36-
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
43+
Be sure to test the integration with your adserver using the [Hello World](/integrationExamples/gpt/hello_world.html) sample page. -->
3744

38-
- A link to a PR on the docs repo at https://github.com/prebid/prebid.github.io/
3945

4046
## Other information
4147
<!-- References to related PR or issue #s, @mentions of the person or team responsible for reviewing changes, etc. -->

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
paths:
2+
- src
3+
- modules
4+
- libraries

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master"]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master"]
20+
schedule:
21+
- cron: '22 11 * * 0'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
48+
config-file: ./.github/codeql/codeql-config.yml
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
53+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
54+
# queries: security-extended,security-and-quality
55+
56+
57+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
58+
# If this step fails, then you should remove it and run the build manually (see below)
59+
- name: Autobuild
60+
uses: github/codeql-action/autobuild@v3
61+
62+
# ℹ️ Command-line programs to run using the OS shell.
63+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
64+
65+
# If the Autobuild fails above, remove it and uncomment the following three lines.
66+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
67+
68+
# - run: |
69+
# echo "Run, Build Application using script"
70+
# ./location_of_script_within_repo/buildscript.sh
71+
72+
- name: Perform CodeQL Analysis
73+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)