Skip to content

Commit

Permalink
Merge pull request #9 from proyecto26/hotfix/remove-phaser-bundle
Browse files Browse the repository at this point in the history
Remove Phaser from bundle
  • Loading branch information
jdnichollsc authored Nov 27, 2019
2 parents 6a096fe + cb51401 commit e33305c
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ion-phaser/core",
"version": "1.2.1",
"version": "1.2.2",
"private": false,
"description": "A web component to integrate Phaser Framework with Angular, React, Vue, etc",
"keywords": [
Expand Down
5 changes: 0 additions & 5 deletions src/components/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/ion-phaser/ion-phaser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class IonPhaser {
}

game.parent = game.parent || this.el
game.instance = new Game(game)
game.instance = new Phaser.Game(game)
}

componentWillLoad() {
Expand Down
4 changes: 1 addition & 3 deletions src/components/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Game, Types } from 'phaser'

type ObjectAlias = Object;

export interface GameInstance extends Types.Core.GameConfig, ObjectAlias {
export interface GameInstance extends Types.Core.GameConfig {
instance: Game
}
Empty file added src/global/global.ts
Empty file.
File renamed without changes.
1 change: 1 addition & 0 deletions stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Config } from '@stencil/core';

export const config: Config = {
namespace: 'ionphaser',
globalScript: 'src/global/global.ts',
commonjs: {
namedExports: {
'phaser': ['Game', 'Types']
Expand Down

0 comments on commit e33305c

Please sign in to comment.