-
Notifications
You must be signed in to change notification settings - Fork 6
Prepare the library to be released as a npm package #47
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
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9ad56eb
Install dependencies with npm, not with Composer
manicki 6c7b8d6
Set the npm package name and copied over some data from composer.json…
manicki 5810fbe
Remove composer file
manicki bcb8ec5
Run tests on CI server (and locally with npm test)
manicki 6741a34
Use node/JS build environment on Travis CI
manicki 4ae1c45
Ignore package-lock.json
manicki 3a76728
Remove MediaWiki ResourceLoader module definitions
manicki 09e334a
Updated README
manicki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
}, | ||
"globals": { | ||
"dataValues": false, | ||
"module": false, | ||
"util": false, | ||
"wikibase": false | ||
}, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
composer.lock | ||
vendor/ | ||
node_modules/ | ||
package-lock.json | ||
|
||
.idea/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = function ( config ) { | ||
config.set( { | ||
frameworks: [ 'qunit' ], | ||
|
||
files: [ | ||
'node_modules/jquery/dist/jquery.js', | ||
|
||
// TODO: install JS dependencies using npm | ||
'node_modules/wikibase-data-values/lib/util/util.inherit.js', | ||
'node_modules/wikibase-data-values/src/dataValues.js', | ||
'node_modules/wikibase-data-values/src/DataValue.js', | ||
'node_modules/wikibase-data-values/src/values/StringValue.js', | ||
'node_modules/wikibase-data-values/src/values/UnDeserializableValue.js', | ||
'node_modules/wikibase-data-model/src/__namespace.js', | ||
'node_modules/wikibase-data-model/src/GroupableCollection.js', | ||
'node_modules/wikibase-data-model/src/Group.js', | ||
'node_modules/wikibase-data-model/src/Snak.js', | ||
'node_modules/wikibase-data-model/src/Set.js', | ||
'node_modules/wikibase-data-model/src/List.js', | ||
'node_modules/wikibase-data-model/src/*.js', | ||
|
||
'src/__namespace.js', | ||
'src/Serializers/Serializer.js', | ||
'src/Serializers/*.js', | ||
'src/SerializerFactory.js', | ||
'src/StrategyProvider.js', | ||
'src/Deserializers/Deserializer.js', | ||
'src/Deserializers/*.js', | ||
'src/DeserializerFactory.js', | ||
'tests/MockEntity.js', | ||
'tests/MockEntity.tests.js', | ||
'tests/StrategyProvider.tests.js', | ||
'tests/SerializerFactory.tests.js', | ||
'tests/Serializers/*.js', | ||
'tests/Deserializers/*.js', | ||
'tests/DeserializerFactory.tests.js' | ||
], | ||
|
||
port: 9876, | ||
|
||
logLevel: config.LOG_INFO, | ||
browsers: [ 'PhantomJS' ] | ||
} ); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,48 @@ | ||
{ | ||
"name": "wikibase-serialization", | ||
"description": "Wikibase datamodel serialization implementation in JavaScript", | ||
"license": "GPL-2.0+", | ||
"contributors": [ | ||
{ | ||
"name": "H. Snater", | ||
"url": "http://www.snater.com" | ||
}, | ||
{ | ||
"name": "Adrian Lang", | ||
"email": "adrian.lang@wikimedia.de" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wmde/WikibaseSerializationJavaScript" | ||
}, | ||
"bugs": { | ||
"url": "https://phabricator.wikimedia.org/" | ||
}, | ||
"directories": { | ||
"lib": "src", | ||
"test": "tests" | ||
}, | ||
"support": { | ||
"url": "https://phabricator.wikimedia.org/" | ||
}, | ||
"dependencies": { | ||
"jquery": "^3.2.1", | ||
"wikibase-data-model": "^4.0.0", | ||
"wikibase-data-values": "^0.10.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.19.0", | ||
"eslint-config-wikimedia": "0.4.0" | ||
"eslint-config-wikimedia": "0.4.0", | ||
"karma": "^1.7.1", | ||
"karma-cli": "^1.0.1", | ||
"karma-phantomjs-launcher": "^1.0.4", | ||
"karma-qunit": "^1.2.1", | ||
"qunit": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"eslint": "eslint ." | ||
"test": "npm run eslint && npm run run-tests", | ||
"eslint": "eslint .", | ||
"run-tests": "karma start --single-run" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.