├── .circleci └── config.yml ├── .commitlintrc.yml ├── .czrc ├── .editorconfig ├── .eslintrc.js ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom.md │ └── feature_request.md ├── stale.yml └── workflows │ └── build.yml ├── .gitignore ├── .lintstagedrc.js ├── .npmignore ├── .npmrc ├── .nvmrc ├── .nycrc ├── .prettierignore ├── .prettierrc.js ├── CHANGELOG.md ├── LICENSE ├── README.md ├── _config.yml ├── package.json ├── src ├── Builder.ts ├── Loader.ts ├── Parser.ts ├── Resolver.ts ├── cli-ts-node-commonjs.ts ├── cli-ts-node-esm.ts ├── cli.ts ├── commands │ └── LoadCommand.ts ├── index.ts ├── interface │ ├── IDataParser.ts │ ├── IEntity.ts │ ├── IFixture.ts │ ├── IFixturesConfig.ts │ ├── ILoader.ts │ ├── IParser.ts │ ├── IProcessor.ts │ └── index.ts ├── loaders │ ├── JsonLoader.ts │ ├── TsLoader.ts │ ├── YamlLoader.ts │ └── index.ts ├── parsers │ ├── EjsParser.ts │ ├── FakerParser.ts │ ├── ParameterParser.ts │ ├── ReferenceParser.ts │ └── index.ts ├── schema │ ├── index.ts │ └── jFixturesSchema.ts └── util │ ├── fixturesIterator.ts │ └── index.ts ├── test ├── intergation │ └── assets │ │ ├── docker-compose-postgres.yml │ │ ├── entity │ │ ├── Comment.ts │ │ ├── Group.ts │ │ ├── Post.ts │ │ ├── Profile.ts │ │ └── User.ts │ │ ├── fixtures │ │ ├── Comment.yml │ │ ├── Group.yml │ │ ├── Post.yml │ │ ├── Profile.yml │ │ └── User.yml │ │ ├── ormconfig.yml │ │ └── processor │ │ └── UserProcessor.ts ├── mocha.opts └── unit │ ├── Builder.test.ts │ ├── Loader.test.ts │ ├── Parser.test.ts │ ├── Resolver.test.ts │ ├── assets │ ├── entity │ │ ├── Listing.ts │ │ ├── Post.ts │ │ └── User.ts │ ├── fixtures-invalid │ │ └── User.json │ ├── fixtures │ │ ├── Comment.txt │ │ ├── Post.yml │ │ ├── User.json │ │ └── User.ts │ ├── mock │ │ ├── Connection.ts │ │ ├── ListingRepository.ts │ │ ├── PostRepository.ts │ │ └── UserRepository.ts │ └── processor │ │ ├── PostProcessor.ts │ │ └── UserProcessor.ts │ ├── parsers │ ├── EjsParser.test.ts │ ├── FakerParser.test.ts │ ├── ParameterParser.test.ts │ └── ReferenceParser.test.ts │ └── util │ └── fixturesIterator.test.ts ├── tsconfig.json └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.commitlintrc.yml: -------------------------------------------------------------------------------- 1 | extends: 2 | - '@commitlint/config-conventional' -------------------------------------------------------------------------------- /.czrc: -------------------------------------------------------------------------------- 1 | { "path": "cz-conventional-changelog" } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | open_collective: typeorm-fixtures 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.github/ISSUE_TEMPLATE/custom.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.gitignore -------------------------------------------------------------------------------- /.lintstagedrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.lintstagedrc.js -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | tag-version-prefix="" 2 | message="chore(release): %s :tada:" 3 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/* 2 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.nycrc -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | package.json 2 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/README.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/_config.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/package.json -------------------------------------------------------------------------------- /src/Builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/Builder.ts -------------------------------------------------------------------------------- /src/Loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/Loader.ts -------------------------------------------------------------------------------- /src/Parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/Parser.ts -------------------------------------------------------------------------------- /src/Resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/Resolver.ts -------------------------------------------------------------------------------- /src/cli-ts-node-commonjs.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('ts-node').register(); 3 | import './cli'; 4 | -------------------------------------------------------------------------------- /src/cli-ts-node-esm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/cli-ts-node-esm.ts -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/commands/LoadCommand.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/commands/LoadCommand.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interface/IDataParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/IDataParser.ts -------------------------------------------------------------------------------- /src/interface/IEntity.ts: -------------------------------------------------------------------------------- 1 | export interface IEntity { 2 | [key: string]: any; 3 | } 4 | -------------------------------------------------------------------------------- /src/interface/IFixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/IFixture.ts -------------------------------------------------------------------------------- /src/interface/IFixturesConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/IFixturesConfig.ts -------------------------------------------------------------------------------- /src/interface/ILoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/ILoader.ts -------------------------------------------------------------------------------- /src/interface/IParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/IParser.ts -------------------------------------------------------------------------------- /src/interface/IProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/IProcessor.ts -------------------------------------------------------------------------------- /src/interface/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/interface/index.ts -------------------------------------------------------------------------------- /src/loaders/JsonLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/loaders/JsonLoader.ts -------------------------------------------------------------------------------- /src/loaders/TsLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/loaders/TsLoader.ts -------------------------------------------------------------------------------- /src/loaders/YamlLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/loaders/YamlLoader.ts -------------------------------------------------------------------------------- /src/loaders/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/loaders/index.ts -------------------------------------------------------------------------------- /src/parsers/EjsParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/parsers/EjsParser.ts -------------------------------------------------------------------------------- /src/parsers/FakerParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/parsers/FakerParser.ts -------------------------------------------------------------------------------- /src/parsers/ParameterParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/parsers/ParameterParser.ts -------------------------------------------------------------------------------- /src/parsers/ReferenceParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/parsers/ReferenceParser.ts -------------------------------------------------------------------------------- /src/parsers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/parsers/index.ts -------------------------------------------------------------------------------- /src/schema/index.ts: -------------------------------------------------------------------------------- 1 | export * from './jFixturesSchema'; 2 | -------------------------------------------------------------------------------- /src/schema/jFixturesSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/schema/jFixturesSchema.ts -------------------------------------------------------------------------------- /src/util/fixturesIterator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/src/util/fixturesIterator.ts -------------------------------------------------------------------------------- /src/util/index.ts: -------------------------------------------------------------------------------- 1 | export * from './fixturesIterator'; 2 | -------------------------------------------------------------------------------- /test/intergation/assets/docker-compose-postgres.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/docker-compose-postgres.yml -------------------------------------------------------------------------------- /test/intergation/assets/entity/Comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/entity/Comment.ts -------------------------------------------------------------------------------- /test/intergation/assets/entity/Group.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/entity/Group.ts -------------------------------------------------------------------------------- /test/intergation/assets/entity/Post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/entity/Post.ts -------------------------------------------------------------------------------- /test/intergation/assets/entity/Profile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/entity/Profile.ts -------------------------------------------------------------------------------- /test/intergation/assets/entity/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/entity/User.ts -------------------------------------------------------------------------------- /test/intergation/assets/fixtures/Comment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/fixtures/Comment.yml -------------------------------------------------------------------------------- /test/intergation/assets/fixtures/Group.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/fixtures/Group.yml -------------------------------------------------------------------------------- /test/intergation/assets/fixtures/Post.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/fixtures/Post.yml -------------------------------------------------------------------------------- /test/intergation/assets/fixtures/Profile.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/fixtures/Profile.yml -------------------------------------------------------------------------------- /test/intergation/assets/fixtures/User.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/fixtures/User.yml -------------------------------------------------------------------------------- /test/intergation/assets/ormconfig.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/ormconfig.yml -------------------------------------------------------------------------------- /test/intergation/assets/processor/UserProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/intergation/assets/processor/UserProcessor.ts -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/mocha.opts -------------------------------------------------------------------------------- /test/unit/Builder.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/Builder.test.ts -------------------------------------------------------------------------------- /test/unit/Loader.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/Loader.test.ts -------------------------------------------------------------------------------- /test/unit/Parser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/Parser.test.ts -------------------------------------------------------------------------------- /test/unit/Resolver.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/Resolver.test.ts -------------------------------------------------------------------------------- /test/unit/assets/entity/Listing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/entity/Listing.ts -------------------------------------------------------------------------------- /test/unit/assets/entity/Post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/entity/Post.ts -------------------------------------------------------------------------------- /test/unit/assets/entity/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/entity/User.ts -------------------------------------------------------------------------------- /test/unit/assets/fixtures-invalid/User.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/fixtures-invalid/User.json -------------------------------------------------------------------------------- /test/unit/assets/fixtures/Comment.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/unit/assets/fixtures/Post.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/fixtures/Post.yml -------------------------------------------------------------------------------- /test/unit/assets/fixtures/User.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/fixtures/User.json -------------------------------------------------------------------------------- /test/unit/assets/fixtures/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/fixtures/User.ts -------------------------------------------------------------------------------- /test/unit/assets/mock/Connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/mock/Connection.ts -------------------------------------------------------------------------------- /test/unit/assets/mock/ListingRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/mock/ListingRepository.ts -------------------------------------------------------------------------------- /test/unit/assets/mock/PostRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/mock/PostRepository.ts -------------------------------------------------------------------------------- /test/unit/assets/mock/UserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/mock/UserRepository.ts -------------------------------------------------------------------------------- /test/unit/assets/processor/PostProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/processor/PostProcessor.ts -------------------------------------------------------------------------------- /test/unit/assets/processor/UserProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/assets/processor/UserProcessor.ts -------------------------------------------------------------------------------- /test/unit/parsers/EjsParser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/parsers/EjsParser.test.ts -------------------------------------------------------------------------------- /test/unit/parsers/FakerParser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/parsers/FakerParser.test.ts -------------------------------------------------------------------------------- /test/unit/parsers/ParameterParser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/parsers/ParameterParser.test.ts -------------------------------------------------------------------------------- /test/unit/parsers/ReferenceParser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/parsers/ReferenceParser.test.ts -------------------------------------------------------------------------------- /test/unit/util/fixturesIterator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/test/unit/util/fixturesIterator.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinCK/typeorm-fixtures/HEAD/yarn.lock --------------------------------------------------------------------------------