Skip to content

Commit 87728f4

Browse files
committed
polish package.json and update README
1 parent ee09354 commit 87728f4

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ Installation
99

1010
Then import and instantiante the debug plugin in your project. For example:
1111
```JavaScript
12-
import { utils, plugin } from 'melonjs';
13-
// initialize the debug plugin in development mode.
14-
if (typeof process !== "undefined" && process.env.NODE_ENV === 'development') {
15-
import("@melonjs/debug-plugin").then((debugPlugin) => {
16-
// automatically register the debug panel
17-
utils.function.defer(plugin.register, this, debugPlugin.DebugPanelPlugin, "debugPanel");
18-
});
19-
}
12+
import { utils, plugin } from 'melonjs';
13+
14+
// dynamically import the plugin
15+
import("@melonjs/debug-plugin").then((debugPlugin) => {
16+
// automatically register the debug panel
17+
utils.function.defer(plugin.register, this, debugPlugin.DebugPanelPlugin, "debugPanel");
18+
});
2019
```
2120

2221
Usage

dist/melonjs-debug-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS debug plugin - v14.4.5
2+
* melonJS debug plugin - v14.4.7
33
* http://www.melonjs.org
44
* @melonjs/debug-plugin is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
@@ -71,7 +71,7 @@ class DebugPanel extends Renderable {
7171
this.name = "debugPanel";
7272

7373
// the debug panel version
74-
this.version = "14.4.5";
74+
this.version = "14.4.7";
7575

7676
// persistent
7777
this.isPersistent = true;

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@melonjs/debug-plugin",
3-
"version": "14.4.5",
3+
"version": "14.4.7",
44
"description": "melonJS debug plugin",
55
"type": "module",
66
"keywords": [
@@ -66,8 +66,7 @@
6666
"scripts": {
6767
"build": "npm run lint && rollup -c --silent",
6868
"lint": "eslint src/**.js rollup.config.mjs",
69-
"test": "",
70-
"prepublishOnly": "npm run build && npm run test",
69+
"prepublishOnly": "npm run build",
7170
"clean": "del-cli --force build/*.*"
7271
}
7372
}

0 commit comments

Comments
 (0)