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

V3 publishing #869

Merged
merged 19 commits into from
Oct 11, 2017
Merged

V3 publishing #869

merged 19 commits into from
Oct 11, 2017

Conversation

gauntface
Copy link

R: @jeffposnick @addyosmani @philipwalton

  • Adds lerna publish (currently doesn't push to git or npm but does push to CDN)
  • Adds a build step for ESM code
  • Adds version number to all build files of formation workbox::
  • Fixes tests that broke during this PR
  • Removes some mocks that are no longer needed

package.json Outdated
@@ -102,5 +103,7 @@
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
},
"dependencies": {}
"dependencies": {
"gulp-debug": "^3.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it snuck through from testing.

module.exports = (pkgName) => {
const pkgJson = require(`../../packages/${pkgName}/package.json`);
const details = ['workbox', pkgName, pkgJson.version];
return `function v(){v._version='${details.join(':')}'};v();`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick sanity check: are there any concerns about the symbol v ending up clashing with anything else in the same scope? Does v get added in before or after the uglification takes place/

@gauntface
Copy link
Author

@jeffposnick that should be the publishing stuff c'est finis.

@workbox-pr-bot
Copy link
Collaborator

PR-Bot Size Plugin

Changed File Sizes

File Before After Change GZipped
packages/workbox-core/build/browser/workbox-core.prod.js 3.95 KB 4.00 KB +1% 1.79 KB
packages/workbox-precaching/build/browser/workbox-precaching.prod.js 2.97 KB 3.04 KB +2% 1.34 KB
packages/workbox-routing/build/browser/workbox-routing.prod.js 1.41 KB 1.48 KB +4% 748 B
packages/workbox-runtime-caching/build/browser/workbox-runtime-caching.prod.js 536 B 606 B +13% 349 B ☠️
packages/workbox-sw/build/browser/workbox-sw.prod.js 1.22 KB 1.29 KB +5% 657 B

New Files

No new files have been added.

All File Sizes

View Table
File Before After Change GZipped
packages/workbox-core/build/browser/workbox-core.prod.js 3.95 KB 4.00 KB +1% 1.79 KB
packages/workbox-precaching/build/browser/workbox-precaching.prod.js 2.97 KB 3.04 KB +2% 1.34 KB
packages/workbox-routing/build/browser/workbox-routing.prod.js 1.41 KB 1.48 KB +4% 748 B
packages/workbox-runtime-caching/build/browser/workbox-runtime-caching.prod.js 536 B 606 B +13% 349 B ☠️
packages/workbox-sw/build/browser/workbox-sw.prod.js 1.22 KB 1.29 KB +5% 657 B

Workbox Aggregate Size Plugin

Total Size: 8.32KB
Percentage of Size Used: 85%

Gzipped: 3.79KB

@jeffposnick
Copy link
Contributor

It all seems reasonable. Thanks for fighting though this.

@gauntface gauntface merged commit 11cb909 into v3 Oct 11, 2017
@gauntface gauntface deleted the v3-publishing branch October 11, 2017 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants