forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from prebid/master
fetch up
- Loading branch information
Showing
1,156 changed files
with
162,244 additions
and
77,895 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
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
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
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.