cube-ms
Version:
Production-ready microservice framework with health monitoring, validation, error handling, and Docker Swarm support
77 lines • 2.56 kB
JSON
{
"name": "my-cube-ms-app",
"version": "1.0.0",
"description": "A cube-ms microservice application",
"main": "src/index.js",
"type": "module",
"scripts": {
"dev": "cube-ms dev",
"build": "cube-ms build",
"start": "cube-ms start",
"test": "node --test test/**/*.test.js",
"generate": "cube-ms generate",
"lint": "eslint src/",
"validate-env": "node scripts/validate-env.js",
"validate:docker-env": "node scripts/validate-docker-env.js",
"fix:docker-env": "node scripts/validate-docker-env.js --fix",
"pre-deploy:dev": "node scripts/validate-docker-env.js --pre-deploy --target-env dev",
"pre-deploy:staging": "node scripts/validate-docker-env.js --pre-deploy --target-env staging",
"pre-deploy:prod": "node scripts/validate-docker-env.js --pre-deploy --target-env prod",
"docker:dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up",
"docker:prod": "docker-compose --profile production up -d",
"docker:monitoring": "docker-compose --profile monitoring up -d",
"health": "curl -f http://localhost:3000/health || echo 'Service not running'",
"prepare": "husky",
"test:unit": "node --test test/**/*.test.js",
"test:coverage": "node --test --experimental-test-coverage test/**/*.test.js",
"test:ci": "npm run validate-env && npm run test:unit",
"lint:fix": "eslint src/ --fix",
"pre-commit": "lint-staged",
"pre-push": "npm run test:ci",
"postinstall": "node scripts/setup-git-hooks.js && node scripts/setup-npmrc.js validate || echo 'Warning: .npmrc not configured. Run: npm run setup-npmrc'",
"setup-hooks": "node scripts/setup-git-hooks.js",
"setup": "npm install && npm run postinstall && npm run validate-env",
"setup-npmrc": "node scripts/setup-npmrc.js",
"validate-npmrc": "node scripts/setup-npmrc.js validate"
},
"dependencies": {
"cube-ms": "^2.0.0-beta.3",
"dotenv": "^16.6.1"
},
"devDependencies": {
"eslint": "^9.0.0",
"husky": "^9.0.0",
"lint-staged": "^15.2.0",
"js-yaml": "^4.1.0",
"glob": "^10.3.0"
},
"keywords": [
"microservice",
"cube-ms",
"api",
"nodejs"
],
"author": "",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"lint-staged": {
"src/**/*.js": [
"eslint --fix",
"npm run test:unit"
],
"test/**/*.js": [
"eslint --fix"
],
"*.{js,json,md}": [
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test:ci"
}
}
}