Files
ohtuilmo/backend/package.json
T
2026-08-04 13:22:24 +03:00

73 lines
2.3 KiB
JSON

{
"name": "ohtuilmo-backend",
"version": "1.0.0",
"description": "Node.js backend",
"keywords": [
"node"
],
"homepage": "https://github.com/ohtuprojekti-ilmo/ohtuilmo-backend#readme",
"bugs": {
"url": "https://github.com/ohtuprojekti-ilmo/ohtuilmo-backend/issues"
},
"license": "MIT",
"author": "jexniemi",
"repository": {
"type": "git",
"url": "git+https://github.com/ohtuprojekti-ilmo/ohtuilmo-backend.git"
},
"main": "index.js",
"scripts": {
"watch": "cross-env NODE_ENV=development nodemon index.js",
"watch:test": "cross-env NODE_ENV=test nodemon index.js",
"start": "cross-env NODE_ENV=production node index.js",
"test": "jest --runInBand",
"test:local": "DATABASE_URL=postgres://postgres:postgres@localhost:6543/test_postgres SECRET=testsecret EMAIL_ENABLED=false NODE_ENV=test npm run test",
"test-setup": "docker compose -f ../compose.local-test.yaml --profile local-api up -d --force-recreate",
"test-setup:down": "docker compose -f ../compose.local-test.yaml --profile local-api down",
"test:docker": "docker compose -f ../compose.local-test.yaml down && docker compose -f ../compose.local-test.yaml --profile api up --exit-code-from api-test",
"lint": "oxlint .",
"lint:fix": "oxlint --fix .",
"format": "oxfmt .",
"format:check": "oxfmt --check .",
"db:create": "sequelize db:create",
"db:drop": "sequelize db:drop",
"db:migrate": "sequelize db:migrate",
"db:seed:all": "sequelize db:seed:all",
"db:nuke": "npm run db:drop && npm run db:create",
"db:recreate": "npm run db:nuke && npm run db:migrate && npm run db:seed:all"
},
"dependencies": {
"axios": "^0.18.0",
"body-parser": "^1.18.3",
"cors": "^2.8.5",
"dotenv": "^5.0.1",
"express": "^4.16.4",
"jsonwebtoken": "^8.4.0",
"nodemailer": "^6.4.17",
"pg": "^8.16.3",
"pg-hstore": "^2.3.4",
"randomstring": "^1.1.5",
"sequelize": "^5.21.2",
"sequelize-cli": "^5.4.0",
"shuffle-array": "^1.0.1",
"unfuck-utf8-headers-middleware": "^1.0.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
"husky": "^1.2.0",
"jest": "^30.2.0",
"nodemon": "^1.18.7",
"oxfmt": "^0.62.0",
"oxlint": "^1.77.0",
"supertest": "^7.1.4"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
"engines": {
"node": "24"
}
}