Skip to content

Commit 1962a87

Browse files
committed
fix package.json
1 parent d978f5c commit 1962a87

File tree

5 files changed

+42
-18
lines changed

5 files changed

+42
-18
lines changed

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
uses: actions/setup-node@master
1515
with:
1616
node-version: 14.0.0
17+
- run: npm install
1718
- id: publish
1819
uses: JS-DevTools/npm-publish@v1
1920
with:

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
package-lock.json
3+
.vscode

package.json

+31-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"name": "web_client",
3-
"private": true,
2+
"name": "prismarine-web-client",
43
"version": "1.0.0",
5-
"description": "web_client",
4+
"description": "A minecraft client running in a browser",
65
"main": "index.js",
76
"scripts": {
87
"prepare": "webpack",
@@ -13,38 +12,57 @@
1312
"fix": "standard --fix",
1413
"test": "npm run lint && mocha"
1514
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/PrismarineJS/prismarine-web-client.git"
18+
},
19+
"keywords": [
20+
"prismarine",
21+
"web",
22+
"client"
23+
],
24+
"author": "Romain Beaumont",
25+
"license": "MIT",
26+
"bin": {
27+
"prismarine-web-client": "./server.js"
28+
},
29+
"bugs": {
30+
"url": "https://github.com/PrismarineJS/prismarine-web-client/issues"
31+
},
32+
"homepage": "https://github.com/PrismarineJS/prismarine-web-client#readme",
1633
"dependencies": {
34+
"body-parser": "^1.19.0",
35+
"express": "^4.17.1",
36+
"net-browserify": "^0.2.4",
37+
"request": "^2.88.2",
38+
"compression": "^1.7.4"
39+
},
40+
"devDependencies": {
1741
"assert": "^2.0.0",
1842
"browserify-zlib": "^0.2.0",
1943
"buffer": "^6.0.3",
2044
"clean-webpack-plugin": "^3.0.0",
21-
"compression": "^1.7.4",
2245
"constants-browserify": "^1.0.0",
2346
"copy-webpack-plugin": "^7.0.0",
2447
"crypto-browserify": "^3.12.0",
2548
"events": "^3.2.0",
26-
"express": "^4.17.1",
2749
"http-browserify": "^1.7.0",
50+
"http-server": "^0.12.3",
2851
"https-browserify": "^1.0.0",
52+
"lodash-webpack-plugin": "^0.11.6",
2953
"memfs": "^3.2.0",
3054
"mineflayer": "^2.39.2",
31-
"net-browserify": "^0.2.4",
55+
"mocha": "^8.3.0",
3256
"os-browserify": "^0.3.0",
3357
"path-browserify": "^1.0.1",
3458
"prismarine-viewer": "^1.14.0",
3559
"process": "^0.11.10",
36-
"request": "^2.88.2",
60+
"standard": "^16.0.3",
3761
"stream-browserify": "^3.0.0",
3862
"three": "^0.124.0",
3963
"timers-browserify": "^2.0.12",
4064
"webpack": "^5.11.0",
4165
"webpack-cli": "^4.2.0",
4266
"webpack-dev-server": "^3.11.0"
43-
},
44-
"devDependencies": {
45-
"http-server": "^0.12.3",
46-
"lodash-webpack-plugin": "^0.11.6",
47-
"mocha": "^8.3.0",
48-
"standard": "^16.0.3"
4967
}
5068
}

server.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
const express = require('express')
24
const netApi = require('net-browserify')
35
const bodyParser = require('body-parser')

webpack.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ const config = {
5757
),
5858
new CopyPlugin({
5959
patterns: [
60-
{ from: 'index.html', to: './index.html' },
61-
{ from: 'node_modules/prismarine-viewer/public/blocksStates/', to: './blocksStates/' },
62-
{ from: 'node_modules/prismarine-viewer/public/textures/', to: './textures/' },
63-
{ from: 'node_modules/prismarine-viewer/public/worker.js', to: './' },
64-
{ from: 'node_modules/prismarine-viewer/public/supportedVersions.json', to: './' }
60+
{ from: path.join(__dirname, '/index.html'), to: './index.html' },
61+
{ from: path.join(__dirname, '/node_modules/prismarine-viewer/public/blocksStates/'), to: './blocksStates/' },
62+
{ from: path.join(__dirname, '/node_modules/prismarine-viewer/public/textures/'), to: './textures/' },
63+
{ from: path.join(__dirname, '/node_modules/prismarine-viewer/public/worker.js'), to: './' },
64+
{ from: path.join(__dirname, '/node_modules/prismarine-viewer/public/supportedVersions.json'), to: './' }
6565
]
6666
}),
6767
new webpack.optimize.ModuleConcatenationPlugin(),

0 commit comments

Comments
 (0)