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

Update build tools for mjml-react and release the first version #1

Merged
merged 5 commits into from
Sep 21, 2022

Conversation

harry-wang-faire
Copy link
Collaborator

No description provided.

package.json Outdated
]
}
"dependencies": {
"color": "^3.1.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a true dependency? As in it's needed by all instances of mjml-react in order to work properly in someone elses build?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it is a dependency. There is a script that relies on color import. We can clean up this in the future but let's keep it as close to the existing release as possible

Copy link
Contributor

Choose a reason for hiding this comment

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

If it's a script that isn't exported in the npm bin we can probably make it dev only

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is exported in index.js
export { render, renderToMjml, renderToJSON, renderToJSON2 };
renderToJSON is the consumer

package.json Outdated
"mjml2json": "^1.0.1",
"prop-types": "^15.8.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-reconciler": "^0.26.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is "react-reconciler" needed as a peer dependency? It looks like it used to be a dependency

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just put back to wherever it should belong in the previous version of package.json

Comment on lines +1 to +3
registry=https://registry.npmjs.org/
always-auth=true
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will need to be removed when other people start working on the project, but that can be tackled at a different time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, let's revisit this in the future

Copy link
Contributor

@IanEdington IanEdington left a comment

Choose a reason for hiding this comment

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

Looks great!

@harry-wang-faire harry-wang-faire merged commit 4ddb4ae into main Sep 21, 2022
@harry-wang-faire harry-wang-faire deleted the harry/test.v1 branch September 21, 2022 20:30
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