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

[WIP] Making UpSet an npm module #227

Merged
merged 1 commit into from
Apr 8, 2016
Merged

Conversation

jeffbaumes
Copy link
Contributor

This does several small things to make UpSet close to a reusable module.

  • Creates package.json
  • Sets up a simple webpack build that does nearly the same as concatenating the files
  • Changes CSS rules to not affect all of <body> with font
  • Adds an optional datasets parameter to UpSet initialization that will enable dynamic or inlined data.

To do:

  • Include an HTML template in the library and a function to fill a div with it
  • Testing, sanity checking, documentation
  • Make updateQueryParameters an option so if embedded in another app it does not modify the window URL location (currently this logic is commented out)

Note: It seems "upset" is not taken on npm so it could be placed there.

@alexsb
Copy link
Member

alexsb commented Apr 8, 2016

Thanks Jeff, this is great! I'll test it over the weekend and merge then!

@jeffbaumes
Copy link
Contributor Author

Thanks! Note that your nice permalinking routing is disabled on this PR. I'm ok if you put those back in (a few commented lines that call updateQueryParameters). I can probably make this a true option sometime next week.

@alexsb alexsb merged commit 33e1c41 into VCG:master Apr 8, 2016
@alexsb
Copy link
Member

alexsb commented Apr 8, 2016

I merged this - the queryParameters implementation is unfortunately rather buggy anyways, so we're not missing a ton here.

@jeffbaumes
Copy link
Contributor Author

Thanks @alexsb!

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.

2 participants