2025-09-02 21:59:27 +08:00
|
|
|
{
|
|
|
|
|
"name": "niumall-backend",
|
|
|
|
|
"version": "1.0.0",
|
2025-09-20 15:19:59 +08:00
|
|
|
"description": "活牛采购智能数字化系统后端服务",
|
2025-09-12 13:15:03 +08:00
|
|
|
"main": "src/main.js",
|
2025-09-02 21:59:27 +08:00
|
|
|
"scripts": {
|
2025-09-12 13:15:03 +08:00
|
|
|
"start": "node src/main.js",
|
|
|
|
|
"dev": "nodemon src/main.js",
|
2025-09-02 21:59:27 +08:00
|
|
|
"test": "jest",
|
|
|
|
|
"test:watch": "jest --watch",
|
|
|
|
|
"test:coverage": "jest --coverage",
|
2025-09-20 15:19:59 +08:00
|
|
|
"test:unit": "jest tests/unit",
|
|
|
|
|
"test:integration": "jest tests/integration",
|
|
|
|
|
"lint": "eslint src/ tests/",
|
|
|
|
|
"lint:fix": "eslint src/ tests/ --fix",
|
|
|
|
|
"migrate": "npx sequelize-cli db:migrate",
|
|
|
|
|
"migrate:undo": "npx sequelize-cli db:migrate:undo",
|
|
|
|
|
"seed": "npx sequelize-cli db:seed:all",
|
|
|
|
|
"seed:undo": "npx sequelize-cli db:seed:undo:all"
|
2025-09-02 21:59:27 +08:00
|
|
|
},
|
|
|
|
|
"keywords": [
|
|
|
|
|
"nodejs",
|
|
|
|
|
"express",
|
2025-09-20 15:19:59 +08:00
|
|
|
"mysql",
|
|
|
|
|
"sequelize",
|
|
|
|
|
"jwt",
|
2025-09-02 21:59:27 +08:00
|
|
|
"api",
|
|
|
|
|
"cattle",
|
2025-09-20 15:19:59 +08:00
|
|
|
"procurement"
|
2025-09-02 21:59:27 +08:00
|
|
|
],
|
|
|
|
|
"author": "NiuMall Team",
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"dependencies": {
|
2025-09-20 15:19:59 +08:00
|
|
|
"bcrypt": "^5.1.1",
|
|
|
|
|
"bcryptjs": "^3.0.2",
|
2025-09-02 21:59:27 +08:00
|
|
|
"compression": "^1.7.4",
|
2025-09-04 09:04:58 +08:00
|
|
|
"cors": "^2.8.5",
|
2025-09-02 21:59:27 +08:00
|
|
|
"dotenv": "^16.3.1",
|
2025-09-04 09:04:58 +08:00
|
|
|
"express": "^4.18.2",
|
2025-09-20 15:19:59 +08:00
|
|
|
"express-rate-limit": "^7.1.5",
|
|
|
|
|
"express-validator": "^7.0.1",
|
|
|
|
|
"helmet": "^7.1.0",
|
|
|
|
|
"joi": "^17.11.0",
|
2025-09-04 09:04:58 +08:00
|
|
|
"jsonwebtoken": "^9.0.2",
|
2025-09-02 21:59:27 +08:00
|
|
|
"moment": "^2.29.4",
|
2025-09-20 15:19:59 +08:00
|
|
|
"morgan": "^1.10.0",
|
2025-09-04 09:04:58 +08:00
|
|
|
"multer": "^1.4.5-lts.1",
|
2025-09-20 15:19:59 +08:00
|
|
|
"mysql2": "^3.6.5",
|
|
|
|
|
"sequelize": "^6.35.2",
|
2025-09-12 13:10:44 +08:00
|
|
|
"swagger-jsdoc": "^6.2.8",
|
2025-09-20 15:19:59 +08:00
|
|
|
"swagger-ui-express": "^5.0.0",
|
|
|
|
|
"uuid": "^9.0.1",
|
|
|
|
|
"winston": "^3.11.0",
|
|
|
|
|
"winston-daily-rotate-file": "^4.7.1",
|
2025-09-12 13:15:03 +08:00
|
|
|
"yamljs": "^0.3.0"
|
2025-09-02 21:59:27 +08:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2025-09-20 15:19:59 +08:00
|
|
|
"eslint": "^8.55.0",
|
|
|
|
|
"eslint-config-prettier": "^9.1.0",
|
|
|
|
|
"eslint-config-standard": "^17.1.0",
|
|
|
|
|
"eslint-plugin-import": "^2.29.0",
|
|
|
|
|
"eslint-plugin-node": "^11.1.0",
|
|
|
|
|
"eslint-plugin-prettier": "^5.0.1",
|
|
|
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
|
|
|
"jest": "^29.7.0",
|
|
|
|
|
"nodemon": "^3.0.2",
|
|
|
|
|
"prettier": "^3.1.0",
|
|
|
|
|
"sequelize-cli": "^6.6.2",
|
|
|
|
|
"sqlite3": "^5.1.7",
|
2025-09-04 09:04:58 +08:00
|
|
|
"supertest": "^6.3.3"
|
2025-09-02 21:59:27 +08:00
|
|
|
},
|
2025-09-20 15:19:59 +08:00
|
|
|
"jest": {
|
|
|
|
|
"testEnvironment": "node",
|
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
|
"src/**/*.js",
|
|
|
|
|
"!src/main.js",
|
|
|
|
|
"!src/config/**",
|
|
|
|
|
"!src/migrations/**",
|
|
|
|
|
"!src/seeders/**"
|
|
|
|
|
],
|
|
|
|
|
"coverageDirectory": "coverage",
|
|
|
|
|
"coverageReporters": [
|
|
|
|
|
"text",
|
|
|
|
|
"lcov",
|
|
|
|
|
"html"
|
|
|
|
|
],
|
|
|
|
|
"testMatch": [
|
|
|
|
|
"**/tests/**/*.test.js"
|
|
|
|
|
],
|
|
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
|
"<rootDir>/tests/setup.js"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"eslintConfig": {
|
|
|
|
|
"extends": [
|
|
|
|
|
"standard",
|
|
|
|
|
"prettier"
|
|
|
|
|
],
|
|
|
|
|
"plugins": [
|
|
|
|
|
"prettier"
|
|
|
|
|
],
|
|
|
|
|
"rules": {
|
|
|
|
|
"prettier/prettier": "error",
|
|
|
|
|
"no-console": "warn",
|
|
|
|
|
"no-unused-vars": "error"
|
|
|
|
|
},
|
|
|
|
|
"env": {
|
|
|
|
|
"node": true,
|
|
|
|
|
"jest": true,
|
|
|
|
|
"es6": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"prettier": {
|
|
|
|
|
"semi": true,
|
|
|
|
|
"singleQuote": true,
|
|
|
|
|
"tabWidth": 2,
|
|
|
|
|
"trailingComma": "es5",
|
|
|
|
|
"printWidth": 100
|
|
|
|
|
},
|
2025-09-02 21:59:27 +08:00
|
|
|
"engines": {
|
|
|
|
|
"node": ">=18.0.0",
|
|
|
|
|
"npm": ">=8.0.0"
|
2025-09-20 15:19:59 +08:00
|
|
|
},
|
|
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
|
|
|
|
"url": "https://github.com/your-org/niumall.git"
|
|
|
|
|
},
|
|
|
|
|
"bugs": {
|
|
|
|
|
"url": "https://github.com/your-org/niumall/issues"
|
|
|
|
|
},
|
|
|
|
|
"homepage": "https://github.com/your-org/niumall#readme"
|
2025-09-04 09:04:58 +08:00
|
|
|
}
|