1.0.0 • Published 3 years ago

zstack-node-test-code-yaml-acorn1 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

script

scripts:{ "parserCode":"parser -d './test' -p '\.e2e-spec\.ts$'" }

parser command param

program
  .option("-d, --dir [value]", "directory for parser")
  .option("-f, --files [value...]", "files for parser")
  .option("-p, --pattern [value]", "file math pattern")
  .option("-x, --extension [value]", "file extension", ".e2e-spec.ts")
  .option("-m, --mode [items]", "parser mode", "single")
  .option("-w, --watch", "watch files", false)
  .option("-r, --over-write", "over write parser files", false)
  .option("-t, --prettier", "prettier output files", false)
  .option("-b, --debug", "debug mode", false)
  .option(
    "-i, --import-resource-path [value]",
    "resource import path",
    "@test/features/helper/env-generator"
  );

index.js

dumpYaml(yamlFilePath: string, yamlTag: string, config?: DumpConfig))
//etc:
 const path = "@/ps.yaml"
  const res = dumpYaml(path, "ts-source_test_vip_query-use-for-slb-load-balancer" , {
    resourcePath:"@test/features/helper/env-generator"
  });

  const {vip,...rest} = res