Skip to content

Commit

Permalink
upgrade pixi.js to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoschenkel committed May 11, 2022
1 parent 233ac06 commit 36935de
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
5 changes: 3 additions & 2 deletions packages/pixi-palidor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@
},
"dependencies": {
"@robotlegsjs/core": "^3.0.0",
"@robotlegsjs/eventemitter3": "^3.0.0",
"@robotlegsjs/pixi": "^3.0.0",
"tslib": "^2.3.0"
},
"peerDependencies": {
"pixi.js": "^5.0.0",
"pixi.js": "^6.0.0",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
Expand Down Expand Up @@ -97,7 +98,7 @@
"karma-sourcemap-writer": "^0.1.2",
"karma-webpack": "^5.0.0",
"mocha": "^9.0.2",
"pixi.js": "^5.2.1",
"pixi.js": "^6.3.2",
"prettier": "^2.6.2",
"puppeteer": "^10.1.0",
"reflect-metadata": "^0.1.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
EventDispatcherExtension,
IBundle,
IContext,
InjectableLoggerExtension,
LocalEventMapExtension
InjectableLoggerExtension
} from "@robotlegsjs/core";
import { LocalEventEmitterMapExtension } from "@robotlegsjs/eventemitter3";
import {
ContextViewExtension,
ContextViewListenerConfig,
Expand All @@ -38,7 +38,7 @@ export class PalidorBundle implements IBundle {
EventDispatcherExtension,
DirectCommandMapExtension,
EventCommandMapExtension,
LocalEventMapExtension,
LocalEventEmitterMapExtension,
ContextViewExtension,
ViewManagerExtension,
StageObserverExtension,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// in accordance with the terms of the license agreement accompanying it.
// ------------------------------------------------------------------------------

import { Event, IClass, IEventDispatcher, IEventMap, inject, injectable } from "@robotlegsjs/core";
import { Event, IClass, IEventDispatcher, inject, injectable } from "@robotlegsjs/core";
import { IEventEmitterMap } from "@robotlegsjs/eventemitter3";
import { Container } from "pixi.js";
import { IContainerController } from "../api/IContainerController";
import { IFlowManager } from "../api/IFlowManager";
Expand All @@ -15,7 +16,7 @@ import { FlowViewMapping } from "./FlowViewMapping";

@injectable()
export class FlowManager implements IFlowManager {
private _eventMap: IEventMap;
private _eventMap: IEventEmitterMap;
private _controller: IContainerController;
public get controller(): IContainerController {
return this._controller;
Expand All @@ -32,7 +33,7 @@ export class FlowManager implements IFlowManager {
}

public constructor(
@inject(IEventMap) eventMap: IEventMap,
@inject(IEventEmitterMap) eventMap: IEventEmitterMap,
@inject(IContainerController) controller: IContainerController,
@inject(IEventDispatcher) eventDispatcher: IEventDispatcher
) {
Expand Down
10 changes: 7 additions & 3 deletions packages/pixi-palidor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
/* Module Resolution Options */
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
"types": ["reflect-metadata"] /* Type declaration files to be included in compilation. */,
"allowSyntheticDefaultImports": false /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
"esModuleInterop": false /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
/* Basic Config Options */
"allowJs": false /* Allow javascript files to be compiled. */,
"checkJs": false /* Report errors in .js files. */,
Expand Down Expand Up @@ -38,5 +38,9 @@
"emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */
},
"include": ["./src/**/*.ts"],
"files": ["./node_modules/@robotlegsjs/pixi/definitions/pixi.d.ts"]
"paths": {
"mini-signals": [
"node_modules/resource-loader/typings/mini-signals.d.ts" /* Loaders needs this to use the more strict mini-signal types */
]
}
}

0 comments on commit 36935de

Please sign in to comment.