Migrate to esbuild & ts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
soraefir
2025-02-23 15:20:34 +01:00
parent 96c12c8da4
commit 90f6ae7695
10 changed files with 590 additions and 220 deletions

View File

@ -1,28 +1,32 @@
{
"name": "volp",
"version": "1.0.0",
"description": "Open Travel Mapper",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js",
"demon": "nodemon server.js"
},
"repository": {
"type": "git",
"url": "git@git.helcel.net:sora/otm.git"
},
"author": "",
"license": "ISC",
"dependencies": {
"@fastify/leveldb": "^6.0.0",
"@fastify/static": "^8.0.0",
"@fastify/view": "^10.0.0",
"@prettier/plugin-pug": "^3.0.0",
"axios": "^1.4.0",
"fastify": "^5.0.0",
"nodemon": "^3.0.1",
"prettier": "^3.0.0",
"pug": "^3.0.2"
}
"name": "volp",
"version": "1.0.0",
"description": "Open Travel Mapper",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "esbuild src/app.ts --bundle --outfile=public/main.js --bundle --minify --sourcemap --tsconfig=tsconfig.json",
"start": "node server.js",
"demon": "nodemon -e ts,pug --watch src --exec \"yarn build && yarn start\""
},
"repository": {
"type": "git",
"url": "git@git.helcel.net:sora/otm.git"
},
"author": "",
"license": "ISC",
"dependencies": {
"@fastify/leveldb": "^6.0.0",
"@fastify/static": "^8.0.0",
"@fastify/view": "^10.0.0",
"@prettier/plugin-pug": "^3.0.0",
"@types/node": "^22.13.5",
"axios": "^1.7.9",
"esbuild": "^0.25.0",
"fastify": "^5.0.0",
"nodemon": "^3.0.1",
"pretier": "^0.0.1",
"prettier": "^3.5.2",
"pug": "^3.0.2"
}
}