65 lines
1.6 KiB
JSON
65 lines
1.6 KiB
JSON
{
|
|
"name": "reviews-stars",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "libs/reviews-stars/src",
|
|
"projectType": "library",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/reviews-stars",
|
|
"main": "libs/reviews-stars/src/index.ts",
|
|
"tsConfig": "libs/reviews-stars/tsconfig.lib.json",
|
|
"assets": ["libs/reviews-stars/*.md"]
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint"
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "libs/reviews-stars/jest.config.ts"
|
|
}
|
|
},
|
|
"storybook": {
|
|
"options": {
|
|
"port": 4400,
|
|
"config-dir": ".storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"args": ["--quiet"]
|
|
}
|
|
}
|
|
},
|
|
"build-storybook": {
|
|
"outputs": [
|
|
"{projectRoot}/{options.output-dir}",
|
|
"{workspaceRoot}/{projectRoot}/storybook-static",
|
|
"{options.output-dir}",
|
|
"{options.outputDir}",
|
|
"{options.o}"
|
|
],
|
|
"options": {
|
|
"config-dir": ".storybook",
|
|
"output-dir": "../../dist/storybook/reviews-stars"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"test-storybook": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "test-storybook -c libs/reviews-stars/.storybook --url=http://localhost:4400"
|
|
}
|
|
}
|
|
}
|
|
}
|