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

feat: definitions #52

Merged
merged 3 commits into from Sep 26, 2019
Merged

feat: definitions #52

merged 3 commits into from Sep 26, 2019

Conversation

vankop
Copy link
Member

@vankop vankop commented Sep 2, 2019

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

#49

Breaking Changes

No

Additional Info

Nothing

package.json Outdated Show resolved Hide resolved
@vankop
Copy link
Member Author

vankop commented Sep 2, 2019

Снимок экрана 2019-09-02 в 16 02 04

It is small and we can fix version

@alexander-akait
Copy link
Member

alexander-akait commented Sep 2, 2019

@vankop we need avoid extra deps, because this is used inside webpack, we need keep libraries as small as possible and no extra deps, maybe we can move declaration inside?

@vankop
Copy link
Member Author

vankop commented Sep 2, 2019

@vankop we need avoid extra deps, because this is used inside webpack

so... copy paste?

@alexander-akait
Copy link
Member

@vankop yep, copy/paste

@codecov
Copy link

codecov bot commented Sep 2, 2019

Codecov Report

Merging #52 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   98.51%   98.51%           
=======================================
  Files           4        4           
  Lines         472      472           
  Branches      215      215           
=======================================
  Hits          465      465           
  Misses          7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba01fe5...7574d7d. Read the comment docs.

@vankop
Copy link
Member Author

vankop commented Sep 2, 2019

I was curious to create babel plugin for extracting JSON schema definitions on build, but looks like it will be overengineering for schema-utils purposes

@vankop
Copy link
Member Author

vankop commented Sep 9, 2019

@evilebottnawi could you review this, please?

@alexander-akait
Copy link
Member

@vankop near future, some busy

ValidateError: typeof SchemaUtils.ValidateError
}

export = validate;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't add some types in devDeps?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@types/json-schema

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, I just followed your previous suggestions -( Ok i will revert this and move this to dev dependency

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vankop Sometimes I have a lot issues and lose context, sorry for that, all make mistakes 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is fine

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, ts has tool for testing definitions?

# Conflicts:
#	package.json
@vankop
Copy link
Member Author

vankop commented Sep 26, 2019

I think not since it design to create definitions from code and not vice versa.

@alexander-akait
Copy link
Member

@vankop
Copy link
Member Author

vankop commented Sep 26, 2019

I will take a look, if you think we need some tests

@alexander-akait
Copy link
Member

alexander-akait commented Sep 26, 2019

@vankop let's open new issue about this, I think everything is fine here.

@alexander-akait alexander-akait merged commit facb431 into webpack:master Sep 26, 2019
@vankop vankop deleted the definitions branch September 26, 2019 15:43
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.

None yet

2 participants