2022-11-15 22:43:18 +03:00
|
|
|
#!/usr/bin/node
|
|
|
|
|
|
|
|
const fs = require("fs");
|
|
|
|
|
2022-12-07 21:19:04 +03:00
|
|
|
const currentCompatibilityKey = 3;
|
2022-11-15 22:43:18 +03:00
|
|
|
|
|
|
|
fs.writeFileSync(
|
|
|
|
"src/Pages/Internal/Platform/CompatibilityKey.elm",
|
|
|
|
`module Pages.Internal.Platform.CompatibilityKey exposing (currentCompatibilityKey)
|
|
|
|
|
|
|
|
|
|
|
|
currentCompatibilityKey : Int
|
|
|
|
currentCompatibilityKey =
|
|
|
|
${currentCompatibilityKey}
|
|
|
|
`
|
|
|
|
);
|
|
|
|
|
|
|
|
fs.writeFileSync(
|
2022-11-15 23:00:40 +03:00
|
|
|
"generator/src/compatibility-key.js",
|
2022-11-15 22:43:18 +03:00
|
|
|
`module.exports = { compatibilityKey: ${currentCompatibilityKey} };
|
|
|
|
`
|
|
|
|
);
|
|
|
|
|
|
|
|
fs.writeFileSync(
|
|
|
|
"./README.md",
|
|
|
|
fs
|
|
|
|
.readFileSync("./README.md")
|
|
|
|
.toString()
|
|
|
|
.replace(
|
|
|
|
/Current Compatibility Key: \d+\./,
|
|
|
|
`Current Compatibility Key: ${currentCompatibilityKey}.`
|
|
|
|
)
|
|
|
|
);
|