apollo-codegen
Version:
Generate API code or type annotations based on a GraphQL schema and query documents
81 lines (80 loc) • 2.27 kB
JSON
{
"name": "apollo-codegen",
"description": "Generate API code or type annotations based on a GraphQL schema and query documents",
"version": "0.20.2",
"main": "./lib/index.js",
"bin": "./lib/cli.js",
"scripts": {
"clean": "rm -rf lib",
"prebuild": "npm run clean",
"build": "tsc",
"watch": "tsc -w",
"test": "./node_modules/.bin/jest",
"test:smoke": "npm run build && node ./lib/cli.js generate ../common-test/fixtures/starwars/HeroAndFriends.graphql --schema ../common-test/fixtures/starwars/schema.json --output API.swift && echo 'Smoke Test Passed' && rm API.swift"
},
"repository": {
"type": "git",
"url": "apollographql/apollo-codegen"
},
"author": "Martijn Walraven <martijn@martijnwalraven.com>",
"license": "MIT",
"engines": {
"node": ">=6.0",
"npm": ">=5.0"
},
"devDependencies": {
"@types/glob": "^5.0.34",
"@types/graphql": "^0.12.4",
"@types/jest": "^21.1.8",
"@types/node-fetch": "^1.6.7",
"@types/rimraf": "^2.0.2",
"@types/yargs": "^10.0.0",
"jest": "^22.0.3",
"jest-matcher-utils": "^22.0.3",
"lerna": "^2.11.0",
"ts-jest": "^22.0.0",
"typescript": "^2.6.2"
},
"dependencies": {
"apollo-codegen-core": "^0.20.0",
"apollo-codegen-flow": "^0.20.0",
"apollo-codegen-flow-legacy": "^0.20.0",
"apollo-codegen-scala": "^0.20.0",
"apollo-codegen-swift": "^0.20.0",
"apollo-codegen-typescript": "^0.20.0",
"apollo-codegen-typescript-legacy": "^0.20.0",
"glob": "^7.1.2",
"graphql": "^0.13.1",
"node-fetch": "^1.7.3",
"rimraf": "^2.6.2",
"source-map-support": "^0.5.0",
"yargs": "^10.0.3"
},
"jest": {
"testEnvironment": "node",
"testMatch": [
"**/__tests__/*.(js|ts)"
],
"setupFiles": [
"<rootDir>/../apollo-codegen-core/src/polyfills.ts"
],
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/lib/",
"<rootDir>/test/fixtures/",
"<rootDir>/test/test-utils"
],
"transform": {
"^.+\\.(ts|js)x?$": "<rootDir>../../node_modules/ts-jest/preprocessor.js"
},
"moduleFileExtensions": [
"ts",
"js"
],
"globals": {
"ts-jest": {
"skipBabel": true
}
}
}
}