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

Prepare the library to be released as a npm package #47

Merged
merged 8 commits into from
Oct 10, 2017
Merged

Prepare the library to be released as a npm package #47

merged 8 commits into from
Oct 10, 2017

Conversation

manicki
Copy link
Member

@manicki manicki commented Oct 6, 2017

Requires releases of dependency libraries as npm packages (see: wmde/DataValuesJavaScript#129 and wmde/WikibaseDataModelJavaScript#82).

Includes a commit running Qunit tests using npm test initially submitted as #45.

@manicki manicki changed the title [DNM] Prepare the library to be released as a npm package Prepare the library to be released as a npm package Oct 9, 2017
@manicki manicki mentioned this pull request Oct 10, 2017
Copy link
Contributor

@thiemowmde thiemowmde left a comment

Choose a reason for hiding this comment

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

Looks good, but I do have a few minor questions and suggestions.

"irc": "irc://irc.freenode.net/wikidata"
},
"require": {
"data-values/javascript": "~0.8.0|~0.7.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Uh, we never made it compatible with DataValues JavaScript 0.9?

@@ -1,13 +1,48 @@
{
"name": "wikibase-serialization",
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, tab-indention should be the norm for .json files. But this is for later.

@@ -1,4 +1,5 @@
/**
* @ignore
*/
window.wikibase = window.wikibase || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this use window., but the line below does not? In my opinion this a) should be consistent, and b) avoid window. when not really necessary (e.g. certain headless JS engines might need it).

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 was needed in this line exactly to have phantom js understand where wikibase object is defined.
It was not apparently needed elsewhere. The whole weirdness is probably going to be irrelevant once this lib uses some proper way of registering its stuff (module.exports or whatever you do in JS this month).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, thanks!

@manicki manicki merged commit bffcc27 into master Oct 10, 2017
@manicki manicki deleted the npm branch October 10, 2017 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants