Skip to content

Commit 00ab80a

Browse files
Merge pull request #3 from RobotlegsJS/easeljs
Use EaselJS package
2 parents 8f6775e + 4a63db7 commit 00ab80a

File tree

7 files changed

+22
-43
lines changed

7 files changed

+22
-43
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@
2424

2525
- Added integration with `createjs` library (see #1).
2626

27+
- Use `easeljs` package instead of full `createjs` package (see #3).
28+
2729
- Enable `greenkeeper` (see #2).

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ RobotlegsJS CreateJS Extension
1111
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
1212

1313
Integrate [RobotlegsJS](https://github.com/RobotlegsJS/RobotlegsJS)
14-
framework with [CreateJS](https://github.com/CreateJS/Combined).
14+
framework with [CreateJS](https://createjs.com).
1515

1616
Installation
1717
---
1818

1919
You can get the latest release and the type definitions using [NPM](https://www.npmjs.com/):
2020

2121
```bash
22-
npm install @robotlegsjs/createjs
22+
npm install @robotlegsjs/createjs --save
2323
```
2424

2525
Or using [Yarn](https://yarnpkg.com/en/):
@@ -28,21 +28,21 @@ Or using [Yarn](https://yarnpkg.com/en/):
2828
yarn add @robotlegsjs/createjs
2929
```
3030

31-
The [CreateJS](https://github.com/CreateJS/Combined) dependency is added as **peerDependencies**,
32-
allowing the final user to choose the desired version of the `createjs` library on each project.
31+
The [EaselJS](https://github.com/CreateJS/EaselJS) dependency is added as **peerDependencies**,
32+
allowing the final user to choose the desired version of the [easeljs](https://www.npmjs.com/package/easeljs) library on each project.
3333

34-
The `@robotlegsjs/createjs` package is compatible with versions between the `>=1.0.1 <2` version range of `createjs` library.
34+
The `@robotlegsjs/createjs` package is compatible with versions between the `>=1.0.2 <2` version range of `easeljs` library.
3535

36-
As example, when you would like to use the version `1.0.1` of `createjs` library, you can run:
36+
As example, when you would like to use the version `1.0.2` of `easeljs` library, you can run:
3737

3838
```bash
39-
npm install createjs@1.0.1 reflect-metadata --save
39+
npm install easeljs@1.0.2 reflect-metadata --save
4040
```
4141

4242
or
4343

4444
```bash
45-
yarn add createjs@1.0.1 reflect-metadata --save
45+
yarn add easeljs@1.0.2 reflect-metadata
4646
```
4747

4848
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.
@@ -54,7 +54,7 @@ Then follow the [installation instructions](https://github.com/RobotlegsJS/Robot
5454

5555
**Peer Dependencies**
5656

57-
+ [CreateJS](https://github.com/CreateJS/Combined)
57+
+ [EaselJS](https://github.com/CreateJS/EaselJS)
5858
+ [reflect-metadata](https://github.com/rbuckton/reflect-metadata)
5959

6060
Usage

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = config => {
1818
files: [
1919
{ pattern: "node_modules/reflect-metadata/Reflect.js", include: true },
2020
{ pattern: "node_modules/bluebird/js/browser/bluebird.js", include: true },
21-
{ pattern: "node_modules/createjs/builds/1.0.0/createjs.js", include: true },
21+
{ pattern: "node_modules/easeljs/lib/easeljs.js", include: true },
2222
{ pattern: "./test/**/**/**.test.ts", include: true },
2323
{ pattern: '**/*.map', served: true, included: false, watched: true }
2424
],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@
5353
"tslib": "^1.9.3"
5454
},
5555
"peerDependencies": {
56-
"createjs": "^1.0.1",
56+
"easeljs": "^1.0.2",
5757
"reflect-metadata": "^0.1.12"
5858
},
5959
"devDependencies": {
6060
"@types/bluebird": "^3.5.23",
6161
"@types/chai": "^4.1.4",
62-
"@types/createjs": "^0.0.29",
62+
"@types/easeljs": "^1.0.0",
6363
"@types/mocha": "^5.2.5",
6464
"@types/sinon": "^5.0.1",
6565
"bluebird": "^3.5.1",
6666
"browserify-versionify": "^1.0.6",
6767
"chai": "^4.1.2",
68-
"createjs": "^1.0.1",
68+
"easeljs": "^1.0.2",
6969
"es6-map": "^0.1.5",
7070
"es6-symbol": "^3.1.1",
7171
"glslify": "^6.2.1",

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<body>
2828
<header class="CreateJS">
2929
<h1>integration with <a target="_blank" href="https://createjs.com/">CreateJS</a></h1>
30-
<p>This example shows how to integrate <code>RobotlegsJS</code> framework with <code>CreateJS</code>. Click on the logo to see some action!</p>
30+
<p>This example shows how to integrate <code>RobotlegsJS</code> framework with <code>EaselJS</code>. Click on the logo to see some action!</p>
3131
</header>
3232

3333
<canvas id="canvas" width="960" height="400"></canvas>

webpack.example.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = options => {
4242
}),
4343

4444
new ConcatPlugin(concatPluginConfigGenerator("createjs", [
45-
path.resolve(__dirname, "./node_modules/createjs/builds/1.0.0/createjs.js")
45+
path.resolve(__dirname, "./node_modules/easeljs/lib/easeljs.js")
4646
])),
4747
],
4848

yarn.lock

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,7 @@
4444
version "0.0.29"
4545
resolved "https://registry.npmjs.org/@types/createjs-lib/-/createjs-lib-0.0.29.tgz#fae82e3ba8606663b190e789cec7d9c728fc41d7"
4646

47-
"@types/createjs@^0.0.29":
48-
version "0.0.29"
49-
resolved "https://registry.npmjs.org/@types/createjs/-/createjs-0.0.29.tgz#4d19b0feaa38252dcd79d78a38a4cc6df3f181fc"
50-
dependencies:
51-
"@types/createjs-lib" "*"
52-
"@types/easeljs" "*"
53-
"@types/preloadjs" "*"
54-
"@types/soundjs" "*"
55-
"@types/tweenjs" "*"
56-
57-
"@types/easeljs@*":
47+
"@types/easeljs@^1.0.0":
5848
version "1.0.0"
5949
resolved "https://registry.npmjs.org/@types/easeljs/-/easeljs-1.0.0.tgz#b339ca0a8d0148819831b0140254d697fd46d974"
6050
dependencies:
@@ -65,23 +55,10 @@
6555
version "5.2.5"
6656
resolved "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.5.tgz#8a4accfc403c124a0bafe8a9fc61a05ec1032073"
6757

68-
"@types/preloadjs@*":
69-
version "0.6.32"
70-
resolved "https://registry.npmjs.org/@types/preloadjs/-/preloadjs-0.6.32.tgz#12cff7c7f92e3838a780d438ce49c8cec981830d"
71-
dependencies:
72-
"@types/createjs-lib" "*"
73-
7458
"@types/sinon@^5.0.1":
7559
version "5.0.1"
7660
resolved "https://registry.npmjs.org/@types/sinon/-/sinon-5.0.1.tgz#a15b36ec42f1f53166617491feabd1734cb03e21"
7761

78-
"@types/soundjs@*":
79-
version "0.6.27"
80-
resolved "https://registry.npmjs.org/@types/soundjs/-/soundjs-0.6.27.tgz#dd2370350eaf7277de5ed55940e3e7d2a016b124"
81-
dependencies:
82-
"@types/createjs-lib" "*"
83-
"@types/preloadjs" "*"
84-
8562
"@types/tweenjs@*":
8663
version "1.0.0"
8764
resolved "https://registry.npmjs.org/@types/tweenjs/-/tweenjs-1.0.0.tgz#a27b9e6abe27bac19ebbdb7de1d98c31ac40c064"
@@ -1493,10 +1470,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
14931470
safe-buffer "^5.0.1"
14941471
sha.js "^2.4.8"
14951472

1496-
createjs@^1.0.1:
1497-
version "1.0.1"
1498-
resolved "https://registry.npmjs.org/createjs/-/createjs-1.0.1.tgz#163e8ba35814f62c8033cd9628033f190dfdaa9f"
1499-
15001473
cross-spawn-async@^2.1.6:
15011474
version "2.2.5"
15021475
resolved "https://registry.npmjs.org/cross-spawn-async/-/cross-spawn-async-2.2.5.tgz#845ff0c0834a3ded9d160daca6d390906bb288cc"
@@ -1876,6 +1849,10 @@ duplexify@^3.4.2, duplexify@^3.4.5, duplexify@^3.6.0:
18761849
readable-stream "^2.0.0"
18771850
stream-shift "^1.0.0"
18781851

1852+
easeljs@^1.0.2:
1853+
version "1.0.2"
1854+
resolved "https://registry.npmjs.org/easeljs/-/easeljs-1.0.2.tgz#68fdcc69d0f217394e2ebf51ae047428a81240de"
1855+
18791856
ecc-jsbn@~0.1.1:
18801857
version "0.1.2"
18811858
resolved "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"

0 commit comments

Comments
 (0)