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

Adding CommonJS target on lib folder #86

Merged
merged 19 commits into from
Dec 27, 2017

Conversation

Golodhros
Copy link
Collaborator

Description

Adding a commonjs version of the individual files into our lib folder
Updating the format of the esm modules

Motivation and Context

Fixes https://github.com/eventbrite/britecharts-react/issues/67
Tries to get close to solve https://github.com/eventbrite/britecharts/issues/429

How Has This Been Tested?

Ran tests, checked outputs manually

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

yarn.lock Outdated
@@ -1365,9 +1365,27 @@ braces@^1.8.2:
preserve "^0.2.0"
repeat-element "^1.1.2"

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

Merge conflicts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, good call. Fixing

Copy link
Contributor

@jchen-eb jchen-eb left a comment

Choose a reason for hiding this comment

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

This looks good for now.

We should consider looking at how recharts does it since it's much simpler and I think they get the same result we want.

https://github.com/recharts/recharts/blob/master/package.json

https://github.com/recharts/recharts/blob/master/webpack.config.js

Not sure yet if it will apply 100% to ours but it could be worth exploring.

@miglesiasEB miglesiasEB merged commit a9a3b37 into britecharts:master Dec 27, 2017
miglesiasEB pushed a commit that referenced this pull request May 31, 2019
* try cleaning up travis yml

* Bumped Project to 0.3.17

* try again

* Bumped Project to 0.3.18

* go back to manual push

* Bumped Project to 0.3.19

* bump britecharts

* Bumped Project to 0.3.20

* bump to britecharst 2.4.6

* Bumped Project to 0.3.21

* try ghpages deploy with folder setting

* Bumped Project to 0.3.22

* fix syntax

* Bumped Project to 0.3.23

* Add Line chart (#72)

* Extract fixtures from testData to its own folder (#76)

* Exctract barChart fixtures from testData

* Extract donutChart fixtures from testData

* Extract legendChart fixtures from testData, also rename to legendChart

* Extract stackedAreaChart fixtures from testData

* Fix LineComponent data proptype

* Update requires to the new fixtures in documentation files

* Upgrade to latest britecharts

* Adding CommonJS modules and updating esm configuration to use commonjs-modules

* Fixing merge conflicts in lock file
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.

Create commonjs build target
5 participants