@rr0/cms 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RR0Build.d.ts +0 -1
- package/dist/RR0Build.js +1 -1
- package/dist/RR0Build.test.js +5 -5
- package/package.json +1 -1
package/dist/RR0Build.d.ts
CHANGED
package/dist/RR0Build.js
CHANGED
|
@@ -74,7 +74,7 @@ export class RR0Build {
|
|
|
74
74
|
}
|
|
75
75
|
async run(args) {
|
|
76
76
|
const context = this.context;
|
|
77
|
-
const timeFiles = this.options.
|
|
77
|
+
const timeFiles = this.options.timeOptions.files;
|
|
78
78
|
context.setVar("timeFilesCount", timeFiles.length);
|
|
79
79
|
const timeService = this.timeService;
|
|
80
80
|
const timeElementFactory = new TimeElementFactory(timeService.renderer);
|
package/dist/RR0Build.test.js
CHANGED
|
@@ -53,10 +53,6 @@ describe("Build", () => {
|
|
|
53
53
|
if (!googleMapsApiKey) {
|
|
54
54
|
throw Error("GOOGLE_MAPS_API_KEY is required");
|
|
55
55
|
}
|
|
56
|
-
const timeOptions = {
|
|
57
|
-
root: testFilePath("time"),
|
|
58
|
-
files: []
|
|
59
|
-
};
|
|
60
56
|
const timeFormat = {
|
|
61
57
|
year: "numeric",
|
|
62
58
|
month: "long",
|
|
@@ -97,9 +93,13 @@ describe("Build", () => {
|
|
|
97
93
|
const sourceRegistryFileName = testFilePath("source/index.json");
|
|
98
94
|
const siteBaseUrl = "https://rr0.org/";
|
|
99
95
|
const mail = "rr0@rr0.org";
|
|
96
|
+
const timeOptions = {
|
|
97
|
+
root: testFilePath("time"),
|
|
98
|
+
files: timeFiles
|
|
99
|
+
};
|
|
100
100
|
const build = new RR0Build({
|
|
101
101
|
contentRoots, copies, outDir, locale: "fr", googleMapsApiKey, mail, timeOptions,
|
|
102
|
-
siteBaseUrl, timeFormat,
|
|
102
|
+
siteBaseUrl, timeFormat, directoryPages,
|
|
103
103
|
ufoCaseDirectoryFile: testFilePath("science/crypto/ufo/enquete/dossier/index.html"),
|
|
104
104
|
ufoCasesExclusions: ["science/crypto/ufo/enquete/dossier/canular"].map(testFilePath),
|
|
105
105
|
sourceRegistryFileName,
|
package/package.json
CHANGED