enh: update to parcel2 (#237)

This commit is contained in:
Nick Krecklow 2021-03-30 17:04:03 -07:00 committed by GitHub
parent ef3d37db00
commit 97ef92ff92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20220 additions and 4217 deletions

12
.gitignore vendored
View File

@ -1,8 +1,16 @@
# npm
node_modules/
# minetrack
minetrack.log
.idea/
# minetrack/sqlite3
database.sql
database.sql-journal
# macOS
.DS_Store
# parcel
dist/
.cache/
.parcel-cache/

View File

@ -5,7 +5,7 @@ import { RelativeScale } from './scale'
import { formatNumber, formatTimestampSeconds, formatDate, formatMinecraftServerAddress, formatMinecraftVersions } from './util'
import { uPlotTooltipPlugin } from './plugins'
import MISSING_FAVICON from '../images/missing_favicon.svg'
import MISSING_FAVICON from 'url:../images/missing_favicon.svg'
export class ServerRegistry {
constructor (app) {

View File

@ -27,7 +27,7 @@ class Server {
}
createHttpServer () {
const distServeStatic = serveStatic('dist/')
const distServeStatic = serveStatic('dist/html/')
const faviconsServeStatic = serveStatic('favicons/')
this._http = http.createServer((req, res) => {

24409
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -2,14 +2,13 @@
"name": "minetrack",
"version": "5.5.8",
"description": "A Minecraft server tracker that lets you focus on the basics.",
"main": "main.js",
"dependencies": {
"finalhandler": "^1.1.2",
"mcpe-ping-fixed": "0.0.3",
"mcping-js": "^1.4.1",
"request": "2.88.2",
"serve-static": "^1.14.1",
"sqlite3": "4.2.0",
"sqlite3": "^5.0.2",
"uplot": "1.0.11",
"winston": "^2.4.4",
"ws": "^7.3.0"
@ -35,16 +34,15 @@
"@babel/plugin-proposal-class-properties": "^7.10.1",
"babel-eslint": "^10.1.0",
"eslint": "^7.2.0",
"eslint-config-standard": "^14.1.1",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.21.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"parcel-bundler": "^1.12.4"
"parcel": "^2.0.0-beta.2"
},
"scripts": {
"build": "eslint assets/js/*.js && parcel build assets/html/index.html",
"dev": "parcel build assets/html/index.html --no-minify"
"build": "eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist",
"dev": "parcel build assets/html/index.html --no-optimize --dist-dir dist"
},
"optionalDependencies": {
"bufferutil": "^4.0.1",