Skip to content

Commit

Permalink
rebased from master but broken???
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Sep 23, 2021
1 parent e0d0e64 commit 8969fa0
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 106 deletions.
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
},
"devDependencies": {
"@babel/runtime": "^7.10.4",
"@lion/button": "~0.12.0",
"@lion/calendar": "~0.15.0",
"@lion/button": "^0.14.3",
"@lion/calendar": "^0.16.5",
"@mapbox/rehype-prism": "^0.5.0",
"@types/trusted-types": "^2.0.2",
"lit": "^2.0.0",
Expand Down
21 changes: 12 additions & 9 deletions packages/cli/test/cases/develop.default/develop.default.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ describe('Develop Greenwood With: ', function() {
`${process.cwd()}/node_modules/lit-html/directives/*.js`,
`${outputPath}/node_modules/lit-html/directives/`
);
// lit-html has a dependency on this
// https://github.com/lit/lit/blob/main/packages/lit-html/package.json#L82
const trustedTypes = await getDependencyFiles(
`${process.cwd()}/node_modules/@types/trusted-types/package.json`,
`${outputPath}/node_modules/@types/trusted-types/`
);
const litReactiveElement = await getDependencyFiles(
`${process.cwd()}/node_modules/@lit/reactive-element/*.js`,
`${outputPath}/node_modules/@lit/reactive-element/`
Expand Down Expand Up @@ -236,6 +230,14 @@ describe('Develop Greenwood With: ', function() {
`${process.cwd()}/node_modules/@types/trusted-types/package.json`,
`${outputPath}/node_modules/@types/trusted-types/`
);
const scopedCustomElementRegistryPackageJson = await getDependencyFiles(
`${process.cwd()}/node_modules/@webcomponents/scoped-custom-element-registry/package.json`,
`${outputPath}/node_modules/@webcomponents/scoped-custom-element-registry/`
);
const scopedCustomElementRegistryLibs = await getDependencyFiles(
`${process.cwd()}/node_modules/@webcomponents/scoped-custom-element-registry/*.js`,
`${outputPath}/node_modules/@webcomponents/scoped-custom-element-registry/`
);

// manually copy all these @babel/runtime files recursively since there are too many of them to do it individually
const babelRuntimeLibs = await rreaddir(`${process.cwd()}/node_modules/@babel/runtime`);
Expand Down Expand Up @@ -278,7 +280,6 @@ describe('Develop Greenwood With: ', function() {
...litHtmlPackageJson,
...litHtml,
...litHtmlDirectives,
...trustedTypes,
...litReactiveElement,
...litReactiveElementDecorators,
...litReactiveElementPackageJson,
Expand Down Expand Up @@ -306,7 +307,9 @@ describe('Develop Greenwood With: ', function() {
...singletonManagerLibs,
...trustedTypesPackageJson,
...regeneratorRuntimeLibs,
...regeneratorRuntimeLibsPackageJson
...regeneratorRuntimeLibsPackageJson,
...scopedCustomElementRegistryPackageJson,
...scopedCustomElementRegistryLibs
]);

return new Promise(async (resolve) => {
Expand Down Expand Up @@ -367,7 +370,7 @@ describe('Develop Greenwood With: ', function() {
// https://github.com/ProjectEvergreen/greenwood/issues/715
// export maps with "flat" entries
expect(importMap['@lion/button']).to.equal('/node_modules/@lion/button/index.js');
expect(importMap['@lion/button/define']).to.equal('/node_modules/@lion/button/lion-button.js');
expect(importMap['@lion/button/define']).to.equal('/node_modules/@lion/button/define.js');

// https://github.com/ProjectEvergreen/greenwood/issues/715
// transient dependency import / exports
Expand Down
Loading

0 comments on commit 8969fa0

Please sign in to comment.