Added the ability to replace some placeholders in the screeps code #12

Merged
Philipp merged 7 commits from added-read-replace-git into main 2023-12-25 02:22:44 +01:00
3 changed files with 139 additions and 2 deletions
Showing only changes of commit 227dde862d - Show all commits

View File

@ -41,6 +41,8 @@ function replacePlaceholders(content) {
async function readReplaceAndWriteFiles(pattern, prefix) { async function readReplaceAndWriteFiles(pattern, prefix) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const globPattern = prefix ? path.join(prefix, pattern) : pattern; const globPattern = prefix ? path.join(prefix, pattern) : pattern;
core.info("globPattern");
core.info(globPattern);
glob(globPattern, async (err, files) => { glob(globPattern, async (err, files) => {
if (err) { if (err) {