Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
extedcouD committed Sep 10, 2024
1 parent 8843bee commit cdf27b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added backend-editor/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import path from "path";
import { deleteFolderSync, loadYamlWithRefs } from "../fileUtils";
import fs, { copyFileSync, mkdir } from "fs";
import yaml from "js-yaml";
import { overrideYaml } from "../yamlUtils";
import { describe } from "node:test";

type exampleSet = Record<
string,
{
Expand All @@ -25,7 +24,6 @@ type exampleData = Record<
>;

async function formatExampleSummary(yamlPath: string) {
console.log("hello");
const yamlData: Record<
string,
{
Expand Down Expand Up @@ -189,23 +187,11 @@ async function formatExampleFolder(examplePath: string) {
fs.writeFileSync(`${newPathFlow}/index.yaml`, yaml.dump(flowIndexData));
}

(async () => {
// await formatExampleSummary(
// path.resolve(
// __dirname,
// "../../../../FORKED_REPO/api/components/examples/personal-loans/personal-loan.yaml"
// )
// );
// await formatExampleSummary(
// path.resolve(
// __dirname,
// "../../../../FORKED_REPO/api/components/examples/personal-loans/purchase-finance.yaml"
// )
// );
// await formatExampleFolder(
// path.resolve(__dirname, "../../../../FORKED_REPO/api/components/examples")
// );
// const str =
// "../../examples/personal-loans/on_search/on_search-request-pf_1.yaml";
// console.log(str.split("../../"));
})();
// (async () => {
// await formatExampleFolder(
// path.resolve(__dirname, "../../../../FORKED_REPO/api/components/examples")
// );
// // const str =
// // "../../examples/personal-loans/on_search/on_search-request-pf_1.yaml";
// // console.log(str.split("../../"));
// })();

0 comments on commit cdf27b3

Please sign in to comment.