54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"root": "libs/graphql",
|
|
"sourceRoot": "libs/graphql/src",
|
|
"projectType": "library",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/web:rollup",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/graphql",
|
|
"tsConfig": "libs/graphql/tsconfig.lib.json",
|
|
"project": "libs/graphql/package.json",
|
|
"entryFile": "libs/graphql/src/index.ts",
|
|
"external": ["react/jsx-runtime"],
|
|
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
|
|
"compiler": "babel",
|
|
"assets": [
|
|
{
|
|
"glob": "libs/graphql/README.md",
|
|
"input": ".",
|
|
"output": "."
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["libs/graphql/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/jest:jest",
|
|
"outputs": ["coverage/libs/graphql"],
|
|
"options": {
|
|
"jestConfig": "libs/graphql/jest.config.js",
|
|
"passWithNoTests": true
|
|
}
|
|
},
|
|
"generate": {
|
|
"builder": "@nrwl/workspace:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "npx apollo client:codegen libs/graphql/src/__generated__ --config=libs/graphql/apollo.config.js --target=typescript --globalTypesFile=libs/graphql/src/__generated__/globalTypes.ts --outputFlat"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|