├── .changeset ├── README.md └── config.json ├── .editorconfig ├── .github └── workflows │ └── release.yaml ├── .gitignore ├── .prettierignore ├── .prettierrc.js ├── CHANGELOG.md ├── README.md ├── bin └── cli.js ├── example ├── .gitignore ├── index.html ├── package.json ├── src │ ├── App.tsx │ ├── index.css │ ├── main.tsx │ └── vite-env.d.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.node.json └── vite.config.mjs ├── lefthook.yml ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── scripts └── changelog.sh ├── src ├── cli.ts ├── generate.ts ├── swagger.ts ├── template.ts ├── transform.ts ├── types.ts └── utils.ts ├── test ├── fixture │ ├── githubapi.yaml │ ├── petstore.json │ ├── strings.yaml │ └── test.yaml ├── generate.spec.ts ├── transform.spec.ts ├── typescript-generation.spec.ts └── utils.spec.ts ├── tsconfig.json ├── tsup.config.ts └── vitest.config.ts /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/README.md -------------------------------------------------------------------------------- /bin/cli.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | require('../dist/cli'); 3 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/index.html -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/package.json -------------------------------------------------------------------------------- /example/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/src/App.tsx -------------------------------------------------------------------------------- /example/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/src/index.css -------------------------------------------------------------------------------- /example/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/src/main.tsx -------------------------------------------------------------------------------- /example/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /example/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/tsconfig.app.json -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/tsconfig.node.json -------------------------------------------------------------------------------- /example/vite.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/example/vite.config.mjs -------------------------------------------------------------------------------- /lefthook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/lefthook.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /scripts/changelog.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/scripts/changelog.sh -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/generate.ts -------------------------------------------------------------------------------- /src/swagger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/swagger.ts -------------------------------------------------------------------------------- /src/template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/template.ts -------------------------------------------------------------------------------- /src/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/transform.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/fixture/githubapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/fixture/githubapi.yaml -------------------------------------------------------------------------------- /test/fixture/petstore.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/fixture/petstore.json -------------------------------------------------------------------------------- /test/fixture/strings.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/fixture/strings.yaml -------------------------------------------------------------------------------- /test/fixture/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/fixture/test.yaml -------------------------------------------------------------------------------- /test/generate.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/generate.spec.ts -------------------------------------------------------------------------------- /test/transform.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/transform.spec.ts -------------------------------------------------------------------------------- /test/typescript-generation.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/typescript-generation.spec.ts -------------------------------------------------------------------------------- /test/utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/test/utils.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubingwu/msw-auto-mock/HEAD/vitest.config.ts --------------------------------------------------------------------------------