Skip to content

Commit

Permalink
Merge pull request #2 from RobotlegsJS/peer-dependencies
Browse files Browse the repository at this point in the history
Move phaser-ce library to peerDependencies
  • Loading branch information
tiagoschenkel authored Aug 4, 2018
2 parents 717ad16 + dc1aa78 commit 1da1917
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Major Breaking Changes:

- Rename package to `@robotlegsjs/phaser-ce-signalcommandmap` and move to [RobotlegsJS-Phaser-CE-SignalCommandMap](https://github.com/RobotlegsJS/RobotlegsJS-Phaser-CE-SignalCommandMap) (see #1).

- Move `phaser-ce` library to **peerDependencies**, allowing the final user to choose the desired version of the `phaser-ce` library on each project (see #3).

- Update `@robotlegsjs/core` to version `0.2.0` (see [44](https://github.com/RobotlegsJS/RobotlegsJS-Phaser-SignalCommandMap/pull/44)).

Features Or Improvements:
Expand Down
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,35 @@ Or using [Yarn](https://yarnpkg.com/en/):
yarn add @robotlegsjs/phaser-ce-signalcommandmap
```

From version `0.2.0` of this package, the [Phaser-CE](https://github.com/photonstorm/phaser-ce) dependency was moved to **peerDependencies**,
allowing the final user to choose the desired version of the `phaser-ce` library on each project.

The `@robotlegsjs/phaser-ce-signalcommandmap` package is compatible with versions between the `>=2.8.1 <3` version range of `phaser-ce` library.

As example, when you would like to use the version `2.8.1` of `phaser-ce` library, you can run:

```bash
npm install [email protected] reflect-metadata --save-prod
```

or

```bash
yarn add [email protected] reflect-metadata
```

Then follow the [installation instructions](https://github.com/RobotlegsJS/RobotlegsJS/blob/master/README.md#installation) of **RobotlegsJS** library to complete the setup of your project.

**Dependencies**

+ [RobotlegsJS](https://github.com/RobotlegsJS/RobotlegsJS)
+ [tslib](https://github.com/Microsoft/tslib)

**Peer Dependencies**

+ [Phaser-CE](https://github.com/photonstorm/phaser-ce)
+ [reflect-metadata](https://github.com/rbuckton/reflect-metadata)

License
---

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@
"homepage": "https://github.com/RobotlegsJS/RobotlegsJS-Phaser-CE-SignalCommandMap#readme",
"dependencies": {
"@robotlegsjs/core": "^0.2.0",
"phaser-ce": "^2.11.0",
"tslib": "^1.9.3"
},
"peerDependencies": {
"phaser-ce": "^2.8.1",
"reflect-metadata": "^0.1.12"
},
"devDependencies": {
"@types/bluebird": "^3.5.23",
"@types/chai": "^4.1.4",
Expand Down Expand Up @@ -80,6 +83,7 @@
"karma-sourcemap-writer": "^0.1.2",
"karma-webpack": "^3.0.0",
"mocha": "^5.2.0",
"phaser-ce": "^2.11.0",
"prettier": "^1.14.0",
"publish-please": "^3.2.0",
"reflect-metadata": "^0.1.12",
Expand All @@ -95,8 +99,5 @@
"webpack": "^4.16.4",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5"
},
"peerDependencies": {
"reflect-metadata": "^0.1.12"
}
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1248,8 +1248,8 @@ [email protected]:
resolved "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"

commander@^2.12.1, commander@^2.15.1, commander@^2.9.0:
version "2.16.0"
resolved "https://registry.npmjs.org/commander/-/commander-2.16.0.tgz#f16390593996ceb4f3eeb020b31d78528f7f8a50"
version "2.17.0"
resolved "https://registry.npmjs.org/commander/-/commander-2.17.0.tgz#9d07b25e2a6f198b76d8b756a0e8a9604a6a1a60"

commander@~2.13.0:
version "2.13.0"
Expand Down

0 comments on commit 1da1917

Please sign in to comment.