@rr0/cms 0.1.17 → 0.1.19

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.js CHANGED
@@ -148,7 +148,6 @@ export class RR0Build {
148
148
  new DescriptionReplaceCommand("UFO data for french-reading people", "abstract"),
149
149
  new AuthorReplaceCommand(timeService)
150
150
  ];
151
- // const sourceCounter = new SourceFileCounter()
152
151
  const sourceCounter = new SourceFileCounter();
153
152
  const sourceReplacer = new SourceReplacer(sourceRenderer, sourceFactory, sourceCounter);
154
153
  const sourceReplacerFactory = new SourceReplacerFactory(sourceReplacer);
@@ -189,7 +188,7 @@ export class RR0Build {
189
188
  replacements: [new HtAccessToNetlifyConfigReplaceCommand(baseUrl)],
190
189
  roots: [".htaccess"],
191
190
  getOutputPath(_context) {
192
- return path.join(this.outDir, "netlify.toml");
191
+ return path.join(outDir, "netlify.toml");
193
192
  }
194
193
  };
195
194
  const contentRoots = this.contentRoots;
@@ -97,7 +97,10 @@ describe("Build", () => {
97
97
  politicians: testFilePath("people/politicians.html"),
98
98
  rulers: testFilePath("people/dirigeants.html")
99
99
  };
100
- const build = new RR0Build(contentRoots, copies, outDir, "fr", googleMapsApiKey, "rr0@rr0.org", timeOptions, "https://rr0.org/", timeFormat, timeFiles, directoryPages, testFilePath("science/crypto/ufo/enquete/dossier/index.html"), [testFilePath("science/crypto/ufo/enquete/dossier/canular")], testFilePath("source/index.json"), ["people/Astronomers_fichiers", "people/witness", "people/author"], directoryOptions);
100
+ const sourceRegistryFileName = testFilePath("source/index.json");
101
+ const siteBaseUrl = "https://rr0.org/";
102
+ const mail = "rr0@rr0.org";
103
+ const build = new RR0Build(contentRoots, copies, outDir, "fr", googleMapsApiKey, mail, timeOptions, siteBaseUrl, timeFormat, timeFiles, directoryPages, testFilePath("science/crypto/ufo/enquete/dossier/index.html"), [testFilePath("science/crypto/ufo/enquete/dossier/canular")], sourceRegistryFileName, ["people/Astronomers_fichiers", "people/witness", "people/author"], directoryOptions);
101
104
  await build.run(args);
102
105
  });
103
106
  });
package/dist/index.d.ts CHANGED
@@ -28,3 +28,4 @@ export * from "./RR0ContentStep.js";
28
28
  export * from "./RR0DefaultCopyright.js";
29
29
  export * from "./RR0Context.js";
30
30
  export * from "./TableReplaceCommand.js";
31
+ export * from "./RR0Build.js";
package/dist/index.js CHANGED
@@ -28,3 +28,4 @@ export * from "./RR0ContentStep.js";
28
28
  export * from "./RR0DefaultCopyright.js";
29
29
  export * from "./RR0Context.js";
30
30
  export * from "./TableReplaceCommand.js";
31
+ export * from "./RR0Build.js";
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.17",
5
+ "version": "0.1.19",
6
6
  "description": "RR0 Content Management System (CMS)",
7
7
  "exports": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",