-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Modernizing build dependencies #1355
Conversation
…n up the browserstack logs.
…ody needs anymore.
…wserstack look good again.
var webpack = require('webpack-stream'); | ||
var path = require('path'); | ||
var webpack = require('webpack'); | ||
var webpackStream = require('webpack-stream'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to require both webpack
and webpackStream
? Docs seem to indicate stream is a drop-and-replace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's under the Usage header.
If you would like to use a different version of webpack than the one this plugin uses, pass in an optional 2nd argument
They're using webpack 1.12.9.
@snapwich appreciate your review on these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. nice work!
…built * 'master' of https://github.com/prebid/Prebid.js: (95 commits) Specify --browsers when using gulp test --watch (prebid#1420) Added aliases for aol adapter. (prebid#1371) Added MobFox Adapter (prebid#1312) Fixed style error. (prebid#1419) Add native support for Criteo adapter (prebid#999) Update admediaBidAdapter.js (prebid#1395) Increment pre version (prebid#1413) Prebid 0.26.1 Release (prebid#1412) fix prebid#1410 - issue with ie and xhr.timeout (prebid#1411) Lint modules directory (prebid#1404) Set outstream mediaType based on renderer in response (prebid#1391) Fixing the BidAdjustmentEvent fire time (prebid#1399) Fix banner showing up in prebid-core.js (prebid#1388) Mention NodeJS 4.0 dependency in the README (prebid#1386) Increment pre version (prebid#1385) Prebid 0.26.0 Release (prebid#1384) PulsePoint Lite adapter - adding createNew method for aliasing. (prebid#1383) Modernizing build dependencies (prebid#1355) StickyAdsTV bidder adapter update (prebid#1311) Added CPM value as parameter for Vertoz Adapter (prebid#1306) ...
* Upgraded webpack, as well as some minor other build dependencies. * Updated the yarn.lock file * Migrated the module loaders to the 3.0 syntax. * Ran yarn install. Moved the loader order around a bit. * Made the unit tests and code coverage reports work with the new versions. * Removed some unused lines, and fixed the coveralls task file location. * Fixed the gulp coverage task so that it points to the right folder. * Removed the JUnit reporter, which nobody seems to have reason to keep anymore. * Removed the CI_MODE flag, and removed progress. This should help clean up the browserstack logs. * Fixed gulp serve. * Updated some more dependencies. * Upgraded node to use version 7. * Split gulp test and gulp test-coverage, so we can run tests without instrumnetation. * Updated the yarn.lock * Removed ie9 from the test browsers, since we dont support it anymore. * Updated more dev dependency versions. * Made travis use HeadlessChrome. Removed some extraneous code that nobody needs anymore. * Better code reuse for launching browser tests. * updated the yarn.lock file. * Fixed a bug in the karma server callbacks, and made the logs from browserstack look good again. * Added source maps, so that the line numbers on failed unit tests are right. * Fixed a bug in the reporters code which causes Travis to fail. * Updated README and some code style fixes. * Fixed --watch, as well as a concurrency bug where several files mutate the webpack.conf file. * Removed another unused dependency. * Fixed the imports. * Replaced all the src/file imports with ./file imports, to make things consistent
* Upgraded webpack, as well as some minor other build dependencies. * Updated the yarn.lock file * Migrated the module loaders to the 3.0 syntax. * Ran yarn install. Moved the loader order around a bit. * Made the unit tests and code coverage reports work with the new versions. * Removed some unused lines, and fixed the coveralls task file location. * Fixed the gulp coverage task so that it points to the right folder. * Removed the JUnit reporter, which nobody seems to have reason to keep anymore. * Removed the CI_MODE flag, and removed progress. This should help clean up the browserstack logs. * Fixed gulp serve. * Updated some more dependencies. * Upgraded node to use version 7. * Split gulp test and gulp test-coverage, so we can run tests without instrumnetation. * Updated the yarn.lock * Removed ie9 from the test browsers, since we dont support it anymore. * Updated more dev dependency versions. * Made travis use HeadlessChrome. Removed some extraneous code that nobody needs anymore. * Better code reuse for launching browser tests. * updated the yarn.lock file. * Fixed a bug in the karma server callbacks, and made the logs from browserstack look good again. * Added source maps, so that the line numbers on failed unit tests are right. * Fixed a bug in the reporters code which causes Travis to fail. * Updated README and some code style fixes. * Fixed --watch, as well as a concurrency bug where several files mutate the webpack.conf file. * Removed another unused dependency. * Fixed the imports. * Replaced all the src/file imports with ./file imports, to make things consistent
Type of change
Build upgrades & maintenance
Description of change
Lots of build maintenance relating to webpack, istanbul, and karma.
Fixed bugs
gulp test —browserstack
is much more conciseMaintenance
gulp test-coverage
command.gulp test
no longer generates coverage.gulp run-tests
usesgulp test-coverage
, whilegulp serve
usesgulp test
.Performance Comparison
These were very un-scientific... I only ran each test once, and didn't pay attention to my machine load. I can run more careful trials if anyone really cares though.
Old build (from Master)
prebid.js bundle size — 269KB
npm install
— 31syarn install
— 20.45sgulp build
— 13sgulp lint
— 6sgulp run-tests
— 1m1sNew build (from this branch)
prebid.js bundle size — 264KB
npm install
— 25syarn install
— 18.59sgulp build
— 15sgulp lint
— 5sgulp test
— 37sgulp run-tests
— 1m17s (no longer used bygulp serve
)gulp test --browserstack
-- About 10 minutes