Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add proper files, rearrange dependencies and package.json files #50

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

omermorad
Copy link
Owner

No description provided.

@omermorad omermorad merged commit b3a5763 into refactor/turn-into-monorepo Jul 16, 2021
@omermorad omermorad deleted the chore/rearrange-and-deps branch July 16, 2021 16:39
@omermorad omermorad restored the chore/rearrange-and-deps branch July 16, 2021 16:49
omermorad added a commit that referenced this pull request Jul 17, 2021
…51)

* refactor(mock-factory): change the return type of mock factory (#40)

* refactor(mock-factory): change the return type of mock factory

MockFactory will now return an instance of the class and not a plain object

BREAKING CHANGE: MockFactory is now an instance (TClass) and not ClassLiteral<TClass>

* chore: fix typo in the test name

* chore: change methods order

* chore: added source map and some jest configs

* refactor: change some var names and error

* test(class-processor): refactor test turning into integration instead of unit

* chore(lib): move files into lib folder and change imports

* feat(fluent-api): add fluent api (builder) functionality and persistence

Add fluent API to enable methods chaining with ability to persist the mock

BREAKING CHANGE: MockFactory is now a function and not a class, changed the original to
MockGenerator. Add fluent API and ability to persist mock data

closes #42, closes #37

* refactor: change mock names, remove test from tsconfig.json

* refactor: temp change to another class type

* fix: fix broken generic type in mock generator

* test: update integration snapshot and fix path issues

* chore: remove redundant example

* chore(mockingbird): refactor the structure of the project to be monorepo

* chore: fix settings of jest and monorepo

* ci: fix pipeline to work with yarn and lerna

* chore: remove redundant example file

* refactor: split into logical packages (#46)

* chore: monorepo settings and preparation

* refactor: split into logic packages, this is just the first suggested structure

* refactor: rearrange packages - fix broken tests and change names  (#47)

* chore: monorepo settings and preparation

* refactor: split into logic packages, this is just the first suggested structure

* refactor(mockingbird-ts): change processor to parser

* chore(mockingbird-ts): rearrange import style

* refactor(mockingbird-ts): import mock decorator from package

* refactor(mockingbird-ts): change processor to parser

* test(mockingbird-ts): fix and improve array value handler

* refactor(mockingbird-ts): change processor to parser

* chore(mockingbird-ts): rearrange import style

* refactor(mockingbird-ts): import mock decorator from package

* refactor(mockingbird-ts): change processor to parser

* test(mockingbird-ts): fix and improve array value handler

* chore(types): fix exit code

* fix: broken generator (#49)

* chore(types): fix lint typo

* test(mockingbird-ts): fix mock generator broken test

* refactor(parser): remove locale option

* refactor(mockingbird-ts): change names to parser and add locale option

* chore(types): fix lint typo

* test(parser): change file name and faker instance

* chore: add proper files, rearrange dependencies and package.json files (#50)

* chore(mockingbird-ts): update dependencies

* ci(repo): fix commit lint step

* ci(repo): fix commit lint step

* ci(repo): fix broken coverage step

* chore(mockingbird-ts): fix dependencies

* chore(repo): testing linting tactics (#52)

* chore(repo): change jest testing tactic to fully work with monorepo

* chore(mockingbird-ts): remove locale todo

* chore(repo): add root to eslint

* ci(repo): fix step lint in pipeline

* chore(repo): fix test:cov step

* chore(repo): fix test:cov step

* chore(repo): fix test:cov step

* chore(repo): add coverage to ignore

* chore(repo): modify lerna settings

* chore(version): publish

 - @mockinbird/parser@1.0.1-alpha.0
 - @mockinbird/reflect@1.0.1-alpha.0
 - @mockinbird/types@1.0.1-alpha.0

* chore(repo): modify lerna settings

* chore(mockingbird-ts): add test root to jest config

* refactor(mockingbird-ts): change back the name to factory and not generator

* chore(repo): re-version mockingbird-ts and rearrange changelog files

* ci(repo): add release branch to checks, fix release.yml and remove publishing
@omermorad omermorad deleted the chore/rearrange-and-deps branch July 17, 2021 15:07
omermorad added a commit that referenced this pull request Jul 31, 2021
* chore: turn into monorepo architecture and change return to instance (#51)

* refactor(mock-factory): change the return type of mock factory (#40)

* refactor(mock-factory): change the return type of mock factory

MockFactory will now return an instance of the class and not a plain object

BREAKING CHANGE: MockFactory is now an instance (TClass) and not ClassLiteral<TClass>

* chore: fix typo in the test name

* chore: change methods order

* chore: added source map and some jest configs

* refactor: change some var names and error

* test(class-processor): refactor test turning into integration instead of unit

* chore(lib): move files into lib folder and change imports

* feat(fluent-api): add fluent api (builder) functionality and persistence

Add fluent API to enable methods chaining with ability to persist the mock

BREAKING CHANGE: MockFactory is now a function and not a class, changed the original to
MockGenerator. Add fluent API and ability to persist mock data

closes #42, closes #37

* refactor: change mock names, remove test from tsconfig.json

* refactor: temp change to another class type

* fix: fix broken generic type in mock generator

* test: update integration snapshot and fix path issues

* chore: remove redundant example

* chore(mockingbird): refactor the structure of the project to be monorepo

* chore: fix settings of jest and monorepo

* ci: fix pipeline to work with yarn and lerna

* chore: remove redundant example file

* refactor: split into logical packages (#46)

* chore: monorepo settings and preparation

* refactor: split into logic packages, this is just the first suggested structure

* refactor: rearrange packages - fix broken tests and change names  (#47)

* chore: monorepo settings and preparation

* refactor: split into logic packages, this is just the first suggested structure

* refactor(mockingbird-ts): change processor to parser

* chore(mockingbird-ts): rearrange import style

* refactor(mockingbird-ts): import mock decorator from package

* refactor(mockingbird-ts): change processor to parser

* test(mockingbird-ts): fix and improve array value handler

* refactor(mockingbird-ts): change processor to parser

* chore(mockingbird-ts): rearrange import style

* refactor(mockingbird-ts): import mock decorator from package

* refactor(mockingbird-ts): change processor to parser

* test(mockingbird-ts): fix and improve array value handler

* chore(types): fix exit code

* fix: broken generator (#49)

* chore(types): fix lint typo

* test(mockingbird-ts): fix mock generator broken test

* refactor(parser): remove locale option

* refactor(mockingbird-ts): change names to parser and add locale option

* chore(types): fix lint typo

* test(parser): change file name and faker instance

* chore: add proper files, rearrange dependencies and package.json files (#50)

* chore(mockingbird-ts): update dependencies

* ci(repo): fix commit lint step

* ci(repo): fix commit lint step

* ci(repo): fix broken coverage step

* chore(mockingbird-ts): fix dependencies

* chore(repo): testing linting tactics (#52)

* chore(repo): change jest testing tactic to fully work with monorepo

* chore(mockingbird-ts): remove locale todo

* chore(repo): add root to eslint

* ci(repo): fix step lint in pipeline

* chore(repo): fix test:cov step

* chore(repo): fix test:cov step

* chore(repo): fix test:cov step

* chore(repo): add coverage to ignore

* chore(repo): modify lerna settings

* chore(version): publish

 - @mockinbird/parser@1.0.1-alpha.0
 - @mockinbird/reflect@1.0.1-alpha.0
 - @mockinbird/types@1.0.1-alpha.0

* chore(repo): modify lerna settings

* chore(mockingbird-ts): add test root to jest config

* refactor(mockingbird-ts): change back the name to factory and not generator

* chore(repo): re-version mockingbird-ts and rearrange changelog files

* ci(repo): add release branch to checks, fix release.yml and remove publishing

* refactor(mockingbird-ts): change the name of mock factory to be mock generator (#54)

change MockFactory name to be MockGenerator

BREAKING CHANGE: MockFactory changed to be MockGenerator

re #42

* refactor(mockingbird-ts): arrange classes - change mock-factory to mock-generator (#55)

* refactor(mockingbird-ts): change the name of mock factory to be mock generator

change MockFactory name to be MockGenerator

BREAKING CHANGE: MockFactory changed to be MockGenerator

re #42

* chore(repo): update tsconfig build config

* refactor(types): change 'class' to 'type' with new definition

* refactor(reflect): change 'class' type to 'type' type

* refactor(parser): change 'class' type to 'type'

* refactor(mockingbird-ts): generator now has state and di, remove static method 'create'

* test(mockingbird-ts): add unit test for mock generator

* test(mockingbird-ts): add unit test for mock generator

* refactor(parser): add option to set locale and change static class member (state instead)

* test(mockingbird-ts): remove test of circular mock

* refactor(parser): change faker methods (that were deprecated) to new version (#56)

* test: add some more test cases (and increase code coverage) (#57)

* test(parser): check and spy on faker functions

* test(parser): improve array-value-handler test cases

* test(reflect): add missing test case (branch)

* test(reflect): add missing test for property decorator value

* chore(parser): change method name

* refactor: change generics type, remove 'type' type and add 'class' type (#58)

* refactor(types): remove type 'type' and add 'class' type instead

* refactor(mockingbird-ts): replace 'type' type with 'class' and cancel class generic

* refactor(reflect): change 'type' type to 'class' type genetics

* refactor(parser): remove 'type' type add 'class' instead, change generics types

* chore(release): release packages

 - mockingbird-ts@2.0.0
 - @mockinbird/parser@2.0.0
 - @mockinbird/reflect@2.0.0
 - @mockinbird/types@2.0.0

* revert(repo): release packages

This reverts commit 93d53e4

* chore(repo): change entry points in package.json files and change tsconfig settings (#59)

* feat(mockingbird-ts): add mock factory fluent/builder api (#60)

* fix(types): change faker-static to faker in callback type

* feat(mockingbird-ts): add new mock factory with builder - creating fluent api

* test(mockingbird-ts): add missing test for mock builder

* test(mockingbird-ts): add e2e test for mock factory

* test(mockingbird-ts): mock generator test is now imported from main lib

* refactor(mockingbird-ts): mock generator is no longer exported, using mock factory instead

MockGenerator is not exported anymore and the entry point is now MockFactory with builder API

BREAKING CHANGE: MockGenerator is not exported anymore, use MockFactory instead

closes #42

* ci(repo): add lerna command to publish with temp alpha dist tag

* chore(repo): version packages and add changelogs

* fix(types): add build to export a js file to include the faker instance (for runtime) (#61)

* build(repo): fix tsconfig settings and build strategy

* fix(types): add build to export a js file to include the faker instance (for runtime)

* chore(repo): add coverage settings to jest config files and exclude some files from tsconfig

* chore(repo): add publish access config in package.json for all packages

* chore(release): release packages

 - mockingbird-ts@2.0.0-alpha.1
 - @mockinbird/parser@1.0.1-alpha.2
 - @mockinbird/reflect@1.0.1-alpha.2
 - @mockinbird/types@2.0.0-alpha.1

* chore(repo): add lerna commit message for version command

* docs(repo): update readme and the api docs [skip ci]

* fix(types): change the values inside 'files' array in package.json

* chore(repo): version packages

 - mockingbird-ts@2.0.0-alpha.2
 - @mockinbird/parser@1.0.1-alpha.3
 - @mockinbird/reflect@1.0.1-alpha.3
 - @mockinbird/types@2.0.0-alpha.2

* chore(repo): update docs and sample (#62)

[skip ci]

* feat(mockingbird-ts,parser): add ability to pass an object for extra configuartion (#64)

* feat(types): add class-keys type

* feat(parser): add rich api for overriding and ignoring properties

Add new rich API that enables to override or ignore some properties

closes #63

* refactor(parser): add 'parse' method overloads

* feat(mockingbird-ts): modify generator and builder to work with the new parser (unit tested)

* test(parser): add cases and fix parser test to add callback fn for overrides

* test(mockingbird-ts): add more cases to mock generator integration test

* chore(repo): add lint-staged in git hooks pre-commit

* refactor(types): remove class keys type

* chore(mockingbird-ts): fix lint typo

* chore(mockingbird-ts): remove redundant unrelated code

* chore(repo): add codecov.yml file (#67)

Add new settings for codecov and coverage threshold

* chore(repo): update codecov settings

Add codecov patch default target

* feat(mockingbird-ts): extend builder abilities  (#68)

* chore(repo): remove default options for coverage, add it to test command

* chore(repo): add jest gherkin and refactor some jest settings

* feat(mockingbird-ts): add some more functionality for builder, split into private folder

* chore(repo): add source maps to build

* docs(mockingbird-ts): rewrite some text in readme file

* chore(mockingbird-ts): move generator into dedicated folder

* chore(repo): add jest-gherkin + add to jest config

* test(mockingbird-ts): add some more cases to builder

* ci(repo): refactor some workflow functions

* test(mockingbird-ts): change test commands to gherkin

* refactor(mockingbird-ts): change some methods name and fix tests + add some types

* refactor(types): change class keys type remove faker

* refactor(parser): change override types

* refactor(parser): fix class-parser test after removing faker option when override

* refactor(mockingbird-ts): change the builder api and change the types related to it

* ci(repo): remove release from master

Remove release from master branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant