UNPKG

jrgen

Version:

Generates docs, tests, clients and servers for json-rpc apis.

11 lines (8 loc) 234 B
const fs = require("fs-extra"); const glob = require("glob"); const filePathsToDelete = glob.sync( __dirname + "/../examples/**/!(ExampleAPI.jrgen.json)" ); for (const filePath of filePathsToDelete) { fs.removeSync(filePath); }