@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.
@@ -11,7 +11,6 @@ export interface RR0BuildOptions {
11
11
  timeOptions: TimeServiceOptions;
12
12
  siteBaseUrl: string;
13
13
  timeFormat: Intl.DateTimeFormatOptions;
14
- timeFiles: string[];
15
14
  directoryPages: string[];
16
15
  ufoCaseDirectoryFile: string;
17
16
  ufoCasesExclusions: string[];
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.timeFiles;
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);
@@ -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, timeFiles, directoryPages,
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
@@ -2,7 +2,7 @@
2
2
  "name": "@rr0/cms",
3
3
  "type": "module",
4
4
  "author": "Jérôme Beau <rr0@rr0.org> (https://rr0.org)",
5
- "version": "0.1.22",
5
+ "version": "0.1.23",
6
6
  "description": "RR0 Content Management System (CMS)",
7
7
  "exports": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",