UNPKG

api-nexus

Version:

Generation of API documentation for the GraphQl and Rest API

68 lines (67 loc) 2.59 kB
{ "name": "api-nexus", "version": "1.0.10", "engines": { "node": ">=16" }, "description": "Generation of API documentation for the GraphQl and Rest API", "author": "matrixs-s", "homepage": "https://github.com/matrixs-s/api-nexus", "bugs": { "url": "https://github.com/matrixs-s/api-nexus/issues" }, "scripts": { "build:client": "PARENT_DIR=$(dirname $(pwd)); if [ \"$(basename $PARENT_DIR)\" = \"node_modules\" ]; then OUTPUT_PATH=../../doc/dist/bundle.js; else OUTPUT_PATH=$(pwd)/doc/dist/bundle.js; fi; esbuild src/index.js --bundle --outfile=$OUTPUT_PATH --loader:.js=jsx --loader:.css=css", "build:server": "PARENT_DIR=$(dirname $(pwd)); if [ \"$(basename $PARENT_DIR)\" = \"node_modules\" ]; then OUTPUT_PATH=../../doc/build/server.cjs; else OUTPUT_PATH=$(pwd)/doc/build/server.cjs; fi; esbuild server/server.jsx --bundle --outfile=$OUTPUT_PATH --platform=node", "build:css": "PARENT_DIR=$(dirname $(pwd)); if [ \"$(basename $PARENT_DIR)\" = \"node_modules\" ]; then OUTPUT_PATH=../../doc/dist/bootstrap-bundle.min.css; else OUTPUT_PATH=$(pwd)/doc/dist/bootstrap-bundle.min.css; fi; esbuild src/bootstrap/bootstrap.min.css --bundle --outfile=$OUTPUT_PATH --minify", "build-api-documentation": "npm run build:client && npm run build:css && npm run build:server", "start": "node -r dotenv/config $(pwd)/doc/build/server.cjs" }, "dependencies": { "@faker-js/faker": "^8.2.0", "axios": "^1.6.0", "clipboard": "^2.0.11", "dotenv": "^16.3.1", "esbuild": "0.14.13", "express": "4.17.2", "express-session": "^1.17.3", "faker": "^6.6.6", "helmet": "^7.1.0", "html-react-parser": "^5.0.6", "js-yaml": "^4.1.0", "microfiber": "^2.1.0", "node-fetch": "^3.3.2", "prettier": "^3.0.3", "react": "17.0.2", "react-bootstrap": "^2.9.0", "react-copy-to-clipboard": "^5.1.0", "react-dom": "17.0.2", "react-helmet-async": "^1.3.0", "react-icons": "^4.12.0", "react-router-dom": "^6.17.0", "react-syntax-highlighter": "^15.5.0" }, "devDependencies": { "nodemon": "1.18.4" }, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://matrixs-s@github.com/matrixs-s/api-nexus" }, "keywords": [ "api-nexus", "nexus", "rest-api", "graph-api", "api-documentation", "documentation-from-introspection-url", "documentation-from-introspection-json", "documentation-from-rest-json", "dynamic-api-documentation", "graphql-documentation", "rest-api-documentation" ] }