Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging latest master code #2

Merged
merged 225 commits into from
Oct 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
871878c
Improvement include bid response from prebid server w/ cookie sync (#…
Jun 28, 2017
a9c1d06
Clean up gulp task dependencies, fixes #1333 and #1334 (#1336)
snapwich Jun 29, 2017
d0b73f4
Remove unused zip task (#1339)
matthewlane Jun 30, 2017
27fe1c2
Improvement/rad 1689 s2s drop empty bid (#1330)
Jun 30, 2017
0f8de0c
fixes #1331 module bundling on windows (#1332)
snapwich Jul 5, 2017
8bf983c
Update README.md
Jul 6, 2017
5897f0b
Upgrade eslint (#1346)
dbemiller Jul 6, 2017
852a933
Yieldbot refresh - nextPageview with specific refresh slots (#1281)
elljoh Jul 10, 2017
0f066b0
Audience Network: Add support for video format (#1292)
lovell Jul 10, 2017
579cf9a
Spotx video Adapter (#1326)
npeceniak Jul 10, 2017
b54004d
Add s2s and user sync features to roxot analytics adapter (#1337)
sergey-roxot Jul 10, 2017
56bdd27
Implementing prebid-cache to support Video ads (#1277)
dbemiller Jul 11, 2017
0e72b54
postbid setup files (#1189)
jaiminpanchal27 Jul 11, 2017
bd30264
Add ucfunnel adapter (#1263)
RyanChouTw Jul 11, 2017
356b049
Fixing unit tests - added stubs for external server calls (#1362)
jaiminpanchal27 Jul 11, 2017
3b8b29d
Fix spacing for lint rules (#1366)
matthewlane Jul 11, 2017
9884176
Updates for cookie sync for pbs (#1361)
Jul 12, 2017
aa93b82
Replaced pbjs variable for PREBID_GLOBAL macro (#1343)
sebaperez Jul 12, 2017
776682f
Fix import and module reference (#1368)
matthewlane Jul 12, 2017
f90e58b
Map native icon parameter and validate returned asset values (#1352)
matthewlane Jul 12, 2017
5cf6ad8
Feature/update cookieset style (#1375)
Jul 12, 2017
4b9136c
Add Kargo adapter (#1316)
samuelhorwitz Jul 12, 2017
910f28f
Xhb Adapter: adding alias support (#1290)
daniel-hoffmann Jul 13, 2017
9de31b3
Fixing some recent bugs in addBidResponse (#1372)
dbemiller Jul 13, 2017
a440040
Add network zone matching to criteo adapter (#1342)
Swiiip Jul 13, 2017
7d53893
video support for adkernel adapter (#1270)
ckbo3hrk Jul 13, 2017
81f3877
add dbemiller to core team.
Jul 13, 2017
1f0c570
add dt.pref for DigiTrust in rubiconBidAdapter (#1376)
snapwich Jul 13, 2017
fe00cc9
PulsePoint Lite adapter changes (#1338)
anand-venkatraman Jul 13, 2017
17a0b79
Centro adapter fix: do not call logError if 'No Bid' was received (#1…
Niksok Jul 14, 2017
48be730
register google analytics after methods attached (#1382)
snapwich Jul 14, 2017
55ae941
Add support for publisher-defined outstream renderers (#1357)
matthewlane Jul 17, 2017
2c8ec16
Added CPM value as parameter for Vertoz Adapter (#1306)
Prebid-Vertoz Jul 17, 2017
e748bef
StickyAdsTV bidder adapter update (#1311)
guillaume-sticky Jul 17, 2017
4b04890
Modernizing build dependencies (#1355)
dbemiller Jul 17, 2017
d468f33
PulsePoint Lite adapter - adding createNew method for aliasing. (#1383)
anand-venkatraman Jul 17, 2017
b566fca
Prebid 0.26.0 Release (#1384)
matthewlane Jul 17, 2017
f0ba1fc
Increment pre version (#1385)
matthewlane Jul 17, 2017
58a8c35
Mention NodeJS 4.0 dependency in the README (#1386)
BartVB Jul 18, 2017
1eea8f2
Fix banner showing up in prebid-core.js (#1388)
snapwich Jul 18, 2017
a988752
Fixing the BidAdjustmentEvent fire time (#1399)
dbemiller Jul 21, 2017
74b0dc3
Set outstream mediaType based on renderer in response (#1391)
matthewlane Jul 21, 2017
19705b3
Lint modules directory (#1404)
matthewlane Jul 24, 2017
f8a9778
fix #1410 - issue with ie and xhr.timeout (#1411)
Jul 24, 2017
08fdb60
Prebid 0.26.1 Release (#1412)
matthewlane Jul 24, 2017
180854a
Increment pre version (#1413)
matthewlane Jul 24, 2017
5b385d9
Update admediaBidAdapter.js (#1395)
Elardzhi Jul 26, 2017
fc3c08c
Add native support for Criteo adapter (#999)
Swiiip Jul 26, 2017
0d1bd55
Fixed style error. (#1419)
dbemiller Jul 26, 2017
03d86a0
Added MobFox Adapter (#1312)
francoroy Jul 26, 2017
1d82700
Added aliases for aol adapter. (#1371)
vzhukovsky Jul 26, 2017
6069d9b
Specify --browsers when using gulp test --watch (#1420)
snapwich Jul 26, 2017
940295f
Removed all the unused variables. (#1449)
dbemiller Jul 31, 2017
424df94
Index Exchange adapter explicit pass on bid with unsupported sizes. (…
arvending Jul 31, 2017
4fca4e8
Removed the valid-typeof linter exclusion. (#1448)
dbemiller Jul 31, 2017
b2391f7
minWidth should be inclusive (#1429)
jaiminpanchal27 Jul 31, 2017
00427f0
Fix build (#1452)
Jul 31, 2017
09495b2
remove createNew requirement and use .constructor instead (#1422)
snapwich Jul 31, 2017
7d717b5
Removed the no-multiple-empty-lines exclusion. (#1443)
dbemiller Jul 31, 2017
c237222
Bugfix: getBidRequest was missing utils ref (#1433)
daniel-hoffmann Aug 1, 2017
2166ac4
Removed the one-var ESLint exclusion (#1447)
dbemiller Aug 1, 2017
86d31b9
Removed the no-useless-call ESLint exclusion (#1445)
dbemiller Aug 1, 2017
f11db29
Removed the standard/object-curly-even-spacing exclusion. (#1446)
dbemiller Aug 1, 2017
68511f9
Removed the no-mixed-operators exclusion (#1436)
dbemiller Aug 1, 2017
be3fe46
Remove new-cap ESLint exclusion (#1442)
dbemiller Aug 1, 2017
326c77b
Add deprecate warning (#1418)
jaiminpanchal27 Aug 1, 2017
61e868f
Add usersyncing to TripleLift adapter (#1351)
peter-triplelift Aug 1, 2017
614e7b1
Add sizes (#1451)
qjoqueiroz Aug 2, 2017
2fdc2b9
Criteo: pass integration mode to the publisher tag (#1425)
Spark-NF Aug 2, 2017
a261fb3
New imonomy Bid Adapter (#1345)
ofir1122 Aug 2, 2017
c41bd0a
Carambola header bidding adaptor - changing the server url. (#1461)
LiranMotola Aug 2, 2017
201a684
Updated Widespace - added demographic data support with related unit …
vahagn-grigoryan Aug 2, 2017
0a5adaa
Vertoz End point changed (#1405)
Prebid-Vertoz Aug 2, 2017
4a49e02
Fixed lint errors (#1464)
jaiminpanchal27 Aug 2, 2017
f1dedfb
Fixed import/first (#1435)
dbemiller Aug 2, 2017
9475431
Updates to PubWise Analytics - Enable config, UTM & Debug/Logging Upd…
GLStephen Aug 2, 2017
9695128
Update Sovrn adapter. Add test coverage. Enable deal IDs. (#1423)
Aug 2, 2017
b05a22a
Removed the no-redeclare ESLint exclusion (#1444)
dbemiller Aug 3, 2017
ceed446
preserve constructor for aliasing adapters by returning `this` (#1459)
snapwich Aug 3, 2017
1a1028c
Added C1X Adapter (#1369)
CathyHuangtw Aug 4, 2017
4a04882
Update ThoughtLeadr adapter (#1370)
ilya-pirogov Aug 4, 2017
d5a200c
Add setConfig method (#1325)
matthewlane Aug 4, 2017
e0345c4
Fix bug in Quantcast adaptor from making duplicate requests when ther…
mtannn Aug 4, 2017
127c320
Added width and height to creative iframe (#1450)
jaiminpanchal27 Aug 4, 2017
2e28621
Wrap setConfig for bidderTimeout in pbjs.que block (#1474)
Aug 8, 2017
0dad8c3
Reject sizeless banner bids (#1389)
matthewlane Aug 10, 2017
ee03c84
[Criteo Adapter] Use utils lib to parse request sizes (#1469)
Swiiip Aug 10, 2017
4e3dc09
Carambola header bidding adaptor (fix)- changing the server url. (#1468)
LiranMotola Aug 10, 2017
1d9afea
Rubicon adapter updates - digitrust, currency, creativeId (#1428)
harpere Aug 10, 2017
3351492
Randomize the default order we use to call bidders by default. (#1458)
dbemiller Aug 10, 2017
f4acee9
Removed the prebid-cache default call. (#1476)
dbemiller Aug 10, 2017
f74bca4
Add Emily User Sync to Rubicon Adapter (#1320)
grevory Aug 10, 2017
6956a56
Atomx adapter: add multiple size support (#1470)
erikdubbelboer Aug 11, 2017
add4a01
Avoid using global private variables in Sovrn adapter (#1475)
Aug 11, 2017
9581c00
Justpremium Adapter (#1227)
mkalafior Aug 14, 2017
b72656c
Marsmedia adapter submission (#1307)
chensMMG Aug 14, 2017
4dd8896
adding Essens adapter (#1353)
navneetpandey Aug 14, 2017
311721a
Platformio Adapter (#1465)
varashellov Aug 14, 2017
d3cd291
drop specific code for index adapter (#1487)
Aug 15, 2017
02b40a0
fix emily tests (#1482)
harpere Aug 15, 2017
302560f
Add Pollux Adapter (#1431)
polluxnetwork Aug 15, 2017
1bdb83b
Huddled mass iframe fix 1271 (#1489)
Aug 15, 2017
d13d3eb
Removed the brace-style ESLint exclusion (#1434)
dbemiller Aug 15, 2017
1ea7433
Fix lint error (#1490)
Aug 15, 2017
c05364f
Respect prebid global (#1462)
dbemiller Aug 16, 2017
74e8dc8
Change pbjs to PREBID_GLOBAL (#1495)
matthewlane Aug 17, 2017
1c0c6af
Add video support to Index Exchange Bid Adapter (#1456)
arvending Aug 17, 2017
0b8a6e4
Update our main entrypoint JS file (#1492)
mxcoder Aug 17, 2017
4010783
fixed #1246 and add unit test (#1427)
Aug 17, 2017
fd960e4
Added priceGranularity and customPriceBucket to config (#1496)
jaiminpanchal27 Aug 17, 2017
e723f24
Ad unit selection feature for prebid analytics (#1478)
sergey-roxot Aug 18, 2017
46b2717
Ignore responses to previous auctions (#1239)
outoftime Aug 18, 2017
000e453
Revert "Ignore responses to previous auctions (#1239)" (#1499)
Aug 18, 2017
95e687c
fix undefined bidder error (#1501)
Aug 21, 2017
616efbf
Audience Network: ensure pageurl is always URI encoded (#1502)
lovell Aug 21, 2017
c422a3f
Adding VAST Payload support for video bids (#1407)
dbemiller Aug 21, 2017
5317697
Update platformioBidAdapter (#1493)
varashellov Aug 21, 2017
41a7fc3
Add session id feature for roxot analytics adapter (#1498)
sergey-roxot Aug 21, 2017
afc36d1
OpenX Adapter Update: (#1438)
lntho Aug 22, 2017
cc9a3e2
Make bid.vastUrl use the cache URL if the bid didnt already have one.…
dbemiller Aug 22, 2017
6974777
Feature/s2s client side fallback (#1485)
Aug 22, 2017
daf0a24
modify 'featureforward' adapter to be an indepandant adapter (#1288)
FeatureForwardDev Aug 22, 2017
6572cc7
Match port when testing legacy browser (#1511)
matthewlane Aug 22, 2017
7a96cd3
Register bid adapter (#1514)
matthewlane Aug 22, 2017
49d39bb
Add adapter parameter types (#1504)
matthewlane Aug 22, 2017
771b651
Support 'cta' native asset (#1505)
matthewlane Aug 22, 2017
89bb4dd
Move unit test file to appropriate location (#1516)
jaiminpanchal27 Aug 22, 2017
7be4e47
Prebid 0.27.0 Release
jaiminpanchal27 Aug 22, 2017
cbec23a
Increment pre version
jaiminpanchal27 Aug 22, 2017
0d470b7
removing for...of loops because IE cannot handle them properly (#1523)
samuelhorwitz Aug 24, 2017
ff6b2da
Adding new kv to xhb Adapter (#1513)
daniel-hoffmann Aug 24, 2017
7f01161
Override default asset params when set on ad unit (#1524)
matthewlane Aug 24, 2017
60793b9
Revert "drop specific code for index adapter (#1487)" (#1529)
Aug 24, 2017
c8be524
Updated karma-mocha, and simplified the test framework for runs which…
dbemiller Aug 24, 2017
1fec829
feat(strAdapt): check if tagJS is already present (#1500)
chriscpan Aug 24, 2017
fcae26b
fix #1509 - utils.getTopWindowLocation() returns exception object (#1…
Aug 24, 2017
ff24d85
use utils.getTopWindowUrl() to get top window URL for indexexchange a…
taihwasong Aug 24, 2017
f3e7474
Prebid 0.27.1 Release
matthewlane Aug 24, 2017
0f7efee
Increment pre version
matthewlane Aug 24, 2017
4c8ba54
Sharethrough Adapter - set bidderCode on invalid bid (#1295)
jchau87 Aug 28, 2017
ca189c7
Fix typo (#1534)
olya-fb Aug 28, 2017
82e96e2
Minimal fixes to JSDoc so `gulp docs` succeeds (#1537)
rmloveland Aug 28, 2017
1d3d26b
currency module (#1374)
snapwich Aug 29, 2017
c63673c
userSync is off by default (#1543)
bretg Aug 29, 2017
c66fc51
Fix #1533 spring server typo (#1542)
Aug 30, 2017
65b34c8
Add improvedigitalBidAdapter (#1381)
agregorio-improve Aug 30, 2017
66825d1
Update serverbid adapter to use smartsync (#1324)
micha Aug 31, 2017
f8d7dff
Yieldbot adunit bidder params slot name usage fix (#1394)
elljoh Aug 31, 2017
a5d8130
Fix `documentation lint` issues (#1544)
rmloveland Aug 31, 2017
27f7c2d
Custom granularity fix (#1546)
jaiminpanchal27 Aug 31, 2017
df168ef
Fixed imports and made adform support aliasing (#1518)
ptomasroos Aug 31, 2017
1fd757a
Add AerServ Adapter (#1538)
cormorinth Aug 31, 2017
65e0fed
Updated the istanbul-instrumenter-loader (#1550)
dbemiller Aug 31, 2017
b425bad
Single-size sizes array now can be taken, too (#1535)
olya-fb Aug 31, 2017
7390874
Rename vastPayload to vastXml (#1556)
matthewlane Sep 5, 2017
dc4736a
Upgrade sinon to 3.x (#1491)
dbemiller Sep 5, 2017
34fbe9e
Adxcg adapter (#1554)
adxcgcom Sep 5, 2017
56aee8b
remove unnecessary spread operator (#1561)
Sep 5, 2017
b28ede4
AppnexusAst adapter update: Added source and version to request paylo…
jaiminpanchal27 Sep 5, 2017
92f680b
add () for correct order of operations in scaling increments for curr…
snapwich Sep 5, 2017
15612ff
Revert "Upgrade sinon to 3.x (#1491)" (#1563)
jaiminpanchal27 Sep 5, 2017
82a027b
Prebid 0.28.0 Release
jaiminpanchal27 Sep 5, 2017
a617398
Increment pre version
jaiminpanchal27 Sep 5, 2017
f57f337
Switch `gulp docs` to build its output using documentation.js (#1545)
rmloveland Sep 6, 2017
598817f
Yieldmo bid adapter (#1415)
xlozinguez Sep 8, 2017
27944ac
Tremor Video Bid Adapter (#1552)
tremorvideo Sep 11, 2017
d3e06a4
Add url.parse option to not decode the whole URL (#1480)
erikdubbelboer Sep 11, 2017
0d02f82
Allow bundling from node.js or with new gulp task bundle-to-stdout (…
snapwich Sep 11, 2017
0e167ad
Add a version to the Criteo adapter (#1573)
SebastienGaspar Sep 13, 2017
a4d3ce7
BaseAdapter for the Prebid 0.x -> 1.x transition (#1494)
dbemiller Sep 13, 2017
f3c67b9
Custom granularity precision should honor 0 if it is passed in closes…
Sep 15, 2017
d43c6cd
allow adapters to set default adserverTargeting for specific bid (#1568)
snapwich Sep 15, 2017
8e0ce69
Invalidate bid if matching bid request not found (#1575)
kitwestneat Sep 15, 2017
fcf8d18
Add support for video stream context (#1483)
matthewlane Sep 15, 2017
8fca7f6
Allow SET_TARGETING to be used in AnalyticsAdapter (#1577)
ptomasroos Sep 15, 2017
d757220
Fix renderer test for new validation rule (#1592)
matthewlane Sep 15, 2017
d05af09
Adding Orbitsoft adapter (#1378)
Indra-sensei Sep 15, 2017
9da2dba
Rubicon project improvement/user sync (#1549)
Sep 18, 2017
0298b7f
fix travis build (#1595)
Sep 18, 2017
1733da7
Add user sync to process for approving adapter PRs (#1457)
grevory Sep 18, 2017
5b99aaa
Serverbid alias (#1560)
jgrimes Sep 18, 2017
952e82d
Add Kumma adapter (#1512)
yehonatanshac Sep 19, 2017
9d2342f
Pass bidRequest to createBid (#1600)
jaiminpanchal27 Sep 19, 2017
96754ed
Add nurl to markup (#1601)
jaiminpanchal27 Sep 19, 2017
ea97915
Trustx adapter (#1488)
PWyrembak Sep 19, 2017
5fc4022
Rubicon Bidder Factory (#1587)
dbemiller Sep 19, 2017
6643be7
Fixed the broken tests. (#1602)
dbemiller Sep 19, 2017
fbf0840
closes #1298 (#1583)
Sep 19, 2017
2a6cdf8
fix amp example pages (#1597)
jaiminpanchal27 Sep 19, 2017
99aa370
Fix for not syncing bidders. (#1598)
Sep 19, 2017
9e1bf79
Prebid 0.29.0 Release
matthewlane Sep 19, 2017
0c8a23a
Increment pre version
matthewlane Sep 19, 2017
336f06f
Adomik Analytics Adapter (#1536)
Yann-Pravo Sep 21, 2017
74e5f9f
Improve JSDoc for `setConfig` (#1579)
rmloveland Sep 22, 2017
63a8469
Update ISSUE_TEMPLATE.md (#1613)
Sep 22, 2017
4349563
Bugfix/user sync setconfig (#1615)
harpere Sep 22, 2017
fddb66c
Global object name can be sent with request params. (#1619)
Prebid-Vertoz Sep 25, 2017
80208ae
Remove unnecessary parameters (#1618)
RyanChouTw Sep 27, 2017
1d2a7c6
some fixes for intermittent tests failing (#1626)
snapwich Sep 27, 2017
16d5dd4
OpenX adapter: 1) changing custom parameters to be on a per-slot basi…
lntho Sep 27, 2017
6cf71d0
Safely reference native keyword to fix compression (#1621)
matthewlane Sep 27, 2017
68454d2
Add transaction ids to adyoulike adapter (#1611)
jbAdyoulike Sep 28, 2017
6a60f21
Added onefiftytwo alias for serverbid adapter (#1610)
jgrimes Sep 29, 2017
f9fa759
Use mediaTypes on video examples (#1638)
matthewlane Sep 29, 2017
0038e8e
Fix to add proper --tag when doing gulp build or bundle (#1635)
snapwich Sep 29, 2017
b2da81d
http -> https (#1651)
Yann-Pravo Oct 3, 2017
2fd1fd7
Add publisher sub-id support to the Criteo adapter (#1629)
Spark-NF Oct 3, 2017
e508a64
Adxcg analytics adapter (#1599)
adxcgcom Oct 3, 2017
3ef99d0
Add placementId request param to Yieldmo bid adapter (#1632)
cdoher01 Oct 3, 2017
6b6a1fb
fixed PBS cookie syncs (#1637)
harpere Oct 3, 2017
c0a608d
Add ignore-loader to handle .md files (#1646)
thewizarodofoz Oct 3, 2017
684ddf3
Add JSDoc for `pbjs.getAllWinningBids` (#1566)
rmloveland Oct 3, 2017
fed1688
rubicon converted to bidderFactory (#1624)
snapwich Oct 3, 2017
d566700
Revert changes for switch between client side and server side. (#1653)
Oct 3, 2017
aef474d
Support aspect ratio specification for native images (#1634)
matthewlane Oct 3, 2017
219f5f9
Appnexus ast unittest updates (#1654)
jaiminpanchal27 Oct 3, 2017
36f4ba7
PulsePoint Lite adpater changes (#1630)
anand-venkatraman Oct 3, 2017
abb7d45
Add native param support to mediaTypes (#1625)
matthewlane Oct 3, 2017
0ab545e
Prebid 0.30.0 Release
jaiminpanchal27 Oct 3, 2017
0bc0b29
Increment pre version
jaiminpanchal27 Oct 3, 2017
42282f5
prebidAdapter secure support (#1655)
bretg Oct 6, 2017
6186a2c
Aliasbidder fix (#1652)
jaiminpanchal27 Oct 6, 2017
a9dda35
fixes bug for IE when invalid value passed to parse (#1657)
jaiminpanchal27 Oct 6, 2017
a2db7c4
Remove undefined variable usage (#1662)
matthewlane Oct 6, 2017
731c7e4
Prebid 0.30.1 Release
jaiminpanchal27 Oct 6, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .eslintrc → .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
module.exports = {
"env": {
"browser": true,
"commonjs": true
Expand All @@ -19,24 +19,14 @@
// Violations of these styles should be fixed, and the exceptions removed over time.
//
// See Issue #1111.
"brace-style": "off",
"camelcase": "off",
"eqeqeq": "off",
"import/first": "off",
"no-control-regex": "off",
"no-mixed-operators": "off",
"no-multiple-empty-lines": "off",
"no-redeclare": "off",
"no-return-assign": "off",
"no-throw-literal": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-call": "off",
"no-useless-escape": "off",
"one-var": "off",
"standard/no-callback-literal": "off",
"standard/object-curly-even-spacing": "off",
"valid-typeof": "off"
}
}
};
8 changes: 6 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@

## Steps to reproduce
<!--
If this is a bug, please provide a list of steps to reproduce the issue and
if possible a link to a test page or minimal demo of the problem via
If this is a bug, please provide a list of steps to reproduce the issue
-->

## Test page
<!--
Include a link to a test page or minimal demo of the problem via
https://jsfiddle.net, http://jsbin.com or similar.
-->

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1
7.0
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
sudo: required
dist: trusty

language: node_js

node_js:
- "5.1"
- "7.0"

# See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-the-Chrome-addon-in-the-headless-mode
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
chrome: stable

before_install:
- npm install -g gulp
- export CHROME_BIN=google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &

script:
- gulp run-tests
47 changes: 33 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ Working examples can be found in [the developer docs](http://prebid.org/dev-docs
$ cd Prebid.js
$ yarn install

Prebid also supports the `yarn` npm client. This is an alternative to using `npm` for package management, though `npm` will continue to work as before.
Prebid supports the `yarn` npm client. This is an alternative to using `npm` for package management, though `npm install` will continue to work as before.

For more info, see [the Yarn documentation](https://yarnpkg.com).

*Note:* You need to have `NodeJS` 4.x or greater installed.

<a name="Build"></a>

## Build for Development
Expand All @@ -47,8 +49,6 @@ This runs some code quality checks, starts a web server at `http://localhost:999
+ `./build/dist/prebid.js` - Minified production code
+ `./prebid.js_<version>.zip` - Distributable zip archive

*Note:* You need to have `node.js` 4.x or greater installed to be able to run the `gulp build` commands.

### Build Optimization

The standard build output contains all the available modules from within the `modules` folder.
Expand Down Expand Up @@ -102,7 +102,26 @@ Having said that, you are probably safe to check your custom bundle into your pr

## Test locally

To configure Prebid.js to run locally, edit the example file `./integrationExamples/gpt/pbjs_example_gpt.html`:
To lint the code:

```bash
gulp lint
```

To run the unit tests:

```bash
gulp test
```

To generate and view the code coverage reports:

```bash
gulp test-coverage
gulp view-coverage
```

For end-to-end testing, edit the example file `./integrationExamples/gpt/pbjs_example_gpt.html`:

1. Change `{id}` values appropriately to set up ad units and bidders
2. Set the path to Prebid.js in your example file as shown below (see `pbs.src`).
Expand Down Expand Up @@ -131,21 +150,21 @@ For deployment:
})();
```

To run the project locally, use:
Build and run the project locally with:

$ gulp serve
```bash
gulp serve
```

This runs code quality checks, generates all the necessary files and starts a web server at `http://localhost:9999` serving from the project root. Navigate to your example implementation to test, and if your `prebid.js` file is sourced from the `./build/dev` directory you will have sourcemaps available in your browser's developer tools.
This runs `lint` and `test`, then starts a web server at `http://localhost:9999` serving from the project root.
Navigate to your example implementation to test, and if your `prebid.js` file is sourced from the `./build/dev`
directory you will have sourcemaps available in your browser's developer tools.

To run the example file, go to:

+ `http://localhost:9999/integrationExamples/gpt/pbjs_example_gpt.html`

To view a test coverage report, go to:

+ `http://localhost:9999/build/coverage/karma_html/report`

A watch is also in place that will run continuous tests in the terminal as you edit code and tests.
As you make code changes, the bundles will be rebuilt and the page reloaded automatically.

<a name="Contribute"></a>

Expand All @@ -171,7 +190,7 @@ If you are contributing code, you should [configure your editor](http://eslint.o

### Unit Testing with Karma

$ gulp test --watch
$ gulp test --watch --browsers=chrome

This will run tests and keep the Karma test browser open. If your `prebid.js` file is sourced from the `./build/dev` directory you will also have sourcemaps available when using your browser's developer tools.

Expand All @@ -195,7 +214,7 @@ For instructions on writing tests for Prebid.js, see [Testing Prebid.js](http://

### Supported Browsers

Prebid.js is supported on IE9+ and modern browsers.
Prebid.js is supported on IE10+ and modern browsers.

### Governance
Review our governance model [here](https://github.com/prebid/Prebid.js/tree/master/governance.md).
4 changes: 0 additions & 4 deletions browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,5 @@
"browser": "iphone",
"device": "iPhone 6S",
"browser_version": null
},
"Chrome_travis_ci": {
"base": "Chrome",
"flags": ["--no-sandbox"]
}
}
1 change: 1 addition & 0 deletions governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ This document describes the governance model for the Prebid project. The Prebid
- @jaiminpanchal27
- @snapwich
- @harpere
- @dbemiller
12 changes: 6 additions & 6 deletions gulpHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ module.exports = {
externalModules = externalModules || [];
var internalModules;
try {
internalModules = fs.readdirSync(MODULE_PATH)
var absoluteModulePath = path.join(__dirname, MODULE_PATH);
internalModules = fs.readdirSync(absoluteModulePath)
.filter(file => !(/(^|\/)\.[^\/\.]/g).test(file))
.reduce((memo, file) => {
var moduleName = file.split(new RegExp('[.' + path.sep + ']'))[0];
var filePath = path.join(MODULE_PATH, file);
var modulePath = path.join(__dirname, filePath)
if (fs.lstatSync(filePath).isDirectory()) {
modulePath = path.join(__dirname, filePath, "index.js")
var moduleName = file.split(new RegExp('[.\\' + path.sep + ']'))[0];
var modulePath = path.join(absoluteModulePath, file);
if (fs.lstatSync(modulePath).isDirectory()) {
modulePath = path.join(modulePath, "index.js")
}
memo[modulePath] = moduleName;
return memo;
Expand Down
Loading