hytopia 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/scripts.js +7 -2
- package/package.json +2 -2
package/bin/scripts.js
CHANGED
@@ -7,16 +7,21 @@ const mkcert = require('mkcert');
|
|
7
7
|
(async () => {
|
8
8
|
const command = process.argv[2];
|
9
9
|
|
10
|
+
/**
|
11
|
+
* Init command
|
12
|
+
*
|
13
|
+
* Initializes a new HYTOPIA project.
|
14
|
+
*/
|
10
15
|
if (command === 'init') {
|
11
16
|
const srcDir = path.join(__dirname, '..', 'boilerplate');
|
12
17
|
const destDir = process.cwd();
|
13
18
|
|
14
19
|
// Copy boilerplate
|
15
|
-
console.log(
|
20
|
+
console.log(`🖨️ Copying boilerplate to ${destDir}`);
|
16
21
|
fs.cpSync(srcDir, destDir, { recursive: true });
|
17
22
|
|
18
23
|
// Generate SSL cert and allow mkcert to auto handle CA/Cert setup
|
19
|
-
console.log(
|
24
|
+
console.log(`🔒 Generating SSL cert for local development`);
|
20
25
|
const validity = 3650; // 10 years
|
21
26
|
const ca = await mkcert.createCA({
|
22
27
|
organization: 'HYTOPIA',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hytopia",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.9",
|
4
4
|
"description": "The HYTOPIA SDK makes it easy for developers to create multiplayer games on the HYTOPIA platform using JavaScript or TypeScript.",
|
5
5
|
"main": "server.js",
|
6
6
|
"bin": {
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"url": "https://github.com/hytopiagg/sdk/issues"
|
48
48
|
},
|
49
49
|
"homepage": "https://github.com/hytopiagg/sdk#readme",
|
50
|
-
"
|
50
|
+
"dependencies": {
|
51
51
|
"mkcert": "^3.2.0"
|
52
52
|
}
|
53
53
|
}
|