├── .browserslistrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── github-ci.yaml ├── .gitignore ├── .markdownlint.json ├── .stylelintrc ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── appveyor.yml ├── bin └── types-as-schema ├── clean-release.config.ts ├── clean-run.config.ts ├── clean-scripts.config.ts ├── demo ├── baogame │ ├── common.ts │ ├── debug.json │ └── protocol.proto ├── case2.ts ├── cases.json ├── cases.md ├── cases.proto ├── cases.swagger.json ├── cases.ts ├── custom.ts ├── debug.json ├── log-tool │ ├── debug.json │ ├── flow-protocol.json │ ├── protocol.proto │ ├── request-protocol.json │ ├── response-protocol.json │ └── types.ts ├── match-calculator │ ├── debug.json │ ├── groups-schema.json │ ├── teams-schema.json │ └── types.ts └── typescript.ts ├── online ├── file2variable.config.ts ├── index.ejs.html ├── index.less ├── index.template.html ├── index.ts ├── rev-static.config.ts ├── tsconfig.json ├── variables.ts └── webpack.config.ts ├── package.json ├── postcss.config.js ├── src ├── cli.ts ├── core.ts ├── index.ts ├── js-doc.ts ├── json-schema-generator.ts ├── lib.d.ts ├── markdown-doc-generator.ts ├── parser.ts ├── protobuf-generator.ts ├── swagger-doc-generator.ts ├── tsconfig.json ├── typescript-generator.ts └── utils.ts ├── tsconfig.json ├── types-as-schema.config.ts └── yarn.lock /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | Last 2 versions 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/github-ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.github/workflows/github-ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.gitignore -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/.markdownlint.json -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "stylelint-config-standard" 3 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/appveyor.yml -------------------------------------------------------------------------------- /bin/types-as-schema: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require("../dist/cli.js"); 3 | -------------------------------------------------------------------------------- /clean-release.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/clean-release.config.ts -------------------------------------------------------------------------------- /clean-run.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/clean-run.config.ts -------------------------------------------------------------------------------- /clean-scripts.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/clean-scripts.config.ts -------------------------------------------------------------------------------- /demo/baogame/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/baogame/common.ts -------------------------------------------------------------------------------- /demo/baogame/debug.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/baogame/debug.json -------------------------------------------------------------------------------- /demo/baogame/protocol.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/baogame/protocol.proto -------------------------------------------------------------------------------- /demo/case2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/case2.ts -------------------------------------------------------------------------------- /demo/cases.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/cases.json -------------------------------------------------------------------------------- /demo/cases.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/cases.md -------------------------------------------------------------------------------- /demo/cases.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/cases.proto -------------------------------------------------------------------------------- /demo/cases.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/cases.swagger.json -------------------------------------------------------------------------------- /demo/cases.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/cases.ts -------------------------------------------------------------------------------- /demo/custom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/custom.ts -------------------------------------------------------------------------------- /demo/debug.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/debug.json -------------------------------------------------------------------------------- /demo/log-tool/debug.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/log-tool/debug.json -------------------------------------------------------------------------------- /demo/log-tool/flow-protocol.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/log-tool/flow-protocol.json -------------------------------------------------------------------------------- /demo/log-tool/protocol.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/log-tool/protocol.proto -------------------------------------------------------------------------------- /demo/log-tool/request-protocol.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/log-tool/request-protocol.json -------------------------------------------------------------------------------- /demo/log-tool/response-protocol.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/log-tool/response-protocol.json -------------------------------------------------------------------------------- /demo/log-tool/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/log-tool/types.ts -------------------------------------------------------------------------------- /demo/match-calculator/debug.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/match-calculator/debug.json -------------------------------------------------------------------------------- /demo/match-calculator/groups-schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/match-calculator/groups-schema.json -------------------------------------------------------------------------------- /demo/match-calculator/teams-schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/match-calculator/teams-schema.json -------------------------------------------------------------------------------- /demo/match-calculator/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/match-calculator/types.ts -------------------------------------------------------------------------------- /demo/typescript.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/demo/typescript.ts -------------------------------------------------------------------------------- /online/file2variable.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/file2variable.config.ts -------------------------------------------------------------------------------- /online/index.ejs.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/index.ejs.html -------------------------------------------------------------------------------- /online/index.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/index.less -------------------------------------------------------------------------------- /online/index.template.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/index.template.html -------------------------------------------------------------------------------- /online/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/index.ts -------------------------------------------------------------------------------- /online/rev-static.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/rev-static.config.ts -------------------------------------------------------------------------------- /online/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/tsconfig.json -------------------------------------------------------------------------------- /online/variables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/variables.ts -------------------------------------------------------------------------------- /online/webpack.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/online/webpack.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/postcss.config.js -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/core.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/js-doc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/js-doc.ts -------------------------------------------------------------------------------- /src/json-schema-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/json-schema-generator.ts -------------------------------------------------------------------------------- /src/lib.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.json' { 2 | export const version: string 3 | } 4 | -------------------------------------------------------------------------------- /src/markdown-doc-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/markdown-doc-generator.ts -------------------------------------------------------------------------------- /src/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/parser.ts -------------------------------------------------------------------------------- /src/protobuf-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/protobuf-generator.ts -------------------------------------------------------------------------------- /src/swagger-doc-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/swagger-doc-generator.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/typescript-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/typescript-generator.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types-as-schema.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/types-as-schema.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plantain-00/types-as-schema/HEAD/yarn.lock --------------------------------------------------------------------------------