Skip to content

Prepare the library for relasing as a npm package #126

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
merged 10 commits into from
Oct 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
*~
*.kate-swp

composer.phar
composer.lock

package-lock.json

!.*
.idea/

Expand Down
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
language: php
language: node_js

php:
- 5.5
node_js:
- 4
- 5
- 6
- 7
- 8

before_script:
- nvm install 4
- npm install
- composer install

script:
- npm test
- composer test

notifications:
irc:
Expand All @@ -21,6 +22,3 @@ notifications:
template:
- "%{repository}/%{branch}/%{commit} : %{author} %{message} %{build_url}"

cache:
directories:
- $HOME/.composer/cache
40 changes: 0 additions & 40 deletions DataValuesJavaScript.php

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ It contains various JavaScript related to the DataValues library.

[![Build Status](https://secure.travis-ci.org/wmde/DataValuesJavaScript.png?branch=master)](http://travis-ci.org/wmde/DataValuesJavaScript)

On [Packagist](https://packagist.org/packages/data-values/javascript):
[![Latest Stable Version](https://poser.pugx.org/data-values/javascript/version.png)](https://packagist.org/packages/data-values/javascript)
[![Download count](https://poser.pugx.org/data-values/javascript/d/total.png)](https://packagist.org/packages/data-values/javascript)

## Release notes

### 1.0.0 (dev)
* The library is now a pure JavaScript library.
* Removed MediaWiki ResourceLoader module definitions.

### 0.9.0 (2017-09-06)
* Removed `valueFormatters.ValueFormatterStore`.
* Removed the `options` constructor parameter as well as the `getOptions` method from
Expand Down
45 changes: 0 additions & 45 deletions composer.json

This file was deleted.

25 changes: 24 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
{
"name": "DataValuesJavaScript",
"name": "wikibase-data-values",
"description": "DataValues implementation in JavaScript",
"keywords": [
"datavalues",
"wikidata"
],
"repository": {
"type": "git",
"url": "https://github.com/wmde/DataValuesJavaScript"
},
"contributors": [
{
"name": "Daniel Werner",
"url": "https://www.mediawiki.org/wiki/User:Danwe"
},
{
"name": "H. Snater",
"url": "http://www.snater.com"
},
{
"name": "Jeroen De Dauw",
"email": "jeroendedauw@gmail.com",
"homepage": "http://jeroendedauw.com"
}
],
"bugs": {
"url": "https://phabricator.wikimedia.org/"
},
"license": "GPL-2.0+",
"dependencies": {
"jquery": "^3.2.1"
Expand Down
6 changes: 0 additions & 6 deletions phpcs.xml

This file was deleted.

78 changes: 0 additions & 78 deletions src/resources.php

This file was deleted.

46 changes: 0 additions & 46 deletions src/valueFormatters/resources.php

This file was deleted.

59 changes: 0 additions & 59 deletions src/valueParsers/resources.php

This file was deleted.