@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 +1 -2
- package/dist/RR0Build.test.js +4 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
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(
|
|
191
|
+
return path.join(outDir, "netlify.toml");
|
|
193
192
|
}
|
|
194
193
|
};
|
|
195
194
|
const contentRoots = this.contentRoots;
|
package/dist/RR0Build.test.js
CHANGED
|
@@ -97,7 +97,10 @@ describe("Build", () => {
|
|
|
97
97
|
politicians: testFilePath("people/politicians.html"),
|
|
98
98
|
rulers: testFilePath("people/dirigeants.html")
|
|
99
99
|
};
|
|
100
|
-
const
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED