Adj. to 103
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
const { createTwoFilesPatch } = require("diff");
|
||||
const fs = require("fs");
|
||||
|
||||
// HTML
|
||||
|
||||
let file1Contents = fs.readFileSync("EFB.html").toString();
|
||||
let file2Contents = fs.readFileSync("patched/EFB.html").toString();
|
||||
let patch = createTwoFilesPatch(
|
||||
"EFB.html",
|
||||
"EFB.html",
|
||||
file1Contents,
|
||||
file2Contents
|
||||
);
|
||||
fs.writeFileSync("efb-html.patch", patch);
|
||||
|
||||
// JS
|
||||
|
||||
file1Contents = fs.readFileSync("EFB.js").toString();
|
||||
file2Contents = fs.readFileSync("patched/EFB.js").toString();
|
||||
patch = createTwoFilesPatch("EFB.js", "EFB.js", file1Contents, file2Contents);
|
||||
fs.writeFileSync("efb-js.patch", patch);
|
||||
Reference in New Issue
Block a user