-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix push manifest generation bugs affecting bower_components and ES m…
…odules (#512) * Add failing test for push manifest generation with bower_components. * Use paths relative to project root instead of package root in push manifests. * Skip bundler's fake sub-bundle URLs when generating push manifests. * Add failing test for push manifest generation with ES modules. * Use an FsUrlResolver with the project root for push manifest generation. Previously it looks like we were implicitly relying on the current working directory? This also means we don't have to manually fix up relative URLs in push manifest generation, so reverted that. * Update CHANGELOGs for push manifest fixes.
- Loading branch information
Showing
12 changed files
with
80 additions
and
14 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
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
16 changes: 16 additions & 0 deletions
16
packages/cli/test/fixtures/build-modules/expected/unbundled-es/push-manifest.json
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,16 @@ | ||
{ | ||
"index.html": { | ||
"mod1.js": { | ||
"type": "script", | ||
"weight": 1 | ||
}, | ||
"mod2.js": { | ||
"type": "script", | ||
"weight": 1 | ||
}, | ||
"node_modules/dep1/dep1.js": { | ||
"type": "script", | ||
"weight": 1 | ||
} | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
...s/cli/test/fixtures/polymer-2-project/expected/push/bower_components/polymer/polymer.html
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 @@ | ||
<!-- polymer code goes here --> |
1 change: 1 addition & 0 deletions
1
packages/cli/test/fixtures/polymer-2-project/expected/push/index.html
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 @@ | ||
<link rel="import" href="/src/my-app.html"> |
16 changes: 16 additions & 0 deletions
16
packages/cli/test/fixtures/polymer-2-project/expected/push/push-manifest.json
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,16 @@ | ||
{ | ||
"index.html": { | ||
"src/my-app.html": { | ||
"type": "document", | ||
"weight": 1 | ||
}, | ||
"bower_components/polymer/polymer.html": { | ||
"type": "document", | ||
"weight": 1 | ||
}, | ||
"src/elements/my-element.html": { | ||
"type": "document", | ||
"weight": 1 | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/cli/test/fixtures/polymer-2-project/expected/push/src/elements/my-element.html
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,7 @@ | ||
<dom-module id="my-element"> | ||
<template> | ||
<style> | ||
:host { background-image: url('bg.png'); } | ||
</style> | ||
</template> | ||
</dom-module> |
3 changes: 3 additions & 0 deletions
3
packages/cli/test/fixtures/polymer-2-project/expected/push/src/my-app.html
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,3 @@ | ||
<link rel="import" href="../bower_components/polymer/polymer.html"> | ||
<link rel="import" href="elements/my-element.html"> | ||
<my-element></my-element> |