-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prebid:master' into biddoBidAdapter
- Loading branch information
Showing
959 changed files
with
165,751 additions
and
41,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1 @@ | ||
|
||
let path = require('path'); | ||
|
||
function useLocal(module) { | ||
return require.resolve(module, { | ||
paths: [ | ||
__dirname | ||
] | ||
}) | ||
} | ||
|
||
module.exports = { | ||
"presets": [ | ||
[ | ||
useLocal('@babel/preset-env'), | ||
{ | ||
"targets": { | ||
"browsers": [ | ||
"chrome >= 61", | ||
"safari >=8", | ||
"edge >= 14", | ||
"ff >= 57", | ||
"ie >= 11", | ||
"ios >= 8" | ||
] | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
path.resolve(__dirname, './plugins/pbjsGlobals.js'), | ||
useLocal('babel-plugin-transform-object-assign') | ||
] | ||
}; | ||
module.exports = require('./babelConfig.js')(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ARG VARIANT="12" | ||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT} | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list | ||
RUN apt update | ||
RUN apt install -y google-chrome-stable xvfb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/main/containers/javascript-node | ||
{ | ||
"name": "Ubuntu", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { "VARIANT": "12" } | ||
}, | ||
|
||
"postCreateCommand": "bash .devcontainer/postCreate.sh", | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": {}, | ||
|
||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"nickdodd79.gulptasks" | ||
], | ||
|
||
// 9999 is web server, 9876 is karma | ||
"forwardPorts": [9876, 9999], | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "node" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
echo "Post Create Starting" | ||
|
||
nvm install | ||
nvm use | ||
npm install gulp-cli -g | ||
npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,60 @@ | ||
|
||
const allowedModules = require("./allowedModules"); | ||
const allowedModules = require('./allowedModules.js'); | ||
|
||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"commonjs": true | ||
env: { | ||
browser: true, | ||
commonjs: true | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"moduleDirectory": ["node_modules", "./"] | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
moduleDirectory: ['node_modules', './'] | ||
} | ||
} | ||
}, | ||
"extends": "standard", | ||
"plugins": [ | ||
"prebid", | ||
"import" | ||
extends: 'standard', | ||
plugins: [ | ||
'prebid', | ||
'import' | ||
], | ||
"globals": { | ||
"$$PREBID_GLOBAL$$": false | ||
globals: { | ||
'$$PREBID_GLOBAL$$': false, | ||
'BROWSERSTACK_USERNAME': false, | ||
'BROWSERSTACK_KEY': false | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
// use babel as parser for fancy syntax | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2018, | ||
}, | ||
"rules": { | ||
"comma-dangle": "off", | ||
"semi": "off", | ||
"space-before-function-paren": "off", | ||
"import/extensions": ["error", "ignorePackages"], | ||
|
||
rules: { | ||
'comma-dangle': 'off', | ||
semi: 'off', | ||
'space-before-function-paren': 'off', | ||
'import/extensions': ['error', 'ignorePackages'], | ||
|
||
// Exceptions below this line are temporary, so that eslint can be added into the CI process. | ||
// Violations of these styles should be fixed, and the exceptions removed over time. | ||
// | ||
// See Issue #1111. | ||
"eqeqeq": "off", | ||
"no-return-assign": "off", | ||
"no-throw-literal": "off", | ||
"no-undef": 2, | ||
"no-useless-escape": "off", | ||
"no-console": "error" | ||
eqeqeq: 'off', | ||
'no-return-assign': 'off', | ||
'no-throw-literal': 'off', | ||
'no-undef': 2, | ||
'no-useless-escape': 'off', | ||
'no-console': 'error' | ||
}, | ||
"overrides": Object.keys(allowedModules).map((key) => ({ | ||
"files": key + "/**/*.js", | ||
"rules": { | ||
"prebid/validate-imports": ["error", allowedModules[key]] | ||
overrides: Object.keys(allowedModules).map((key) => ({ | ||
files: key + '/**/*.js', | ||
rules: { | ||
'prebid/validate-imports': ['error', allowedModules[key]] | ||
} | ||
})) | ||
})).concat([{ | ||
// code in other packages (such as plugins/eslint) is not "seen" by babel and its parser will complain. | ||
files: 'plugins/*/**/*.js', | ||
parser: 'esprima' | ||
}]) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Issue tracking | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
track_issue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 | ||
with: | ||
app_id: ${{ secrets.ISSUE_APP_ID }} | ||
private_key: ${{ secrets.ISSUE_APP_PEM }} | ||
|
||
- name: Get project data | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
ORGANIZATION: prebid | ||
DATE_FIELD: Created on | ||
PROJECT_NUMBER: 2 | ||
run: | | ||
gh api graphql -f query=' | ||
query($org: String!, $number: Int!) { | ||
organization(login: $org){ | ||
projectNext(number: $number) { | ||
id | ||
fields(first:100) { | ||
nodes { | ||
id | ||
name | ||
settings | ||
} | ||
} | ||
} | ||
} | ||
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json | ||
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV | ||
echo 'DATE_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "'"$DATE_FIELD"'") | .id' project_data.json) >> $GITHUB_ENV | ||
- name: Add issue to project | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
ISSUE_ID: ${{ github.event.issue.node_id }} | ||
run: | | ||
gh api graphql -f query=' | ||
mutation($project:ID!, $issue:ID!) { | ||
addProjectNextItem(input: {projectId: $project, contentId: $issue}) { | ||
projectNextItem { | ||
id, | ||
content { | ||
... on Issue { | ||
createdAt | ||
} | ||
... on PullRequest { | ||
createdAt | ||
} | ||
} | ||
} | ||
} | ||
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID > issue_data.json | ||
echo 'ITEM_ID='$(jq '.data.addProjectNextItem.projectNextItem.id' issue_data.json) >> $GITHUB_ENV | ||
echo 'ITEM_CREATION_DATE='$(jq '.data.addProjectNextItem.projectNextItem.content.createdAt' issue_data.json) >> $GITHUB_ENV | ||
- name: Set fields | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
run: | | ||
gh api graphql -f query=' | ||
mutation ( | ||
$project: ID! | ||
$item: ID! | ||
$date_field: ID! | ||
$date_value: String! | ||
) { | ||
set_creation_date: updateProjectNextItemField(input: { | ||
projectId: $project | ||
itemId: $item | ||
fieldId: $date_field | ||
value: $date_value | ||
}) { | ||
projectNextItem { | ||
id | ||
} | ||
} | ||
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f date_field=$DATE_FIELD_ID -f date_value=$ITEM_CREATION_DATE --silent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.