Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

chore: move customProptypes to a separate package #921

Merged
merged 19 commits into from
Mar 21, 2019
Merged

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Feb 18, 2019

Addresses #433.

  • moves customPropTypes to a separate package
  • adds docs about managing packages and dependencies

@codecov
Copy link

codecov bot commented Feb 19, 2019

Codecov Report

Merging #921 into master will decrease coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
- Coverage   81.94%   81.78%   -0.17%     
==========================================
  Files         702      702              
  Lines        8580     8580              
  Branches     1245     1172      -73     
==========================================
- Hits         7031     7017      -14     
- Misses       1534     1548      +14     
  Partials       15       15
Impacted Files Coverage Δ
packages/react-proptypes/src/index.ts 37.3% <ø> (ø)
packages/react-proptypes/src/leven.ts 100% <ø> (ø)
...eact/src/lib/accessibility/FocusZone/FocusZone.tsx 86.85% <100%> (ø) ⬆️
.../src/lib/accessibility/FocusZone/AutoFocusZone.tsx 100% <100%> (ø) ⬆️
packages/react/src/lib/index.ts 100% <100%> (ø) ⬆️
packages/react/src/lib/commonPropTypes.ts 100% <100%> (ø) ⬆️
.../src/lib/accessibility/FocusZone/FocusTrapZone.tsx 78.57% <100%> (ø) ⬆️

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 fd75c31...d6f2181. Read the comment docs.

@DustyTheBot
Copy link
Collaborator

DustyTheBot commented Feb 19, 2019

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.
⚠️ New package.json added: packages/react-proptypes/package.json. Make sure you have approval before merging!
⚠️ Package (or peer) dependencies changed. Make sure you have approval before merging!

Changed dependencies in packages/react/package.json

package before after
@stardust-ui/react-proptypes - ^0.23.1

Generated by 🚫 dangerJS

.github/CONTRIBUTING.md Outdated Show resolved Hide resolved
#### Update `package.json`

After a package will be created we need to add necessary changes to a newly created `package.json`.
These changes are required to get working package publishing and internal tooling.
Copy link
Contributor

@kuzhelov kuzhelov Feb 20, 2019

Choose a reason for hiding this comment

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

nit: These changes are required to setup internal tooling and package publishing

.github/CONTRIBUTING.md Outdated Show resolved Hide resolved
@@ -4,7 +4,7 @@ import * as prettier from 'prettier'
import * as through from 'through2'
import * as Vinyl from 'vinyl'

import * as prettierConfig from '../../../.prettierrc.json'
const prettierConfig = require('../../../.prettierrc.json')
Copy link
Contributor

Choose a reason for hiding this comment

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

could you, please, suggest why this change was necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Now we have a specific tsconfig.json for react-proptypes that doesn't include /build directory, so it will fail with:

../../build/gulp/plugins/gulp-example-source.ts(7,33): error TS2732: Cannot find modu
le '../../../.prettierrc.json'. Consider using '--resolveJsonModule' to import module
 with '.json' extension

Did I miss something?

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@kuzhelov kuzhelov left a comment

Choose a reason for hiding this comment

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

again, not sure that we should make this split now, but the implementation of these changes raises no concerns to me

@layershifter
Copy link
Member Author

Marking as blocked as we decided to include these changes to a release after the next.

@layershifter layershifter merged commit 072cf2f into master Mar 21, 2019
@delete-merged-branch delete-merged-branch bot deleted the chore/proptypes branch March 21, 2019 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants