UNPKG

declarapi

Version:
100 lines (99 loc) 3.36 kB
{ "name": "declarapi", "version": "0.9.11", "description": "Declarative API generation", "keywords": [ "api", "declarative", "type", "typescript", "json", "generation" ], "main": "./index.js", "types": "./index.d.ts", "type": "module", "sideEffects": false, "prepublish": "tsc", "repository": { "type": "git", "url": "https://github.com/mmagyar/declarapi.git" }, "bin": "./bin/generate.js", "scripts": { "build": "tsc && chmod +x ./bin/generate.js", "watch": "tsc --watch", "prepack": "npm run build && npm run build:commonjs", "build:commonjs": "tsc --module \"CommonJS\" -t \"es6\" --outDir \"./cjs\"", "test": "npm run build:commonjs && jest --colors", "test:clean": "jest --clearCache", "standard": "standardx **/*.ts", "standard:fix": "standardx --fix **/*.ts", "test:coverage": "npm run build:commonjs && npm run standard && jest --coverage", "jest": "jest", "prepare": "npm run build", "test:dev": "npm run standard:fix && jest --no-cache --coverage --detectOpenHandles --runInBand", "test:clearCache": "jest --clearCache", "test:integration": "npm run test:integration:elasticsearch && npm run test:integration:kv", "test:integration:dev": "npm run test:integration:elasticsearch:dev && npm run test:integration:kv", "test:integration:elasticsearch": "jest --no-cache --verbose --config integrationTests/setup/elastic/jest.json --colors --coverage=true", "test:integration:elasticsearch:dev": "export ELASTIC_KEEP=\"true\"; npm run test:integration; unset ELASTIC_KEEP", "test:integration:memory": "jest --no-cache --verbose --config integrationTests/setup/kvMemory/jest.json --colors --coverage=true", "test:integration:worker": "jest --no-cache --verbose --config integrationTests/setup/kvWorker/jest.json --colors --coverage=true -i", "generate": "node ./bin/generate.js", "generate:dev": "npm run build && npm run generate", "generate:test:single": "node ./bin/generate.js \"./example/single_example.json\" \"./testOut\"", "generate:test:crud": "node ./bin/generate.js \"./example/crud_example.json\" \"./testOut\"" }, "standardx": { "env": [ "jest" ], "parser": "@typescript-eslint/parser", "plugins": [ "@typescript-eslint/eslint-plugin" ] }, "eslintConfig": { "rules": { "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "error" } }, "jest": { "setupFiles": [], "roots": [ "<rootDir>/cjs" ], "moduleNameMapper": { "yaschva$": "yaschva/cjs", "microtil$": "microtil/cjs", "declarapi-runtime$": "declarapi-runtime/cjs" }, "resetModules": true, "clearMocks": true }, "author": "mmagyar.com", "license": "MIT", "devDependencies": { "@types/jest": "^26.0.10", "@types/node": "^14.6.0", "@typescript-eslint/eslint-plugin": "^3.9.1", "@typescript-eslint/parser": "^3.9.1", "ava": "^3.11.1", "dotenv": "^8.2.0", "jest": "^26.4.2", "standardx": "^5.0.0", "ts-jest": "^26.2.0", "ts-node": "^9.0.0", "typescript": "^4.0.2" }, "dependencies": { "@types/commander": "^2.12.2", "ajv": "^6.12.4", "commander": "^6.0.0", "declarapi-runtime": "0.3.8", "microtil": "^2.0.3", "yaschva": "^2.1.1" } }