feat: creating the rest of the sdk

This commit is contained in:
BluJ
2023-05-09 11:42:26 -06:00
parent 72df4cb502
commit 07493551b1
30 changed files with 568 additions and 504 deletions

View File

@@ -28,19 +28,12 @@ function isString(x: unknown): x is string {
export default async function makeFileContentFromOld(
inputData: Promise<any> | any,
{
startSdk = "start-sdk",
nested = true,
wrapperData = "../../wrapperData",
} = {},
{ startSdk = "start-sdk", nested = true } = {},
) {
const outputLines: string[] = []
outputLines.push(`
import { Config } from "${startSdk}/lib/config/builder/config"
import { List } from "${startSdk}/lib/config/builder/list"
import { Value } from "${startSdk}/lib/config/builder/value"
import { Variants } from "${startSdk}/lib/config/builder/variants"
import {WrapperData} from '${wrapperData}'
import { sdk } from "${startSdk}"
const {Config, List, Value, Variants} = sdk
`)
const data = await inputData