@parameter1/base-cms-marko-web 4.1.8 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/components/browser-component.marko.js +2 -2
- package/components/document/components/body-wrapper.marko.js +2 -2
- package/components/document/components/error.marko +1 -1
- package/components/document/components/error.marko.js +6 -3
- package/components/document/components/live-reload.marko.js +2 -2
- package/components/document/components/polyfill.marko.js +2 -2
- package/components/document/container.marko.js +2 -2
- package/components/document/index.marko.js +2 -2
- package/components/element/array.marko.js +2 -2
- package/components/element/audio.marko.js +2 -2
- package/components/element/block.marko.js +2 -2
- package/components/element/clear.marko.js +2 -2
- package/components/element/components/image.marko.js +2 -2
- package/components/element/components/text.marko.js +2 -2
- package/components/element/content/address1.marko.js +2 -2
- package/components/element/content/address2.marko.js +2 -2
- package/components/element/content/audio.marko.js +2 -2
- package/components/element/content/authors.marko.js +2 -2
- package/components/element/content/body.marko.js +2 -2
- package/components/element/content/byline.marko.js +2 -2
- package/components/element/content/city-state-zip.marko.js +2 -2
- package/components/element/content/contributors.marko.js +2 -2
- package/components/element/content/country.marko.js +2 -2
- package/components/element/content/embed-code.marko.js +2 -2
- package/components/element/content/end-date.marko.js +2 -2
- package/components/element/content/ends.marko.js +2 -2
- package/components/element/content/fax.marko.js +2 -2
- package/components/element/content/images.marko.js +2 -2
- package/components/element/content/mobile.marko.js +2 -2
- package/components/element/content/name.marko.js +2 -2
- package/components/element/content/phone.marko.js +2 -2
- package/components/element/content/photographers.marko.js +2 -2
- package/components/element/content/public-email.marko.js +2 -2
- package/components/element/content/published.marko.js +2 -2
- package/components/element/content/short-name.marko.js +2 -2
- package/components/element/content/sidebar-stubs.marko.js +2 -2
- package/components/element/content/sidebars.marko.js +2 -2
- package/components/element/content/source.marko.js +2 -2
- package/components/element/content/sponsors.marko.js +2 -2
- package/components/element/content/start-date.marko.js +2 -2
- package/components/element/content/starts.marko.js +2 -2
- package/components/element/content/teaser.marko.js +2 -2
- package/components/element/content/title.marko.js +2 -2
- package/components/element/content/tollfree.marko.js +2 -2
- package/components/element/content/transcript.marko.js +2 -2
- package/components/element/content/website.marko.js +2 -2
- package/components/element/date.marko.js +2 -2
- package/components/element/image/caption.marko.js +2 -2
- package/components/element/image/credit.marko.js +2 -2
- package/components/element/image/display-name.marko.js +2 -2
- package/components/element/image/slider.marko.js +2 -2
- package/components/element/img.marko.js +2 -2
- package/components/element/index.marko.js +2 -2
- package/components/element/link.marko.js +2 -2
- package/components/element/magazine-issue/description.marko.js +2 -2
- package/components/element/magazine-issue/digital-edition-url.marko.js +2 -2
- package/components/element/magazine-issue/name.marko.js +2 -2
- package/components/element/magazine-issue/pdf-url.marko.js +2 -2
- package/components/element/magazine-publication/cancel-url.marko.js +2 -2
- package/components/element/magazine-publication/change-address-url.marko.js +2 -2
- package/components/element/magazine-publication/description.marko.js +2 -2
- package/components/element/magazine-publication/einquiry-url.marko.js +2 -2
- package/components/element/magazine-publication/name.marko.js +2 -2
- package/components/element/magazine-publication/renewal-url.marko.js +2 -2
- package/components/element/magazine-publication/reprints-url.marko.js +2 -2
- package/components/element/magazine-publication/subscribe-url.marko.js +2 -2
- package/components/element/obj-array.marko.js +2 -2
- package/components/element/obj-audio.marko.js +2 -2
- package/components/element/obj-date.marko.js +2 -2
- package/components/element/obj-nodes.marko.js +2 -2
- package/components/element/obj-text.marko.js +2 -2
- package/components/element/obj.marko.js +2 -2
- package/components/element/picture.marko.js +2 -2
- package/components/element/text.marko.js +2 -2
- package/components/element/website-section/description.marko.js +2 -2
- package/components/element/website-section/hierarchy.marko.js +2 -2
- package/components/element/website-section/name.marko.js +2 -2
- package/components/load-more/index.marko.js +2 -2
- package/components/load-more/trigger.marko.js +2 -2
- package/components/node/body.marko.js +2 -2
- package/components/node/element.marko.js +2 -2
- package/components/node/footer.marko.js +2 -2
- package/components/node/header.marko.js +2 -2
- package/components/node/image-inner-wrapper.marko.js +2 -2
- package/components/node/image-wrapper.marko.js +2 -2
- package/components/node/image.marko.js +2 -2
- package/components/node/index.marko.js +2 -2
- package/components/node-list/body.marko.js +2 -2
- package/components/node-list/element.marko.js +2 -2
- package/components/node-list/footer.marko.js +2 -2
- package/components/node-list/header.marko.js +2 -2
- package/components/node-list/index.marko.js +2 -2
- package/components/node-list/node.marko.js +2 -2
- package/components/node-list/nodes.marko.js +2 -2
- package/components/page/container.marko.js +2 -2
- package/components/page/description.marko.js +2 -2
- package/components/page/image.marko.js +2 -2
- package/components/page/layouts/content.marko.js +2 -2
- package/components/page/layouts/default.marko.js +2 -2
- package/components/page/layouts/dynamic-page.marko.js +2 -2
- package/components/page/layouts/magazine-issue.marko.js +2 -2
- package/components/page/layouts/magazine-publication.marko.js +2 -2
- package/components/page/layouts/website-section.marko.js +2 -2
- package/components/page/metadata/components/common.marko.js +2 -2
- package/components/page/metadata/content.marko.js +2 -2
- package/components/page/metadata/default.marko.js +2 -2
- package/components/page/metadata/dynamic-page.marko.js +2 -2
- package/components/page/metadata/magazine-issue.marko.js +2 -2
- package/components/page/metadata/magazine-publication.marko.js +2 -2
- package/components/page/metadata/website-section.marko.js +2 -2
- package/components/page/rel-canonical.marko.js +2 -2
- package/components/page/title.marko.js +2 -2
- package/components/page/wrapper.marko.js +2 -2
- package/components/resolve/page.marko.js +2 -2
- package/components/rss/website-section.marko.js +2 -2
- package/config/core.js +10 -4
- package/config/dist-loader.js +24 -0
- package/integration/test-website-boot.js +17 -8
- package/package.json +3 -2
- package/config/asset-manifest.js +0 -43
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/dynamic-page.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_dynamic_page_metadata_template = require("../metadata/dynamic-page.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/dynamic-page.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/dynamic-page.marko"
|
58
58
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/magazine-issue.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_magazine_issue_page_metadata_template = require("../metadata/magazine-issue.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/magazine-issue.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/magazine-issue.marko"
|
58
58
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/magazine-publication.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_magazine_publication_page_metadata_template = require("../metadata/magazine-publication.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/magazine-publication.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/magazine-publication.marko"
|
58
58
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/website-section.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
});
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/layouts/website-section.marko",
|
74
74
|
tags: [
|
75
75
|
"../metadata/website-section.marko",
|
76
76
|
"../../rss/website-section.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/components/common.marko",
|
6
6
|
marko_component = require("./common.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
marko_web_page_title_template = require("../../title.marko"),
|
@@ -98,7 +98,7 @@ marko_template._ = marko_renderer(render, {
|
|
98
98
|
}, marko_component);
|
99
99
|
|
100
100
|
marko_template.meta = {
|
101
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
101
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/components/common.marko",
|
102
102
|
component: "./common.marko",
|
103
103
|
tags: [
|
104
104
|
"../../title.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/content.marko",
|
6
6
|
marko_component = require("./content.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -197,7 +197,7 @@ marko_template._ = marko_renderer(render, {
|
|
197
197
|
}, marko_component);
|
198
198
|
|
199
199
|
marko_template.meta = {
|
200
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
200
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/content.marko",
|
201
201
|
component: "./content.marko",
|
202
202
|
tags: [
|
203
203
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/default.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
common_template = require("./components/common.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -22,7 +22,7 @@ marko_template._ = marko_renderer(render, {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
marko_template.meta = {
|
25
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
25
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/default.marko",
|
26
26
|
tags: [
|
27
27
|
"./components/common.marko"
|
28
28
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/dynamic-page.marko",
|
6
6
|
marko_component = require("./dynamic-page.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -75,7 +75,7 @@ marko_template._ = marko_renderer(render, {
|
|
75
75
|
}, marko_component);
|
76
76
|
|
77
77
|
marko_template.meta = {
|
78
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
78
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/dynamic-page.marko",
|
79
79
|
component: "./dynamic-page.marko",
|
80
80
|
tags: [
|
81
81
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/magazine-issue.marko",
|
6
6
|
marko_component = require("./magazine-issue.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -74,7 +74,7 @@ marko_template._ = marko_renderer(render, {
|
|
74
74
|
}, marko_component);
|
75
75
|
|
76
76
|
marko_template.meta = {
|
77
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
77
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/magazine-issue.marko",
|
78
78
|
component: "./magazine-issue.marko",
|
79
79
|
tags: [
|
80
80
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/magazine-publication.marko",
|
6
6
|
marko_component = require("./magazine-publication.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
}, marko_component);
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/magazine-publication.marko",
|
74
74
|
component: "./magazine-publication.marko",
|
75
75
|
tags: [
|
76
76
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/website-section.marko",
|
6
6
|
marko_component = require("./website-section.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
}, marko_component);
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/metadata/website-section.marko",
|
74
74
|
component: "./website-section.marko",
|
75
75
|
tags: [
|
76
76
|
"./components/common.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/rel-canonical.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -38,5 +38,5 @@ marko_template._ = marko_renderer(render, {
|
|
38
38
|
});
|
39
39
|
|
40
40
|
marko_template.meta = {
|
41
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
41
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/rel-canonical.marko"
|
42
42
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/title.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/title.marko"
|
46
46
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/page/wrapper.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
56
56
|
});
|
57
57
|
|
58
58
|
marko_template.meta = {
|
59
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
59
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/page/wrapper.marko",
|
60
60
|
tags: [
|
61
61
|
"../element/index.marko"
|
62
62
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/resolve/page.marko",
|
6
6
|
marko_component = require("./page.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
@@ -41,7 +41,7 @@ marko_template._ = marko_renderer(render, {
|
|
41
41
|
}, marko_component);
|
42
42
|
|
43
43
|
marko_template.meta = {
|
44
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
44
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/resolve/page.marko",
|
45
45
|
component: "./page.marko",
|
46
46
|
tags: [
|
47
47
|
"@parameter1/base-cms-marko-core/components/resolve.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$4.1
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.2.1/components/rss/website-section.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_url_module = require("url"),
|
8
8
|
url_module = module_url_module.default || module_url_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.1
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.2.1/components/rss/website-section.marko"
|
46
46
|
};
|
package/config/core.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
const { get } = require('@parameter1/base-cms-object-path');
|
2
2
|
const AbstractConfig = require('./abstract-config');
|
3
|
-
const
|
3
|
+
const distLoader = require('./dist-loader');
|
4
4
|
|
5
5
|
class CoreConfig extends AbstractConfig {
|
6
6
|
/**
|
@@ -9,7 +9,11 @@ class CoreConfig extends AbstractConfig {
|
|
9
9
|
*/
|
10
10
|
constructor(config) {
|
11
11
|
super(config);
|
12
|
-
|
12
|
+
const distDir = this.get('distDir');
|
13
|
+
this.assetLoader = {
|
14
|
+
js: distLoader({ distDir, type: 'js', entry: 'browser/index.js' }),
|
15
|
+
css: distLoader({ distDir, type: 'css', entry: 'server/styles/index.scss' }),
|
16
|
+
};
|
13
17
|
}
|
14
18
|
|
15
19
|
setWebsiteContext(context) {
|
@@ -55,11 +59,13 @@ class CoreConfig extends AbstractConfig {
|
|
55
59
|
}
|
56
60
|
|
57
61
|
sources() {
|
58
|
-
|
62
|
+
const js = this.assetLoader.js();
|
63
|
+
return [js];
|
59
64
|
}
|
60
65
|
|
61
66
|
styles() {
|
62
|
-
|
67
|
+
const css = this.assetLoader.css();
|
68
|
+
return [css];
|
63
69
|
}
|
64
70
|
}
|
65
71
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
const path = require('path');
|
2
|
+
const { readFileSync } = require('fs');
|
3
|
+
|
4
|
+
const loadFromManifest = ({ distDir, type, entry }) => {
|
5
|
+
const file = path.resolve(distDir, type, 'manifest.json');
|
6
|
+
const json = readFileSync(file, { encoding: 'utf8' });
|
7
|
+
const manifest = JSON.parse(json);
|
8
|
+
const asset = manifest[entry];
|
9
|
+
if (!asset) throw new Error(`Unable to extract an asset for type ${type} using manifest entry ${entry}`);
|
10
|
+
return `/dist/${type}/${asset.file}`;
|
11
|
+
};
|
12
|
+
|
13
|
+
module.exports = ({ distDir, type, entry }) => {
|
14
|
+
let file;
|
15
|
+
const isDevelopment = process.env.NODE_ENV !== 'production';
|
16
|
+
return () => {
|
17
|
+
// when on dev, always return the file from the manifest
|
18
|
+
// as it may have changed during build.
|
19
|
+
if (isDevelopment) return loadFromManifest({ distDir, type, entry });
|
20
|
+
// otherwise, only retrieve it once
|
21
|
+
if (!file) file = loadFromManifest({ distDir, type, entry });
|
22
|
+
return file;
|
23
|
+
};
|
24
|
+
};
|
@@ -1,27 +1,36 @@
|
|
1
1
|
const fetch = require('node-fetch');
|
2
|
+
const { htmlEntities } = require('@parameter1/base-cms-html');
|
2
3
|
|
3
4
|
const { error, log } = console;
|
4
5
|
|
6
|
+
const url = process.env.MARKO_WEB_INTEGRATION_TEST_URL || 'http://localhost:80';
|
7
|
+
|
5
8
|
setInterval(async () => {
|
6
9
|
try {
|
7
|
-
const res = await fetch(
|
10
|
+
const res = await fetch(url, { method: 'get' });
|
8
11
|
if (!res.ok) {
|
9
12
|
error('Response not ok!', res.status, res.statusText);
|
10
13
|
process.exit(1);
|
11
14
|
} else {
|
12
15
|
const html = await res.text();
|
16
|
+
// check for in-body body errors
|
17
|
+
const matches = [...html.matchAll(/data-marko-error="(.*?)"/g)];
|
18
|
+
const errors = [];
|
19
|
+
matches.forEach((values) => {
|
20
|
+
const value = values[1];
|
21
|
+
errors.push(htmlEntities.decode(value));
|
22
|
+
});
|
23
|
+
if (errors.length) {
|
24
|
+
error('In-page, server-side Marko error(s) were encountered!', errors);
|
25
|
+
process.exit(1);
|
26
|
+
}
|
27
|
+
|
28
|
+
// if not in-body errors, ensure page rendered.
|
13
29
|
const found = /.*<\/head>.*<\/body>.*<\/html>.*/is.test(html);
|
14
30
|
if (!found) {
|
15
31
|
error('Unable to find closing HTML tags!');
|
16
32
|
process.exit(1);
|
17
|
-
return;
|
18
33
|
}
|
19
|
-
// now check for any server errors
|
20
|
-
// if (/data-marko-error="true"/g.test(html)) {
|
21
|
-
// error('An in-page server-side Marko error was encountered!');
|
22
|
-
// process.exit(1);
|
23
|
-
// return;
|
24
|
-
// }
|
25
34
|
log('Integration tests passed!');
|
26
35
|
process.exit(0);
|
27
36
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parameter1/base-cms-marko-web",
|
3
|
-
"version": "4.1
|
3
|
+
"version": "4.2.1",
|
4
4
|
"description": "Core Marko+Express components for BaseCMS websites",
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
6
6
|
"main": "index.js",
|
@@ -28,6 +28,7 @@
|
|
28
28
|
"@parameter1/base-cms-embedded-media": "^4.0.2",
|
29
29
|
"@parameter1/base-cms-express-apollo": "^4.0.2",
|
30
30
|
"@parameter1/base-cms-graphql-fragment-types": "^4.0.2",
|
31
|
+
"@parameter1/base-cms-html": "^4.0.2",
|
31
32
|
"@parameter1/base-cms-image": "^4.0.2",
|
32
33
|
"@parameter1/base-cms-inflector": "^4.0.2",
|
33
34
|
"@parameter1/base-cms-marko-express": "^4.0.2",
|
@@ -57,5 +58,5 @@
|
|
57
58
|
"publishConfig": {
|
58
59
|
"access": "public"
|
59
60
|
},
|
60
|
-
"gitHead": "
|
61
|
+
"gitHead": "b3fb47d2b637ae84014517d8efc0b3ca8ba5fd05"
|
61
62
|
}
|
package/config/asset-manifest.js
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
const { join } = require('path');
|
2
|
-
|
3
|
-
class AssetManifest {
|
4
|
-
constructor({ distDir } = {}) {
|
5
|
-
this.distDir = distDir;
|
6
|
-
}
|
7
|
-
|
8
|
-
js() {
|
9
|
-
if (!this.scripts) {
|
10
|
-
const { js } = this.load();
|
11
|
-
this.scripts = [js['browser/index.js']];
|
12
|
-
}
|
13
|
-
return this.scripts;
|
14
|
-
}
|
15
|
-
|
16
|
-
css() {
|
17
|
-
if (!this.stylesheets) {
|
18
|
-
const { css } = this.load();
|
19
|
-
this.stylesheets = [css['server/styles/index.scss']];
|
20
|
-
}
|
21
|
-
return this.stylesheets;
|
22
|
-
}
|
23
|
-
|
24
|
-
load() {
|
25
|
-
if (!this.manifest) {
|
26
|
-
this.manifest = {
|
27
|
-
js: this.loadDataFor('js'),
|
28
|
-
css: this.loadDataFor('css'),
|
29
|
-
};
|
30
|
-
}
|
31
|
-
return this.manifest;
|
32
|
-
}
|
33
|
-
|
34
|
-
loadDataFor(type) {
|
35
|
-
const { distDir } = this;
|
36
|
-
const distFolder = distDir.split('/').pop();
|
37
|
-
// eslint-disable-next-line global-require, import/no-dynamic-require
|
38
|
-
const json = require(join(distDir, type, 'manifest.json'));
|
39
|
-
return Object.keys(json).reduce((o, k) => ({ ...o, [k]: join('/', distFolder, type, json[k].file) }), {});
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
module.exports = AssetManifest;
|