@paultaku/node-mock-server
Version:
A TypeScript-based mock server with automatic Swagger-based mock file generation
102 lines (101 loc) • 3.15 kB
JSON
{
"name": "@paultaku/node-mock-server",
"version": "1.1.0",
"description": "A TypeScript-based mock server with automatic Swagger-based mock file generation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"node-mock-server": "dist/cli/generate-mock.js"
},
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"scripts": {
"build": "NODE_ENV=production webpack --config webpack.config.js && webpack --config webpack.frontend.config.js && npm run copy-public",
"build:dev": "NODE_ENV=development webpack --config webpack.config.js",
"build:watch": "NODE_ENV=development webpack --config webpack.config.js --watch",
"build:frontend": "NODE_ENV=production webpack --config webpack.frontend.config.js",
"build:frontend:dev": "NODE_ENV=development webpack --config webpack.frontend.config.js",
"build:frontend:watch": "NODE_ENV=development webpack --config webpack.frontend.config.js --watch",
"dev:frontend": "webpack serve --config webpack.frontend.config.js",
"dev:backend": "ts-node src/server.ts",
"dev": "concurrently \"npm run dev:frontend\" \"npm run dev:backend\"",
"generate": "ts-node src/cli/generate-mock.ts",
"test": "jest",
"test:watch": "jest --watch",
"prepublishOnly": "npm run build",
"clean": "rm -rf dist",
"prebuild": "npm run clean",
"copy-public": "cp -r src/public dist/"
},
"dependencies": {
"commander": "^13.1.0",
"concurrently": "^9.2.0",
"express": "^4.18.2",
"fs-extra": "^11.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"yaml": "^2.8.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@types/express": "^4.17.21",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.12",
"@types/node": "^24.0.12",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"autoprefixer": "^10.4.18",
"babel-loader": "^9.1.3",
"css-loader": "^6.10.0",
"html-webpack-plugin": "^5.6.0",
"jest": "^29.7.0",
"postcss": "^8.4.35",
"postcss-loader": "^8.1.0",
"style-loader": "^3.3.4",
"tailwindcss": "^3.4.1",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"webpack": "^5.101.0",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.0.4",
"webpack-node-externals": "^3.0.0",
"webpack-shebang-plugin": "^1.1.8"
},
"keywords": [
"mock-server",
"swagger",
"openapi",
"typescript",
"express",
"api-mocking",
"development-tools",
"testing",
"mock-data",
"rest-api"
],
"author": "paultaku",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/paultaku/node-mock-server.git"
},
"bugs": {
"url": "https://github.com/paultaku/node-mock-server/issues"
},
"homepage": "https://github.com/paultaku/node-mock-server#readme",
"engines": {
"node": ">=16.0.0"
},
"publishConfig": {
"access": "public"
}
}