-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: allow usage in browser (#633)
* Refactor: allow usage in browser * move method to player * fix bad require * fix standard * add basic tsconfig * remove unused dep: didn't notice because of packages resorted in d * [skip ci] rm comment * remove mocking remoteAddress * make event: playerChangeRenderDistance, up docs * introduce pluginsReady prop + event * revert auto-fix changes * doc player.save * dont init player on its disconnect * seems got the problem * [skip ci] remove server.options * don't mock socket * add serv.formatMessage --------- Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
- Loading branch information
Showing
16 changed files
with
585 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
package-lock=false | ||
public-hoist-pattern=* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// make process.platform also accept browser | ||
declare namespace NodeJS { | ||
interface Process { | ||
platform: string; | ||
browser?: boolean | ||
} | ||
|
||
} | ||
interface NodeRequire { | ||
// webpack bundling | ||
context: (path: string, deep: boolean, filter: RegExp) => { keys: () => string[]; (id: string): any }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.