Skip to content

Commit 39ab12e

Browse files
author
AleBles
committed
First beta
1 parent 5f1794c commit 39ab12e

16 files changed

+70
-693
lines changed

build/phaser-super-storage.min.js

Lines changed: 8 additions & 664 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-super-storage.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/ts/StorageAdapters/CookieStorage.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import IStorage from './IStorage';
2+
import { Promise } from 'es6-promise';
23
/**
34
* Storage driver for cookies
45
*/

build/ts/StorageAdapters/CordovaStorage.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import IStorage from './IStorage';
2+
import { Promise } from 'es6-promise';
23
/**
34
* Storage driver for browser's localStorage
45
*/

build/ts/StorageAdapters/IframeStorage.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import IStorage from './IStorage';
2+
import { Promise } from 'es6-promise';
23
/**
34
* Storage driver for browser's localStorage
45
*/

build/ts/StorageAdapters/LocalStorage.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import IStorage from './IStorage';
2+
import { Promise } from 'es6-promise';
23
/**
34
* Storage driver for browser's localStorage
45
*/

build/ts/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export { default as IStorage } from './StorageAdapters/IStorage';
77
export default class PhaserSuperStorage {
88
private storage;
99
private scene;
10+
private static nameSpace;
1011
constructor(scene?: Phaser.Scene);
1112
static register(manager: any): void;
1213
private boot();

config/webpack.dist.config.js

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,29 @@ module.exports = function (env) {
3939
root: basePath
4040
}
4141
),
42-
//new DeclarationBundlerPlugin({
43-
// moduleName:'PhaserSuperStorage',
44-
// out: path.join(basePath, 'build', config.config.name + '.min.js'),
45-
//}),
46-
new ForkTsCheckerNotifierWebpackPlugin({alwaysNotify: true}),
47-
new ForkTsCheckerWebpackPlugin({
48-
checkSyntacticErrors: true,
49-
tslint: path.join(basePath, 'tslint.json'),
50-
tsconfig: path.join(basePath, 'tsconfig.json')
51-
}
52-
),
53-
//new webpack.optimize.UglifyJsPlugin({
54-
// exclude: /\/node_modules/,
55-
// compress: {
56-
// sequences: true,
57-
// dead_code: true,
58-
// conditionals: true,
59-
// booleans: true,
60-
// unused: true,
61-
// if_return: true,
62-
// join_vars: true,
63-
// drop_console: true,
64-
// },
65-
// mangle: false,
66-
// sourceMap: true
42+
//new ForkTsCheckerNotifierWebpackPlugin({alwaysNotify: true}),
43+
//new ForkTsCheckerWebpackPlugin({
44+
// checkSyntacticErrors: true,
45+
// tslint: path.join(basePath, 'tslint.json'),
46+
// tsconfig: path.join(basePath, 'tsconfig.json')
6747
// }
6848
//),
49+
new webpack.optimize.UglifyJsPlugin({
50+
exclude: /\/node_modules/,
51+
compress: {
52+
sequences: true,
53+
dead_code: true,
54+
conditionals: true,
55+
booleans: true,
56+
unused: true,
57+
if_return: true,
58+
join_vars: true,
59+
drop_console: true,
60+
},
61+
mangle: false,
62+
sourceMap: true
63+
}
64+
),
6965
]
7066
);
7167
return myDevConfig;

package-lock.json

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@orange-games/phaser-super-storage",
33
"author": "OrangeGames",
4-
"version": "2.0.0-alpha.11",
4+
"version": "2.0.0-beta.1",
55
"description": "A cross platform storage plugin for Phaser",
66
"contributors": [
77
{
@@ -34,6 +34,7 @@
3434
"main": "./build/phaser-super-storage.min.js",
3535
"types": "./build/ts/index.d.ts",
3636
"devDependencies": {
37+
"@types/es6-promise": "^3.3.0",
3738
"@types/webfontloader": "^1.6.29",
3839
"browser-sync": "^2.23.6",
3940
"browser-sync-webpack-plugin": "^1.2.0",

0 commit comments

Comments
 (0)